diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-15 00:30:53 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-15 00:30:53 -0500 |
commit | 4f92745341d470940ab983629d5c8deb9d93b54b (patch) | |
tree | a076eb5cf5647d84656c08775dbd1eb44919e48c | |
parent | b70e0c7bfe62f31602b1c13b2384da1863489856 (diff) | |
download | packages-4f92745341d470940ab983629d5c8deb9d93b54b.tar.gz packages-4f92745341d470940ab983629d5c8deb9d93b54b.tar.bz2 packages-4f92745341d470940ab983629d5c8deb9d93b54b.tar.xz packages-4f92745341d470940ab983629d5c8deb9d93b54b.zip |
system/skalibs: new package
-rw-r--r-- | system/skalibs/APKBUILD | 42 |
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" |