Skip to content

Instantly share code, notes, and snippets.

@FFY00 FFY00/PKGBUILD Secret
Created Aug 26, 2019

Embed
What would you like to do?
ckb-next PKGBUILD
# Maintainer: Tasos Sahanidis <aur@tasossah.com>
# Contributor: Light2Yellow <oleksii.vilchanskyi@gmail.com>
pkgname=ckb-next
pkgver=0.4.0
pkgrel=3
pkgdesc='Corsair Keyboard and Mouse Input Driver, release version'
arch=('i686' 'x86_64')
url='https://github.com/ckb-next/ckb-next'
license=('GPL2')
depends=('qt5-base' 'hicolor-icon-theme' 'quazip')
makedepends=('git' 'cmake' 'pulseaudio')
optdepends=('libappindicator-gtk2: Ayatana indicators in Unity, KDE or Systray (GTK+ 2 library)'
'pulseaduio: Audio support')
conflicts=('ckb-next')
provides=('ckb-next')
install=ckb-next.install
source=("$pkgname-$pkgver::$url/$pkgname/archive/v$pkgver.tar.gz")
sha512sums=('81058d1e31e7328dac1b3a83cb443b9d9f29593e872d189766c1dfe8b502965fd9ea7a962423e94d5053c99d8dd8c50bd98638c11631a2ca586fb9ade700284f')
prepare() {
sed -i 's|if (EXISTS "/run/systemd/system")|if (TRUE)|' $pkgname-$pkgver/src/daemon/CMakeLists.txt
}
build() {
cd $pkgname-$pkgver
cmake -H. -Bbuild \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_INSTALL_LIBDIR="lib" \
-DCMAKE_INSTALL_LIBEXECDIR="lib" \
-DDISABLE_UPDATER=1
cmake --build build --target all
}
package() {
cd $pkgname-$pkgver
DESTDIR="$pkgdir" cmake --build build --target install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.