# Contributor: John Regan # Maintainer: John Regan pkgname=skalibs pkgver=2.3.5.1 pkgrel=0 pkgdesc="A set of general-purpose C programming libraries for skarnet.org software." url="http://skarnet.org/software/skalibs/" arch="all" license="ISC" depends="" depends_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 \ --prefix=/usr \ --libdir=/usr/lib \ --datadir=/etc \ --enable-force-devr \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.la } md5sums="d18e9361194e478f685a05b814658c0f skalibs-2.3.5.1.tar.gz" sha256sums="9ef75d87bf6d586e828888e4cee6adbb74c06d6afcdb50f6c395644ce0e561d4 skalibs-2.3.5.1.tar.gz" sha512sums="2a29848eb08456df9ba1962cfa376635ee37f855bfcbbde33bf14f6bf8694b4a8e04ff7574c06a6ebc91eb180da8a1d11945845e3c5cd2ef48ff0e17ffa9ed6f skalibs-2.3.5.1.tar.gz"