summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3fedaa8257a57796da60df58db69f4d6ea07da52 (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
# Maintainer: Bart De Vries <devriesb@gmail.com>
pkgname=twofing-git
pkgver=r15.c647c32
pkgrel=1
pkgdesc="Touchscreen two-finger gestures daemon"
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url="http://plippo.de/p/twofing"
license=('MIT')
groups=()
depends=(libxrandr libxtst)
makedepends=('git')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=twofing-git.install
source=('twofing::git+https://github.com/Plippo/twofing.git#branch=master')
noextract=()
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/${pkgname%-git}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd "$srcdir/${pkgname%-git}"
    sed -n '/Copyright/,/ SOFTWARE./p' twofingemu.c > LICENSE
    #patch -p1 -i "$srcdir/${pkgname%-git}.patch"
}

build() {
    cd "$srcdir/${pkgname%-git}"
    make
}

package() {
    cd "$srcdir/${pkgname%-git}"
    make DESTDIR="$pkgdir/" install
    install -D -m644  LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}