blob: 8ffba139c5b8c3c194e449d22a919b0bd0f6251b (
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
44
45
46
|
# Maintainer:
# Contributor: Felix Golatofski <contact@xdfr.de>
pkgname=xf86-input-cmt-git
pkgdesc="Chromium OS multitouch input driver for Xorg X server"
pkgver=1.0.r17.g6537abb
pkgrel=1
epoch=1
arch=(i686 x86_64)
url="https://github.com/GalliumOS/xf86-input-cmt"
license=('custom:chromiumos')
_gitname='xf86-input-cmt'
depends=('xf86-input-cmt-setup' 'xf86-input-evdev' 'libgestures' 'libevdev' 'libevdevc')
provides=("xf86-input-cmt=$pkgver")
conflicts=('xf86-input-synaptics')
makedepends=('autoconf' 'automake' 'dmidecode' 'git' 'xorg-util-macros' 'xorg-server-devel')
install=${pkgname}.install
source=("$_gitname::git+https://github.com/GalliumOS/xf86-input-cmt.git")
sha512sums=('SKIP')
pkgver() {
cd "$srcdir/$_gitname"
# cutting off 'release.' prefix that presents in the git tag
git describe --long --tags | sed 's/^release.//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$_gitname"
chmod +x autogen.sh
./autogen.sh
./configure --prefix=/usr
make
}
package() {
make -C "$srcdir/$_gitname" DESTDIR="$pkgdir/" install
mkdir -p $pkgdir/usr/share/xf86-input-cmt/
cp -R $srcdir/$_gitname/xorg-conf/* $pkgdir/usr/share/xf86-input-cmt/
cp -R $srcdir/$_gitname/README.md $pkgdir/usr/share/xf86-input-cmt/README
install -Dm644 ${srcdir}/${_gitname}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
libtool --finish /usr/lib/xorg/modules/input
}
|