aboutsummaryrefslogtreecommitdiffstats
path: root/community/libtermkey/APKBUILD
blob: 30a51fb0dd58262360869f95d261b14402ab2928 (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
# Contributor: Marvin Steadfast <marvin@xsteadfastx.org>
# Maintainer: Marvin Steadfast <marvin@xsteadfastx.org>
pkgname=libtermkey
pkgver=0.18
pkgrel=2
pkgdesc="Library for easy processing of keyboard entry from terminal-based programs"
url="http://www.leonerd.org.uk/code/libtermkey"
arch="all"
license="MIT"
depends=""
depends_dev="unibilium-dev"
makedepends="$depends_dev libtool perl perl-utils"
subpackages="$pkgname-doc $pkgname-dev"
source="http://www.leonerd.org.uk/code/$pkgname/$pkgname-$pkgver.tar.gz
	build-static-lib.patch"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"

	make PREFIX=/usr || return 1
	make test
}

package() {
	cd "$builddir"

	make PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="7507d7bf22ab075e932401b2194dcc69b40138955dc398c86327a072603df2a1010474fa9a1c75aa7cab936fa500e5e53118675b0ec6e9a85b66a1b6b7f5332e  libtermkey-0.18.tar.gz
c62d691e5ba451fd2256c9f0baed1f87531c3faac946ad5ce3337f422049c2ca0af84ae302618458856e133177c0dfc4101b3c904a472a886196833aded5064c  build-static-lib.patch"