wok annotate apr/receipt @ rev 25515

Update qemu website
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 19 09:52:04 2023 +0000 (21 months ago)
parents 076f424196b2
children 4e2caf3cd17b
rev   line source
erjo@1217 1 # SliTaz package receipt.
erjo@1217 2
erjo@1217 3 PACKAGE="apr"
Hans-G?nter@22491 4 VERSION="1.7.0"
pascal@1423 5 CATEGORY="misc"
Hans-G?nter@22491 6 SHORT_DESC="Apache Portable Runtime Library."
erjo@1217 7 MAINTAINER="lehswe@gmail.com"
pascal@15264 8 LICENSE="Apache"
Hans-G?nter@22491 9 WEB_SITE="https://apr.apache.org"
Hans-G?nter@22491 10
Hans-G?nter@22491 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@24972 12 WGET_URL="https://www.apache.org/dist/$PACKAGE/$TARBALL"
erjo@1217 13
pascal@15264 14 DEPENDS="util-linux-uuid"
pascal@15264 15 BUILD_DEPENDS="util-linux-uuid-dev"
pascal@15264 16
Hans-G?nter@22491 17 CROSS="error: cannot check for file existence when cross compiling"
Hans-G?nter@22491 18
pascal@24373 19 # What is the latest version available today?
pascal@24373 20 current_version()
pascal@24373 21 {
pascal@24373 22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24383 23 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;/asc/d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24373 24 }
pascal@24373 25
erjo@1217 26 # Rules to configure and make the package.
erjo@1217 27 compile_rules()
erjo@1217 28 {
Hans-G?nter@22491 29 ./configure \
pascal@23072 30 ap_cv_atomic_builtins=no \
Hans-G?nter@22491 31 --prefix=/usr \
Hans-G?nter@22491 32 --with-installbuilddir=/usr/share/apr-1/build \
Hans-G?nter@22491 33 --enable-nonportable-atomics \
Hans-G?nter@22491 34 --with-devrandom \
Hans-G?nter@22491 35 --build=$HOST_SYSTEM \
pascal@15264 36 --host=$HOST_SYSTEM 2>&1 | grep -v '/libtool:' &&
Hans-G?nter@22491 37 make &&
Hans-G?nter@22491 38 make install
erjo@1217 39 }
erjo@1217 40
erjo@1217 41 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@1217 42 genpkg_rules()
erjo@1217 43 {
erjo@1217 44 mkdir -p $fs/usr/lib
Hans-G?nter@22491 45
Hans-G?nter@22491 46 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@22491 47 cp -a $install/usr/lib/*.exp $fs/usr/lib
erjo@1217 48 }