unos-repository

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

template (1613B)


      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="zlib openssl"
     12 makedepends="zlib openssl"
     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, ninja builds;
     19 #   out-of-tree in ${WORK}/build, DESTDIR install.
     20 # - url_backend=libfetch (in-tree, no extra package) over wget; crypto
     21 #   openssl (zlib + openssl come from the sysroot via PKG_CONFIG_PATH).
     22 # - Disabled: docs (needs host scdoc), help/lua/python (needs lua/python),
     23 #   tests (CI runs upstream's suite, not the target build), zstd (no zstd
     24 #   package; our artifacts are gzip). No on-device man pages or embedded
     25 #   help DB yet - revisit when the operator story needs them.
     26 
     27 do_configure() {
     28   mkdir -p "${WORK}/build"
     29   cd "${WRKSRC}"
     30   muon setup \
     31     -Dprefix=/usr \
     32     -Ddocs=disabled \
     33     -Dhelp=disabled \
     34     -Dlua=disabled \
     35     -Dpython=disabled \
     36     -Dtests=disabled \
     37     -Dzstd=disabled \
     38     -Durl_backend=libfetch \
     39     -Dcrypto_backend=openssl \
     40     "${WORK}/build"
     41 }
     42 
     43 do_build() {
     44   ninja -C "${WORK}/build"
     45 }
     46 
     47 do_install() {
     48   DESTDIR="${DESTDIR}" ninja -C "${WORK}/build" install
     49 }