wok annotate srcpd/receipt @ rev 24956
updated nano and nano-doc (4.8 -> 6.2)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 23 16:35:24 2022 +0100 (2022-04-23) |
parents | 40ff746a5f02 |
children | 44fa9ce8ef11 |
rev | line source |
---|---|
rcx@3299 | 1 # SliTaz package receipt. |
rcx@3299 | 2 |
rcx@3299 | 3 PACKAGE="srcpd" |
Hans-G?nter@21967 | 4 VERSION="2.1.3" |
rcx@3299 | 5 CATEGORY="games" |
Hans-G?nter@21967 | 6 SHORT_DESC="Simple Railroad Command Protocol Daemon." |
rcx@3299 | 7 MAINTAINER="rcx@zoominternet.net" |
pascal@15002 | 8 LICENSE="GPL2" |
Hans-G?nter@21967 | 9 WEB_SITE="http://srcpd.sourceforge.net/" |
Hans-G?nter@21967 | 10 |
rcx@3299 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
rcx@3299 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
rcx@3299 | 13 |
pascal@15002 | 14 DEPENDS="glibc-base libxml2 zlib" |
pascal@15002 | 15 BUILD_DEPENDS="libxml2-dev zlib-dev" |
pascal@15002 | 16 |
Hans-G?nter@21967 | 17 CONFIG_FILES="/etc/srcpd.conf" |
Hans-G?nter@21967 | 18 |
pascal@24348 | 19 # What is the latest version available today? |
pascal@24348 | 20 current_version() |
pascal@24348 | 21 { |
pascal@24348 | 22 wget -O - https://sourceforge.net/projects/srcpd/files/srcpd/ 2>/dev/null | \ |
pascal@24348 | 23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24348 | 24 sed '/scope="row/!d;s|.*/srcpd/||;s|/.*||;q' |
pascal@24348 | 25 } |
pascal@24348 | 26 |
rcx@3299 | 27 # Rules to configure and make the package. |
rcx@3299 | 28 compile_rules() |
rcx@3299 | 29 { |
Hans-G?nter@21967 | 30 ./configure \ |
Hans-G?nter@21967 | 31 --sysconfdir=/etc \ |
Hans-G?nter@21967 | 32 $CONFIGURE_ARGS && |
slaxemulator@8987 | 33 make && |
slaxemulator@8987 | 34 make install |
rcx@3299 | 35 } |
rcx@3299 | 36 |
rcx@3299 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3299 | 38 genpkg_rules() |
rcx@3299 | 39 { |
rcx@3299 | 40 mkdir -p $fs/usr |
Hans-G?nter@21967 | 41 |
Hans-G?nter@21967 | 42 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@21967 | 43 cp -a $install/etc $fs |
rcx@3299 | 44 } |