# Maintainer: Laurent Bercot # Contributor: John Regan pkgname=execline pkgver=2.1.5.0 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 \ --enable-shared \ --enable-static \ --disable-allstatic \ --libdir=/usr/lib \ --with-dynlib=/lib \ || return 1 make || 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="cc3271375b89a0e3e4ed7e4b659fefe4 execline-2.1.5.0.tar.gz" sha256sums="8a3605a6db73183baa376bf2130e8b7eb75a5b5347c7f9144e520fe86bcb1142 execline-2.1.5.0.tar.gz" sha512sums="43ebff73e279dcffda686a372bded80e12be4b66b6c2fde69f17810aa0b52214d23da8581002adfcb5a40437e335594b8e44c698d0295d8c172fbc2c0a93aeed execline-2.1.5.0.tar.gz"