# Maintainer: Laurent Bercot # Contributor: John Regan pkgname=skalibs pkgver=2.4.0.2 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="" 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 \ --libdir=/usr/lib \ --enable-clock \ || 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="edcd88590288cdd0fc8dbd417e0d49e9 skalibs-2.4.0.2.tar.gz" sha256sums="0708172bc2ec9825f8a4f312d35f8dcd94da5f291425a598c33c873b3de77df8 skalibs-2.4.0.2.tar.gz" sha512sums="1a60ff7bf2364cfe56dc5847321dad4eaa3942be90555a405c4c6c6fff287e197621796624cd52030f4373665ef53d4f7cd5832e8492ecf1d75c82544a4c8f2e skalibs-2.4.0.2.tar.gz"