# Maintainer: Laurent Bercot # Contributor: John Regan pkgname=execline pkgver=2.1.4.5 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 $pkgname-doc" 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 \ --host=$CHOST \ --enable-shared \ --enable-static \ --disable-allstatic \ --libdir=/usr/lib \ --with-dynlib=/lib \ || return 1 make || return 1 make strip || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } doc() { default_doc mkdir -p "$subpkgdir/usr/share/doc" cp -a "$_builddir/doc" "$subpkgdir/usr/share/doc/$pkgname" } md5sums="94eae34d6ebb1141864a2d9f7babd342 execline-2.1.4.5.tar.gz" sha256sums="ab4451d4992a5d7fb2ae34cffe4d0806e4902bf9aa27ee3b75617aa35379356f execline-2.1.4.5.tar.gz" sha512sums="15a76c73afe98142b9f466edb442cad06ee69f0f0e15ad6a325c37f3878b4c5863b5cece67bd169e84b465a0f7f4f38f87fa88b2aa96fe40a20ebc3575a1ceb9 execline-2.1.4.5.tar.gz"