unos-repository

APK repository for unos
git clone git://git.finwo.net/misc/unos-repository
Log | Files | Refs | README

template (1815B)


      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-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 comes from the driver; kernel UAPI headers come from
     32   # linux-headers in the sysroot, never from the host.
     33   muon setup \
     34     -Dprefix=/usr \
     35     -Ddocs=disabled \
     36     -Dhelp=disabled \
     37     -Dlua=disabled \
     38     -Dpython=disabled \
     39     -Dtests=disabled \
     40     -Dzstd=disabled \
     41     -Durl_backend=libfetch \
     42     -Dcrypto_backend=openssl \
     43     "${WORK}/build"
     44 }
     45 
     46 do_build() {
     47   muon -C "${WORK}/build" samu
     48 }
     49 
     50 do_install() {
     51   DESTDIR="${DESTDIR}" muon -C "${WORK}/build" install
     52 }