wok annotate arj/receipt @ rev 24340

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 31 11:41:46 2022 +0000 (2022-01-31)
parents 11b5e93cb5f2
children 7dd01dedad38
rev   line source
pascal@2643 1 # SliTaz package receipt.
pascal@2643 2
pascal@2643 3 PACKAGE="arj"
pascal@2643 4 VERSION="3.10.22"
pascal@2643 5 CATEGORY="system-tools"
pascal@2643 6 SHORT_DESC="ARJ archiver."
pascal@2643 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15379 8 LICENSE="GPL2"
al@19275 9 WEB_SITE="http://arj.sourceforge.net/"
pascal@2643 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@2643 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@15379 12 TAGS="compression archive"
pascal@15379 13
pascal@2643 14 BUILD_DEPENDS="autoconf"
pascal@2643 15
pascal@24340 16 # What is the latest version available today?
pascal@24340 17 current_version()
pascal@24340 18 {
pascal@24340 19 wget -O - https://sourceforge.net/projects/arj/files/arj/ 2>/dev/null | \
pascal@24340 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24340 21 sed '/scope="row/!d;s|.*arj-||;s|.tar.*||;q'
pascal@24340 22 }
pascal@24340 23
pascal@2643 24 # Rules to configure and make the package.
pascal@2643 25 compile_rules()
pascal@2643 26 {
pascal@2643 27 cd $src/gnu
pascal@2643 28 autoheader
pascal@2643 29 autoconf
pascal@2643 30 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@2643 31 --mandir=/usr/share/man $CONFIGURE_ARGS
pascal@2643 32 cd ..
pankso@9699 33 busybox patch -p0 < $stuff/fardata.u
pascal@15588 34 # Ugly hack...
pascal@15588 35 sed -i 's/Patch not found.*/&return(POSTPROC_ERL_SUCCESS);/' postproc.c
pascal@15588 36 make -j 1 &&
pascal@15379 37 make DESTDIR=$DESTDIR install
pascal@2643 38 }
pascal@2643 39
pascal@2643 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2643 41 genpkg_rules()
pascal@2643 42 {
pascal@2643 43 mkdir -p $fs/usr
pascal@15379 44 cp -a $install/usr/bin $fs/usr
pascal@15379 45 cp -a $install/usr/lib $fs/usr
pascal@2643 46 }