aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libtickit/APKBUILD
blob: 238403ba982b81c03786ad8e1a549ff18f2b9f3c (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
# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=libtickit
pkgver=0.2
pkgrel=0
pkgdesc="A library that provides an abstracted mechanism for building interactive full-screen terminal programs"
url="http://www.leonerd.org.uk/code/libtickit/"
arch="all"
license="MIT"
depends=""
makedepends="libtermkey-dev"
checkdepends="perl-test-harness-utils"
# See https://bugs.launchpad.net/libtickit/+bug/1756523
options="!check" #FIXME: some tests are failing
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.leonerd.org.uk/code/$pkgname/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare
	cd "$builddir"
	sed -i -e "s/PREFIX=\/usr\/local/PREFIX=\/usr/g" Makefile
}
build() {
	cd "$builddir"
	make PREFIX=/usr
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make install DESTDIR="$pkgdir"
}

sha512sums="5ba8581dfc17d0f56fc9e543aa452980ce864a5079a34d60db3a15b49c82c894ce082598865aeaa28c32c32549c40582fb40d1209ea893c8c6993604cae9437b  libtickit-0.2.tar.gz"