template (1318B)
1 # Template file for 'xz' 2 pkgname=xz 3 version=5.8.4 4 revision=1 5 short_desc="General-purpose data compression library and tools" 6 maintainer="finwo <finwo@pm.me>" 7 license="0BSD" 8 homepage="https://tukaani.org/xz/" 9 # NOTE: TOFU pin from the GitHub release asset. Deliberately modern 10 # (5.8.x): anything at/below 5.6.1 is unacceptable (2024 backdoor). 11 distfiles="https://github.com/tukaani-project/xz/releases/download/v5.8.4/xz-5.8.4.tar.gz" 12 checksum=0014c7886930454fe8bd4228665b51af55eeae560ea135c9c4cd33f55b2591d9 13 # glibc + busybox first: the post-install runs /sbin/ldconfig under 14 # /bin/sh (ordering, not just runtime truth - see libmnl). 15 depends="glibc busybox" 16 17 # Notes: 18 # - Shared-only per packages/README.md. Sysroot seed (second install + 19 # .pc prefix rewrite) so grub's configure links under the sysroot. 20 # - Every UNOS library package carries the ldconfig post-install. 21 22 do_configure() { 23 cd "${WRKSRC}" 24 ./configure --prefix=/usr --disable-static 25 } 26 27 do_build() { 28 cd "${WRKSRC}" 29 make -j"$(nproc)" 30 } 31 32 do_install() { 33 cd "${WRKSRC}" 34 make install DESTDIR="${DESTDIR}" 35 make install DESTDIR="${SYSROOT}" 36 # .la files are build-time libtool metadata, never shipped 37 rm -f "${DESTDIR}"/usr/lib/*.la "${SYSROOT}"/usr/lib/*.la 38 [ -f "${SYSROOT}/usr/lib/pkgconfig/liblzma.pc" ] || die "xz: no sysroot .pc" 39 }