summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e590a91c4a4bc5d4f247de0223692dee6a801037 (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
37
38
39
40
41
42
43
# Maintainer: Vincent Grande <shoober420@gmail.com>
# Contributor: Det <thatone>
# Contributor: Laurent Carlier <lordheavym@gmail.com>

pkgname=xf86-input-libinput-git
pkgver=0.28.1.1.r250.g4985de5
pkgrel=1
pkgdesc="Generic input driver for the X.Org server based on libinput"
arch=('x86_64')
license=('custom')
url="http://xorg.freedesktop.org/"
depends=('libinput')
makedepends=('xorg-server-devel' 'X-ABI-XINPUT_VERSION=24.1' 'libxi' 'libx11' 'resourceproto' 'scrnsaverproto')
conflicts=('xorg-server<1.19.0' 'X-ABI-XINPUT_VERSION<24' 'X-ABI-XINPUT_VERSION>=25')
provides=('xf86-input-libinput')
conflicts=('xf86-input-libinput')
groups=('xorg-drivers')
source=("git://anongit.freedesktop.org/xorg/driver/xf86-input-libinput")
sha512sums=('SKIP')
validpgpkeys=('SKIP') # Peter Hutterer (Who-T) <office@who-t.net>

pkgver() {
  cd xf86-input-libinput
  
  echo $(git describe --long | cut -d "-" -f4-5 | tr - .).r$(git rev-list HEAD --count).$(git describe --long | cut -d "-" -f6)
}

build() {
  cd xf86-input-libinput

  ./autogen.sh  --prefix=/usr \
                --disable-static
  make
}

package() {
  cd xf86-input-libinput

  make DESTDIR="${pkgdir}" install

  install -m755 -d "${pkgdir}/usr/share/licenses/xf86-input-libinput"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/xf86-input-libinput/"
}