From e4084ff7dbd1137860d6a5081512e7b347951c22 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 15 Apr 2024 16:17:02 +0000 Subject: system/skalibs: simplify APKBUILD --- system/skalibs/APKBUILD | 40 +++++++--------------------------------- 1 file changed, 7 insertions(+), 33 deletions(-) (limited to 'system') 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 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" -- cgit v1.2.3-70-g09d2