aboutsummaryrefslogtreecommitdiffstats
path: root/testing/execline/APKBUILD
blob: 88237f68617260f574a1322e3ba63f7afc464975 (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
49
50
# Contributor: John Regan <john@jrjrtech.com>
# Maintainer: John Regan <john@jrjrtech.com>
pkgname=execline
pkgver=2.1.1.1
pkgrel=0
pkgdesc="A small scripting language, to be used in place of a shell in non-interactive scripts."
url="http://skarnet.org/software/$pkgname/"
arch="all"
license="ISC"
depends="skalibs"
depends_dev="skalibs-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir/$pkgname-$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"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--enable-shared \
		--enable-static \
		--disable-allstatic \
		--prefix=/usr \
		--libdir=/usr/lib \
		|| return 1
	make || return 1
}

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

md5sums="e0e47ee6715c3a9b1f322ac1124c3a12  execline-2.1.1.1.tar.gz"
sha256sums="05e1a7327f37ab633e854ffa162e01bef85cda655d90e11b4b30a11ce989b97c  execline-2.1.1.1.tar.gz"
sha512sums="b5e09a4a8061042bbea82ce4ae3e954b86761a2aeb651345938e67b1ff9a3fff81c5bf40095a4f848b2e3c2905946b3c2a52fdb8496fbb42f89a820d39667a49  execline-2.1.1.1.tar.gz"