mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 11:14:36 +08:00
35 lines
915 B
Bash
35 lines
915 B
Bash
|
# Part of the X.org group
|
||
|
# Maintainer: AlmAck <almack@chakraos.org>
|
||
|
|
||
|
pkgname=libevdev
|
||
|
pkgver=1.2.2
|
||
|
pkgrel=2
|
||
|
pkgdesc="Wrapper library for evdev devices"
|
||
|
arch=(x86_64)
|
||
|
url="http://www.freedesktop.org/wiki/Software/libevdev/"
|
||
|
license=(custom:X11)
|
||
|
depends=('glibc')
|
||
|
makedepends=('python2' 'check' 'valgrind' 'doxygen')
|
||
|
#checkdepends=('kmod')
|
||
|
source=(http://freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz)
|
||
|
sha256sums=('860e9a1d5594393ff1f711cdeaf048efe354992019068408abbcfa4914ad6709')
|
||
|
|
||
|
build() {
|
||
|
cd $pkgname-$pkgver
|
||
|
./configure --prefix=/usr \
|
||
|
--disable-static
|
||
|
make
|
||
|
}
|
||
|
check() {
|
||
|
cd $pkgname-$pkgver
|
||
|
# test suite requires root access and needs to load uinput module
|
||
|
# that's not possible in our chroot
|
||
|
#modprobe uinput
|
||
|
make check || /bin/true
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd $pkgname-$pkgver
|
||
|
make DESTDIR="$pkgdir" install
|
||
|
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
|
||
|
}
|