wok annotate commoncpp2/receipt @ rev 25442
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 02 16:30:36 2022 +0000 (2022-09-02) |
parents | 408c87fa22ca |
children | d79ed38ace18 |
rev | line source |
---|---|
rcx@3771 | 1 # SliTaz package receipt. |
rcx@3771 | 2 |
rcx@3771 | 3 PACKAGE="commoncpp2" |
slaxemulator@7291 | 4 VERSION="1.8.1" |
rcx@3771 | 5 CATEGORY="development" |
rcx@3771 | 6 SHORT_DESC="A very portable and highly optimized class framework for writing C++ applications." |
rcx@3771 | 7 MAINTAINER="rcx@zoominternet.net" |
pascal@15001 | 8 LICENSE="GPL2" |
rcx@3771 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
rcx@3771 | 10 WEB_SITE="http://www.gnu.org/software/commoncpp/" |
rcx@6058 | 11 WGET_URL="$GNU_MIRROR/commoncpp/$TARBALL" |
rcx@3771 | 12 |
pascal@15001 | 13 DEPENDS="glibc-base gcc-lib-base zlib" |
pascal@15001 | 14 |
pascal@24336 | 15 # What is the latest version available today? |
pascal@24336 | 16 current_version() |
pascal@24336 | 17 { |
pascal@24336 | 18 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24336 | 19 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24336 | 20 } |
pascal@24336 | 21 |
rcx@3771 | 22 # Rules to configure and make the package. |
rcx@3771 | 23 compile_rules() |
rcx@3771 | 24 { |
rcx@3771 | 25 cd $src |
slaxemulator@9028 | 26 sed -i -e '50 a\#include <sys/stat.h>' inc/cc++/applog.h |
rcx@3771 | 27 ./configure \ |
slaxemulator@10296 | 28 --sysconfdir=/etc \ |
slaxemulator@10296 | 29 $CONFIGURE_ARGS && |
slaxemulator@10296 | 30 make && make install |
rcx@3771 | 31 } |
rcx@3771 | 32 |
rcx@3771 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3771 | 34 genpkg_rules() |
rcx@3771 | 35 { |
rcx@3771 | 36 mkdir -p $fs/usr/lib |
pascal@15001 | 37 cp -a $install/usr/lib/*.so* $fs/usr/lib |
rcx@3771 | 38 } |