summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-adelie@skarnet.org>2024-04-15 17:31:43 +0000
committerZach van Rijn <me@zv.io>2024-04-25 02:48:27 +0000
commit8647a29c5dd73bec993b17db3865002b0815711d (patch)
tree0031968b6e2236735dce59f8746d1c09465e54e8
parent5b7306b3b5c7cebb305be2ce92cfe2d7d4a7987f (diff)
downloadpackages-8647a29c5dd73bec993b17db3865002b0815711d.tar.gz
packages-8647a29c5dd73bec993b17db3865002b0815711d.tar.bz2
packages-8647a29c5dd73bec993b17db3865002b0815711d.tar.xz
packages-8647a29c5dd73bec993b17db3865002b0815711d.zip
user/s6-dns: simplify APKBUILD
-rw-r--r--user/s6-dns/APKBUILD37
1 files changed, 5 insertions, 32 deletions
diff --git a/user/s6-dns/APKBUILD b/user/s6-dns/APKBUILD
index afaf04e30..cd6c7cc03 100644
--- a/user/s6-dns/APKBUILD
+++ b/user/s6-dns/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Laurent Bercot <ska-adelie@skarnet.org>
pkgname=s6-dns
pkgver=2.3.7.1
-pkgrel=0
+pkgrel=1
pkgdesc="skarnet.org's DNS client libraries and command-line DNS client utilities"
url="https://skarnet.org/software/s6-dns/"
arch="all"
@@ -10,8 +10,8 @@ options="!check"
license="ISC"
_skalibs_version=2.14
depends=""
-makedepends="skalibs-dev>=$_skalibs_version skalibs-libs-dev>=$_skalibs_version"
-subpackages="$pkgname-libs $pkgname-dev $pkgname-libs-dev:libsdev $pkgname-doc"
+makedepends="skalibs-dev>=$_skalibs_version"
+subpackages="$pkgname-dev $pkgname-libs $pkgname-doc"
source="https://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz"
build() {
@@ -28,35 +28,8 @@ build() {
package() {
make DESTDIR="$pkgdir" install
-}
-
-libs() {
- pkgdesc="$pkgdesc (shared libraries)"
- depends="skalibs-libs>=$_skalibs_version"
- mkdir -p "$subpkgdir/usr/lib"
- mv "$pkgdir"/usr/lib/*.so.* "$subpkgdir/usr/lib/"
-}
-
-dev() {
- pkgdesc="$pkgdesc (development files)"
- depends="skalibs-dev>=$_skalibs_version"
- install_if="dev $pkgname=$pkgver-r$pkgrel"
- mkdir -p "$subpkgdir/usr/include" "$subpkgdir/usr/lib"
- mv "$pkgdir/usr/include" "$subpkgdir/usr/"
- mv "$pkgdir"/usr/lib/*.a "$subpkgdir/usr/lib/"
-}
-
-libsdev() {
- pkgdesc="$pkgdesc (development files for dynamic linking)"
- depends="$pkgname-dev"
- mkdir -p "$subpkgdir/usr/lib"
- mv "$pkgdir"/usr/lib/*.so "$subpkgdir/usr/lib/"
-}
-
-doc() {
- default_doc
- mkdir -p "$subpkgdir/usr/share/doc"
- cp -a "$builddir/doc" "$subpkgdir/usr/share/doc/$pkgname"
+ mkdir -p -m 0755 "$pkgdir/usr/share/doc"
+ cp -a "$builddir/doc" "$pkgdir/usr/share/doc/$pkgname"
}
sha512sums="9dabee86d9a27fb0e4a3c10563694bb5734c08c4d730a69daec17dad140274aa104bd6edbd501261c7a7c7bcee505f79134b7119457d5fbedcbb2be6b352ebb0 s6-dns-2.3.7.1.tar.gz"