# Contributor: John Regan # Maintainer: John Regan pkgname=skalibs pkgver=2.3.8.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="c3e1130dc29cbb4110bf073017c9683c skalibs-2.3.8.0.tar.gz" sha256sums="079d805e962387f6aeb54e813c8a895783116d7ddd0aff55d054f4334e269a5b skalibs-2.3.8.0.tar.gz" sha512sums="e2d47ed7f62ac6a2a682b4f05c2c062fa535f3e544bed1b4b8904819118df18003076e318deded229d7640fc43cf6f9c0d5caed196a99a4c5b5e3c18879ad60a skalibs-2.3.8.0.tar.gz"