summaryrefslogtreecommitdiff
path: root/extra/libevdev/PKGBUILD
blob: 8f669ce1ab79877b9503d6909f5c88fff75860a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $Id: $
# Maintainer: Jan de Groot

pkgname=libevdev
pkgver=0.6
pkgrel=1
pkgdesc="Wrapper library for evdev devices"
arch=(i686 x86_64)
url="http://www.freedesktop.org/wiki/Software/libevdev/"
license=(custom:X11)
depends=('glibc')
makedepends=('python')
source=(http://freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz
        0001-Revert-Drop-deprecated-functions.patch
        0001-Revert-Drop-some-leftover-deprecated-constants.patch)
sha256sums=('1c562ed32252ef9c14aa61e03b38acb886cb3edbbdafbb5181762ff16e010d93'
            '783ba5edf7c9525e8cac46c8c4c981c98395ff3c68ed7a162190ef9e8f13b149'
            '24d52811732b3335eb363416e4862c6152bfe6ebc8c372a298126221f754f041')

build() {
  cd $pkgname-$pkgver

  # Fix libevdev 0.6 missing symbol that breaks clutter, patches from Fedora
  # https://bugzilla.redhat.com/show_bug.cgi?id=1046426
  patch -Np1 -i ../0001-Revert-Drop-deprecated-functions.patch
  patch -Np1 -i ../0001-Revert-Drop-some-leftover-deprecated-constants.patch

  ./configure --prefix=/usr --disable-static --disable-gcov
  make
}

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