aboutsummaryrefslogtreecommitdiffstats
path: root/main/execline/APKBUILD
blob: 1f2dc4c8964cf8590af653375c8e448efb69266b (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.3.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="8d54f85f63ab51fab38960c5f4e65731  execline-2.1.3.1.tar.gz"
sha256sums="7291d7c0e40f9706fc223abe290bb07a71fcf5fceec079a715e7d25bd2700236  execline-2.1.3.1.tar.gz"
sha512sums="eddac45805d36f1ecc182f5782ba5b1db917635a761ac81074646666022a1f3963867bed693a7f66180f3616f067ca297fb4cc3e67c938387514112f8d25972a  execline-2.1.3.1.tar.gz"