summaryrefslogblamecommitdiff
path: root/user/libinput/APKBUILD
blob: 76b3f44f7d2509b881171581247b8b0e0c498db1 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                              
             




                                                         
                                                                 





                                                                          
                                            
                             
                                       
















                                                                            
                                                                                                                                                                     
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libinput
pkgver=1.12.3
pkgrel=0
pkgdesc="Library for handling input devices"
url="https://www.freedesktop.org/wiki/Software/libinput/"
arch="all"
license="MIT"
makedepends="eudev-dev libevdev-dev libwacom-dev meson mtdev-dev"
checkdepends="check-dev valgrind"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="https://freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz"

build() {
	cd "$builddir"
	# Docs disabled: requires sphinx now
	meson --prefix=/usr \
		-Ddocumentation=false \
		-Dlibwacom=true \
		-Ddebug-gui=false \
		-Dtests=true builddir/
	ninja -C builddir/
}

check() {
	cd "$builddir"
	ninja -C builddir/ test
}

package() {
	cd "$builddir"
	DESTDIR="$pkgdir" ninja -C builddir/ install
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

sha512sums="cdc512cb53442ae85d5a23e10db9dd3548bcca0de24d7fcc48954a60773563d84d9b10278b6a693ade95d0789bb5d42bbb8b7cf1c178fe85401cb09a5402ff02  libinput-1.12.3.tar.xz"