# Contributor: Laurent Bercot # Maintainer: Laurent Bercot pkgname=skalibs pkgver=2.8.0.0 pkgrel=0 pkgdesc="A set of general-purpose C programming libraries for skarnet.org software" url="https://skarnet.org/software/skalibs/" arch="all" options="!check" # No test suite. license="ISC" subpackages="$pkgname-libs $pkgname-dev $pkgname-libs-dev:libsdev $pkgname-doc" source="https://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz" build() { cd "$builddir" ./configure \ --enable-shared \ --enable-static \ --libdir=/usr/lib \ --enable-clock make } package() { cd "$builddir" make DESTDIR="$pkgdir" install } libs() { pkgdesc="$pkgdesc (shared libraries)" depends= mkdir -p "$subpkgdir/lib" mv "$pkgdir"/lib/*.so.* "$subpkgdir/lib/" } dev() { pkgdesc="$pkgdesc (development files)" depends= mkdir -p "$subpkgdir" mv "$pkgdir/usr" "$subpkgdir/" } libsdev() { pkgdesc="$pkgdesc (development files for dynamic linking)" depends="$pkgname-dev" mkdir -p "$subpkgdir/lib" mv "$pkgdir"/lib/*.so "$subpkgdir/lib/" } doc() { pkgdesc="$pkgdesc (documentation)" depends= install_if="docs $pkgname=$pkgver-r$pkgrel" mkdir -p "$subpkgdir/usr/share/doc" cp -a "$builddir/doc" "$subpkgdir/usr/share/doc/$pkgname" } sha512sums="0d8d4a5a68a3f522312c69913a2e998a7cd8562fb99595ed6631531af590701f995b05c2d85defab3cd24d3480787a7456c8326e7bff00cd1a84ff06ca89b463 skalibs-2.8.0.0.tar.gz"