# Maintainer: Laurent Bercot # Contributor: John Regan pkgname=skalibs pkgver=2.3.9.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 $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 \ --libdir=/usr/lib \ --enable-clock \ --enable-force-devr \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } dev() { default_dev cd "$subpkgdir" mv -f "$pkgdir/usr/lib/$pkgname"/sysdeps/* "usr/lib/$pkgname/sysdeps/" rm -rf "$pkgdir/usr" } doc() { default_doc mkdir -p "$subpkgdir/usr/share/doc" cp -a "$_builddir/doc" "$subpkgdir/usr/share/doc/$pkgname" } md5sums="8cc1dfad59a588ba3956d78c81b5ea0a skalibs-2.3.9.0.tar.gz" sha256sums="6229fb4fb415699bbff3b446ff44aa5b7fb9c512b83bd68ae4005603afab60cb skalibs-2.3.9.0.tar.gz" sha512sums="30b08fec01944fd7e816eb275dfe6eafdf21e14af95e70ae4991b9da716ab191b22c1576084ed7c40fd9e958804519075befaaf4314ccb370ced3c5e94793212 skalibs-2.3.9.0.tar.gz"