wok-6.x annotate Geomyidae/receipt @ rev 24465
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 17 12:02:46 2022 +0000 (2022-02-17) |
parents | a3b6dd3aac6f |
children |
rev | line source |
---|---|
allan316@3229 | 1 # SliTaz package receipt. |
allan316@3229 | 2 |
allan316@3229 | 3 PACKAGE="Geomyidae" |
Hans-G?nter@20717 | 4 VERSION="0.34" |
allan316@3229 | 5 CATEGORY="network" |
samuel_trassare@13553 | 6 SHORT_DESC="Geomyidae is a daemon for serving the Gopher protocol." |
allan316@3229 | 7 MAINTAINER="allan316@gmail.com" |
pascal@15201 | 8 LICENSE="MIT" |
Hans-G?nter@20717 | 9 WEB_SITE="http://www.r-36.net/" |
Hans-G?nter@20717 | 10 |
samuel_trassare@13553 | 11 SOURCE="geomyidae" |
Hans-G?nter@20717 | 12 TARBALL="$SOURCE-v$VERSION.tgz" |
Hans-G?nter@20717 | 13 #WGET_URL="${WEB_SITE}src/$PACKAGE/$TARBALL" |
Hans-G?nter@20717 | 14 WGET_URL="ftp://bitreich.org/releases/$SOURCE/$TARBALL" |
allan316@3229 | 15 |
pascal@24093 | 16 current_version() |
pascal@24093 | 17 { |
pascal@24094 | 18 wget -O - http://r-36.net/scm/geomyidae/refs.html 2> /dev/null | \ |
pascal@24094 | 19 sed '/<td>/!d;s|.*v||;s|<.*||' | sed '$!d' |
pascal@24093 | 20 } |
pascal@24093 | 21 |
allan316@3229 | 22 # Rules to configure and make the package. |
allan316@3229 | 23 compile_rules() |
allan316@3229 | 24 { |
Hans-G?nter@20717 | 25 make CC=gcc PREFIX=/usr && |
Hans-G?nter@20717 | 26 make install \ |
Hans-G?nter@20718 | 27 PREFIX=/usr \ |
Hans-G?nter@20717 | 28 DESTDIR=$DESTDIR || exit 1 |
allan316@3229 | 29 } |
allan316@3229 | 30 |
allan316@3229 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
allan316@3229 | 32 genpkg_rules() |
allan316@3229 | 33 { |
allan316@3229 | 34 mkdir -p $fs/usr $fs/var/gopher |
allan316@3229 | 35 cp -a $src/index.gph $fs/var/gopher/ |
pascal@15201 | 36 cp -a $install/usr/bin $fs/usr |
allan316@3229 | 37 } |