extra/libevdev to 1.12.0-1

This commit is contained in:
Kevin Mihelich 2021-11-10 00:53:12 +00:00
parent 53ff84e981
commit 8437a8ccfa
1 changed files with 11 additions and 13 deletions

View File

@ -4,34 +4,32 @@
# - drop valgrind makedepend
pkgname=libevdev
pkgver=1.11.0
pkgver=1.12.0
pkgrel=1
pkgdesc="Wrapper library for evdev devices"
arch=(x86_64)
url="https://www.freedesktop.org/wiki/Software/libevdev/"
license=(custom:MIT)
depends=('glibc')
makedepends=('python' 'check' 'doxygen')
makedepends=('python' 'check' 'doxygen' 'meson')
provides=('libevdev.so')
source=(https://freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz{,.sig})
sha512sums=('b3c6b4a1532c5142f3684b920dcdd497a5368aec516e8c389e2c8f9d1eaba16c907b2a7f2c82a3c3ff89bb4d0ae5503c736098c095f9f1bc98f0668e99bf639d'
sha512sums=('6c1c1362d5112cdf3816d1f735c27e625f5463ebf10a83d675cd9364c3fb291ebcb91c051da442f1a36ed28ba7dd99af74546707f61274f7d5715c544a0ed04c'
'SKIP')
validpgpkeys=('3C2C43D9447D5938EF4551EBE23B7E70B467F0BF') # Peter Hutterer (Who-T) <office@who-t.net>
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr \
--disable-static
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
arch-meson $pkgname-$pkgver build \
-D documentation=disabled
meson compile -C build
}
check() {
cd $pkgname-$pkgver
make check
meson test -C build
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
DESTDIR="$pkgdir" meson install -C build
install -Dm644 $pkgname-$pkgver/COPYING \
"${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}