template (2077B)
1 # Template file for 'apk-tools' 2 pkgname=apk-tools 3 version=3.0.8 4 revision=1 5 short_desc="Package manager for apk packages" 6 maintainer="finwo <finwo@pm.me>" 7 license="GPL-2.0-only" 8 homepage="https://gitlab.alpinelinux.org/alpine/apk-tools" 9 distfiles="https://gitlab.alpinelinux.org/alpine/apk-tools/-/archive/v3.0.8/apk-tools-v3.0.8.tar.gz" 10 checksum=e81c64a6e7c3806d45d4622c253e757aee970be84048554fa0eed79310e9453e 11 depends="glibc zlib openssl" 12 makedepends="glibc zlib openssl linux-longterm-headers" 13 hostmakedepends="muon" 14 15 # Notes: 16 # - Same version the host manager was built from (v3.0.8); target and host 17 # stay on one version until there is a reason to diverge. 18 # - muon (build/host/bin, on PATH via the driver) configures and builds via 19 # its vendored samurai, so no ninja on the host; out-of-tree in 20 # ${WORK}/build, DESTDIR install. 21 # - url_backend=libfetch (in-tree, no extra package) over wget; crypto 22 # openssl (zlib + openssl come from the sysroot via PKG_CONFIG_PATH). 23 # - Disabled: docs (needs host scdoc), help/lua/python (needs lua/python), 24 # tests (CI runs upstream's suite, not the target build), zstd (no zstd 25 # package; our artifacts are gzip). No on-device man pages or embedded 26 # help DB yet - revisit when the operator story needs them. 27 28 do_configure() { 29 mkdir -p "${WORK}/build" 30 cd "${WRKSRC}" 31 # --sysroot: sysroot glibc headers redirect to __isoc23_*, absent in host 32 # libc. Nothing from the host's /usr/include may mix in, so the kernel UAPI 33 # headers come from linux-longterm-headers in the sysroot. 34 export CFLAGS="${CFLAGS:-} --sysroot=${SYSROOT}" 35 export LDFLAGS="${LDFLAGS:-} --sysroot=${SYSROOT} -L${SYSROOT}/usr/lib -Wl,-rpath-link,${SYSROOT}/usr/lib" 36 muon setup \ 37 -Dprefix=/usr \ 38 -Ddocs=disabled \ 39 -Dhelp=disabled \ 40 -Dlua=disabled \ 41 -Dpython=disabled \ 42 -Dtests=disabled \ 43 -Dzstd=disabled \ 44 -Durl_backend=libfetch \ 45 -Dcrypto_backend=openssl \ 46 "${WORK}/build" 47 } 48 49 do_build() { 50 muon -C "${WORK}/build" samu 51 } 52 53 do_install() { 54 DESTDIR="${DESTDIR}" muon -C "${WORK}/build" install 55 }