diff options
author | Laurent Bercot <ska-adelie@skarnet.org> | 2024-04-15 16:17:02 +0000 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2024-04-25 02:48:27 +0000 |
commit | e4084ff7dbd1137860d6a5081512e7b347951c22 (patch) | |
tree | a346da51ef53f4340a43d82249594f953a381343 /system/skalibs | |
parent | a6e5493f4a89b3cf90b45785a5a2f77b73d3da4e (diff) | |
download | packages-e4084ff7dbd1137860d6a5081512e7b347951c22.tar.gz packages-e4084ff7dbd1137860d6a5081512e7b347951c22.tar.bz2 packages-e4084ff7dbd1137860d6a5081512e7b347951c22.tar.xz packages-e4084ff7dbd1137860d6a5081512e7b347951c22.zip |
system/skalibs: simplify APKBUILD
Diffstat (limited to 'system/skalibs')
-rw-r--r-- | system/skalibs/APKBUILD | 40 |
1 files changed, 7 insertions, 33 deletions
diff --git a/system/skalibs/APKBUILD b/system/skalibs/APKBUILD index 5922ef183..90b07644d 100644 --- a/system/skalibs/APKBUILD +++ b/system/skalibs/APKBUILD @@ -2,13 +2,13 @@ # Maintainer: Laurent Bercot <ska-adelie@skarnet.org> pkgname=skalibs pkgver=2.14.1.1 -pkgrel=0 +pkgrel=1 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" +subpackages="$pkgname-dev $pkgname-libs $pkgname-doc" source="https://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz" build() { @@ -21,40 +21,14 @@ build() { package() { make DESTDIR="$pkgdir" install + mkdir -p -m 0755 "$pkgdir/usr/share/doc" + cp -a "$builddir/doc" "$pkgdir/usr/share/doc/$pkgname" } - -libs() { - pkgdesc="$pkgdesc (shared libraries)" - depends="" - mkdir -p "$subpkgdir/lib" - mv "$pkgdir"/lib/*.so.* "$subpkgdir/lib/" -} - - dev() { - pkgdesc="$pkgdesc (development files)" - depends="" - install_if="dev $pkgname=$pkgver-r$pkgrel" - 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" + default_dev + mkdir -p -m 0755 "$subpkgdir/usr/lib/skalibs" + mv "$pkgdir/usr/lib/skalibs/sysdeps" "$subpkgdir/usr/lib/skalibs/" } sha512sums="01b3da7614ee626f838b62aff6fa2d4677ab5c5dfffcb3145232db9ac0b5bf70c063f4d83abdee809139fee721c75550eb997e2c3e265417b9493c98886236f9 skalibs-2.14.1.1.tar.gz" |