# Maintainer: Laurent Bercot # Contributor: John Regan pkgname=skalibs pkgver=2.9.2.0 pkgrel=0 pkgdesc="Set of general-purpose C programming libraries for skarnet.org software." url="http://skarnet.org/software/skalibs/" arch="all" license="ISC" options="!check" subpackages="$pkgname-static $pkgname-dev $pkgname-doc" source="http://skarnet.org/software/skalibs/skalibs-$pkgver.tar.gz" build() { ./configure \ --enable-shared \ --enable-static \ --libdir=/usr/lib make } package() { make DESTDIR="$pkgdir" install } dev() { default_dev mkdir -p "$subpkgdir"/usr/lib/"$pkgname"/sysdeps mv "$pkgdir/usr/lib/$pkgname"/sysdeps/* \ "$subpkgdir/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" } static() { default_static rmdir -p "$pkgdir"/usr/lib || : } sha512sums="a351cb8d048cefa495cc35fd2758579879d5ac11d2a1fc00c694d5655aa9e430228517c01fc91bdbc70c3992f73429a68a5365cb46039a7b7bb11358f0f4506d skalibs-2.9.2.0.tar.gz"