summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0bcf9f472a15dff9354bee34bfa983c27636dd3c (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
# Maintainer: Jason Gerecke <killertofu@gmail.com>

pkgname=hid-replay-git
pkgver=0.7.1.r44.g6d83e48
pkgrel=1
pkgdesc="HID event recorder and utilities."
arch=('i686' 'x86_64')
url="https://github.com/bentiss/hid-replay/"
license=('GPL2')
depends=('glibc')
optdepends=(
    'xmlto: build manpages'
    'asciidoc: build manpages'
)
makedepends=('git')
provides=('hid-replay')
conflicts=('hid-replay')
options=('!libtool')
source=("$pkgname"::git+https://github.com/bentiss/hid-replay.git#branch=master)
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  git describe --long --tags | sed -r 's/^v//;s/-/.r/; s/-/./'
}

build() {
  cd "$srcdir/$pkgname"
  
  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname"
  make DESTDIR="$pkgdir/" install
}