# Contributor: John Regan # Maintainer: John Regan 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"