aboutsummaryrefslogtreecommitdiffstats
path: root/testing/stfl/APKBUILD
blob: d10829ec3563745672f11cee26fa3bfadbee1244 (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
43
44
45
46
47
48
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=stfl
pkgver=0.22
pkgrel=0
pkgdesc="The Structured Terminal Forms Language/Library"
url="http://www.clifford.at/stfl/"
arch="all"
license="LGPLv3+"
depends=""
depends_dev=""
makedepends="$depends_dev ncurses-dev libiconv-dev"
install=""
subpackages="$pkgname-dev"
source="http://www.clifford.at/stfl/stfl-$pkgver.tar.gz
	ncurses.patch
	libs.patch"

_builddir="$srcdir"/stfl-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la "$pkgdir"/usr/lib/*.a
}

md5sums="df4998f69fed15fabd702a25777f74ab  stfl-0.22.tar.gz
43f04a9e6d1b544f6b60327b6d52b456  ncurses.patch
c97e5120af576056f7bd55121b35dea8  libs.patch"
sha256sums="2dddafd331e61ad04baf1251ccecb3a69feaf99880dd75155be8423c1cc55418  stfl-0.22.tar.gz
20d9acdde7da2fc03fa00cafdf3c689dfbd0131c085e12e6fbdc498ec6d37010  ncurses.patch
2cec3f9e649cdb096361acc8dc5cf77cb4007795c7450683a9f4cd22187d67f5  libs.patch"
sha512sums="dab2335ef00b65d00abda2a51fb5c667b48864b02ee82abee049f15fd9e2f272f21ec80d4a6cdbb5fc5882239ba28964912e4c0b641b2e83a7ab3bd7f94415bb  stfl-0.22.tar.gz
2f31207d7fff88724a539ec7add1ad9f305e9adb36326acc6e42b6c27b0d93f74dc254b9f91c9b0ce0fb1d7d7c3d7d65defbc2086e9868108641df3a47e77166  ncurses.patch
def75440a498d592aa5ee7e3b8302f863ec4f01e6a08264db221c390acc92d1d38eec9032ec9abd1af469ea5622ac1f8caf9c0aaba1a9e81434ddab4631ace4e  libs.patch"