summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Hartmann2017-09-20 01:24:01 +0200
committerJulien Hartmann2017-09-20 01:24:01 +0200
commit3b4bb10353a9de9d4c832bd8e8b6fb8db2585409 (patch)
treed09993fb99f8ccd5280bc19083d6a84b7fa8f7c7
downloadaur-3b4bb10353a9de9d4c832bd8e8b6fb8db2585409.tar.gz
Add package building rules for keyleds project
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD48
2 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..da1ac546563
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = keyleds
+ pkgdesc = Logitech Keyboard per-key lighting control
+ pkgver = 0.4.3
+ pkgrel = 1
+ url = https://github.com/spectras/keyleds
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = cmake>=3.0
+ depends = libxml2
+ depends = libyaml
+ depends = libx11
+ depends = libxi
+ depends = qt5-base
+ backup = etc/keyledsd.conf
+ source = https://github.com/spectras/keyleds/archive/v0.4.3/keyleds-0.4.3.tar.gz
+ md5sums = 8d27ec4ec0cf939103bb337547b05ae6
+
+pkgname = keyleds
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..dedbf2d9ce1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Julien Hartmann <juli1.hartmann@gmail.com>
+pkgname=keyleds
+pkgver=0.4.3
+pkgrel=1
+pkgdesc="Logitech Keyboard per-key lighting control"
+arch=('i686' 'x86_64')
+url="https://github.com/spectras/keyleds"
+license=('GPL3')
+groups=()
+depends=(
+ 'libxml2'
+ 'libyaml'
+ 'libx11'
+ 'libxi'
+ 'qt5-base'
+)
+makedepends=(
+ 'cmake>=3.0'
+)
+optdepends=()
+backup=('etc/keyledsd.conf')
+options=()
+install=
+source=("https://github.com/spectras/keyleds/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+
+build() {
+ cd "$pkgname-$pkgver/build"
+ cmake -DCMAKE_BUILD_TYPE=RelSize -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
+ make
+ gzip -9 ../keyledsd/keyledsd.1 -c > keyledsd.1.gz
+ gzip -9 ../keyledsctl/keyledsctl.1 -c > keyledsctl.1.gz
+}
+
+package() {
+ cd "$pkgname-$pkgver/build"
+ make DESTDIR="$pkgdir/" install
+ cd ..
+ install -m 644 -D keyledsd/keyledsd.conf.sample "$pkgdir/etc/keyledsd.conf"
+ install -d "$pkgdir/etc/xdg/autostart"
+ ln -s /usr/share/keyledsd/keyledsd.desktop "$pkgdir/etc/xdg/autostart/"
+ install -m 644 -D logitech.rules "$pkgdir/usr/share/keyledsd/logitech.rules"
+ install -d "$pkgdir/lib/udev/rules.d/"
+ ln -s /usr/share/keyledsd/logitech.rules "$pkgdir/lib/udev/rules.d/70-logitech-hidpp.rules"
+ install -m 644 -D build/keyledsd.1.gz "$pkgdir/usr/share/man/man1/keyledsd.1"
+ install -m 644 -D build/keyledsctl.1.gz "$pkgdir/usr/share/man/man1/keyledsctl.1"
+}
+
+md5sums=('8d27ec4ec0cf939103bb337547b05ae6')