wok-6.x view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="Geomyidae"
4 VERSION="0.34"
5 CATEGORY="network"
6 SHORT_DESC="Geomyidae is a daemon for serving the Gopher protocol."
7 MAINTAINER="allan316@gmail.com"
8 LICENSE="MIT"
9 WEB_SITE="http://www.r-36.net/"
11 SOURCE="geomyidae"
12 TARBALL="$SOURCE-v$VERSION.tgz"
13 #WGET_URL="${WEB_SITE}src/$PACKAGE/$TARBALL"
14 WGET_URL="ftp://bitreich.org/releases/$SOURCE/$TARBALL"
16 current_version()
17 {
18 wget -O - http://r-36.net/scm/geomyidae/refs.html 2> /dev/null | \
19 sed '/<td>/!d;s|.*v||;s|<.*||' | sed '$!d'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 make CC=gcc PREFIX=/usr &&
26 make install \
27 PREFIX=/usr \
28 DESTDIR=$DESTDIR || exit 1
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr $fs/var/gopher
35 cp -a $src/index.gph $fs/var/gopher/
36 cp -a $install/usr/bin $fs/usr
37 }