aboutsummaryrefslogtreecommitdiffstats
path: root/main/libinput/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-04-13 03:48:22 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-04-13 03:48:42 -0300
commitfbaa62daf89dfa0c1ad951c304a8abaf0563cb68 (patch)
treed8528b638d12c446d8871d44a2f2f633f1aec568 /main/libinput/APKBUILD
parent6905892bb35b8120cd728c476cfb34f10ff9e424 (diff)
downloadaports-fbaa62daf89dfa0c1ad951c304a8abaf0563cb68.tar.bz2
aports-fbaa62daf89dfa0c1ad951c304a8abaf0563cb68.tar.xz
main/libinput: add zsh-completion subpackage
Diffstat (limited to 'main/libinput/APKBUILD')
-rw-r--r--main/libinput/APKBUILD18
1 files changed, 16 insertions, 2 deletions
diff --git a/main/libinput/APKBUILD b/main/libinput/APKBUILD
index c5879f93ad..39956a0f9f 100644
--- a/main/libinput/APKBUILD
+++ b/main/libinput/APKBUILD
@@ -1,15 +1,21 @@
+# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Daniel Sabogal <dsabogalcc@gmail.com>
pkgname=libinput
pkgver=1.15.4
-pkgrel=0
+pkgrel=1
pkgdesc="Library for handling input devices"
url="https://www.freedesktop.org/wiki/Software/libinput"
arch="all"
license="MIT"
makedepends="eudev-dev libevdev-dev meson mtdev-dev"
checkdepends="diffutils bash"
-subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
+subpackages="
+ $pkgname-dev
+ $pkgname-doc
+ $pkgname-libs
+ $pkgname-zsh-completion:zshcomp:noarch
+ "
source="https://freedesktop.org/software/libinput/libinput-$pkgver.tar.xz"
build() {
@@ -33,4 +39,12 @@ package() {
DESTDIR="$pkgdir" ninja -C builddir/ install
}
+zshcomp() {
+ depends=""
+ pkgdesc="Zsh completions for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel zsh"
+
+ amove usr/share/zsh/site-functions
+}
+
sha512sums="4659818952dc729cd5bdb78ebe21edbbacbf8a66a592b13ba30f3bb4c4e264208ec94440a253cfa4edc8b2ef904954eecea6be0f8d63cf239e3858d3abb64a80 libinput-1.15.4.tar.xz"