template (1186B)
1 # Template file for 'popt' 2 pkgname=popt 3 version=1.19 4 revision=0 5 short_desc="Command-line option parsing library" 6 maintainer="finwo <finwo@pm.me>" 7 license="MIT" 8 homepage="https://github.com/rpm-software-management/popt" 9 # NOTE: TOFU pin; https to ftp.rpm.org fails from here, http works. 10 distfiles="http://ftp.rpm.org/popt/releases/popt-1.x/popt-1.19.tar.gz" 11 checksum=c25a4838fc8e4c1c8aacb8bd620edb3084a3d63bf8987fdad3ca2758c63240f9 12 # glibc + busybox first: the post-install runs /sbin/ldconfig under 13 # /bin/sh (ordering, not just runtime truth - see libmnl). 14 depends="glibc busybox" 15 16 # Notes: 17 # - Shared-only per packages/README.md. Sysroot seed (second install + 18 # .pc prefix rewrite) so efibootmgr's build finds it via PKG_CONFIG_PATH. 19 # - Every UNOS library package carries the ldconfig post-install. 20 21 do_configure() { 22 cd "${WRKSRC}" 23 ./configure --prefix=/usr --disable-static 24 } 25 26 do_build() { 27 cd "${WRKSRC}" 28 make -j"$(nproc)" 29 } 30 31 do_install() { 32 cd "${WRKSRC}" 33 make install DESTDIR="${DESTDIR}" 34 make install DESTDIR="${SYSROOT}" 35 rm -f "${DESTDIR}"/usr/lib/*.la "${SYSROOT}"/usr/lib/*.la 36 [ -f "${SYSROOT}/usr/lib/pkgconfig/popt.pc" ] || die "popt: no sysroot .pc" 37 }