summaryrefslogtreecommitdiff
path: root/system/skalibs/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'system/skalibs/APKBUILD')
-rw-r--r--system/skalibs/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/system/skalibs/APKBUILD b/system/skalibs/APKBUILD
new file mode 100644
index 000000000..d5039997c
--- /dev/null
+++ b/system/skalibs/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: John Regan <john@jrjrtech.com>
+# Maintainer: Laurent Bercot <ska-devel@skarnet.org>
+pkgname=skalibs
+pkgver=2.6.4.0
+pkgrel=0
+pkgdesc="A set of general-purpose C programming libraries for skarnet.org software"
+url="http://skarnet.org/software/skalibs/"
+arch="all"
+options="!check" # No test suite.
+license="ISC"
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://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
+}
+
+dev() {
+ default_dev
+ 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"
+}
+
+sha512sums="19062853bd9df0dadeceaab96aca9d2a68d93aada7552d306902d1b13c55d421bbff7fd37dccaf1a81d66bbecf43ed2242961fdb7bd51ff22e9b6114c1b2bb77 skalibs-2.6.4.0.tar.gz"