wok annotate atm-tools/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@2200 1 # SliTaz package receipt.
pascal@2200 2
pascal@2200 3 PACKAGE="atm-tools"
pascal@11805 4 VERSION="2.5.2"
pascal@2200 5 CATEGORY="system-tools"
pascal@2200 6 SHORT_DESC="User space tools for atm."
pascal@2200 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15362 8 LICENSE="GPL2"
al@19275 9 WEB_SITE="http://linux-atm.sourceforge.net/"
pascal@2200 10 SOURCE="linux-atm"
pascal@2200 11 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@2200 12 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
pascal@2200 13 CONFIG_FILES="/etc/atmsigd.conf"
pascal@2200 14
pascal@15362 15 BUILD_DEPENDS="flex"
pascal@15362 16
pascal@24340 17 # What is the latest version available today?
pascal@24340 18 current_version()
pascal@24340 19 {
pascal@24340 20 wget -O - https://sourceforge.net/projects/linux-atm/files/linux-atm/ 2>/dev/null | \
pascal@24340 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24340 22 sed '/scope="row/!d;s|.*linux-atm-||;s|.tar.*||;q'
pascal@24340 23 }
pascal@24340 24
pascal@2200 25 # Rules to configure and make the package.
pascal@2200 26 compile_rules()
pascal@2200 27 {
slaxemulator@8751 28 busybox patch -p0 < $stuff/MAX_PATH.u
al@19275 29
pascal@2200 30 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@2200 31 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@9044 32 make -j1 &&
pascal@9044 33 make -j1 DESTDIR=$DESTDIR install
pascal@2200 34 }
pascal@2200 35
pascal@2200 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2200 37 genpkg_rules()
pascal@2200 38 {
pascal@2200 39 mkdir -p $fs/usr/lib
pascal@15362 40 cp -a $install/etc $fs
pascal@15362 41 cp -a $install/usr/bin $fs/usr
pascal@15362 42 cp -a $install/usr/sbin $fs/usr
pascal@15362 43 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@2200 44 }