-
-
Save FFY00/c00bc34e03a3867a043916475ac426dc to your computer and use it in GitHub Desktop.
ckb-next PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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