# Contributor: John Regan # Maintainer: John Regan pkgname=skalibs pkgver=2.3.7.0 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 } dev() { default_dev cd "$subpkgdir" mv "$pkgdir/usr/lib/skalibs/sysdeps/"* usr/lib/skalibs/sysdeps/ rm -rf "$pkgdir/usr/lib/skalibs" } md5sums="e84e1be94e0059f7f7abfde7f4e4a7a2 skalibs-2.3.7.0.tar.gz" sha256sums="54564a4fdb2131116b52debe529e0571faf8b2525cecbe4082642edde454f2c8 skalibs-2.3.7.0.tar.gz" sha512sums="dfe31f5a168c1a0ed9931ddea20d129293d34252f2ffc1be9556b0812e6abbfce50800429cbcc17e6c766847161c48eee69e7c0f14625da6d862e650332bf65c skalibs-2.3.7.0.tar.gz"