blob: d9231b195839f6fbb1d2b14c6fdd709cb729a9ae (
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
|
# Maintainer: Florian Walch <florian+aur@fwalch.com>
pkgname=libtermkey-bzr
pkgver=0.18.r0
pkgrel=1
pkgdesc='Library for easy processing of keyboard entry from terminal-based programs.'
arch=('i686' 'x86_64')
url='http://www.leonerd.org.uk/code/libtermkey'
license=('MIT')
depends=('unibilium')
makedepends=('bzr')
conflicts=('libtermkey')
provides=("libtermkey=${pkgver}")
source=("${pkgname}::bzr+http://bazaar.leonerd.org.uk/c/libtermkey/")
sha256sums=('SKIP')
options=('staticlibs')
pkgver() {
cd "${pkgname}"
bzr tags | sort -n -k3 | awk -v REV="$(bzr revno)" 'END { printf("%s.r%s\n", $2, REV-$3) }'
}
build() {
cd "${pkgname}"
make PREFIX=/usr termkey.h libtermkey.la
}
package() {
cd "${pkgname}"
make PREFIX=/usr DESTDIR="${pkgdir}" install
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set sw=2 sts=2 et:
|