wok-6.x view srcpd/receipt @ rev 24727

cookutils: add repo-cooking (used by tank)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 15 10:59:31 2022 +0000 (2022-03-15)
parents 40ff746a5f02
children 44fa9ce8ef11
line source
1 # SliTaz package receipt.
3 PACKAGE="srcpd"
4 VERSION="2.1.3"
5 CATEGORY="games"
6 SHORT_DESC="Simple Railroad Command Protocol Daemon."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL2"
9 WEB_SITE="http://srcpd.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="glibc-base libxml2 zlib"
15 BUILD_DEPENDS="libxml2-dev zlib-dev"
17 CONFIG_FILES="/etc/srcpd.conf"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/srcpd/files/srcpd/ 2>/dev/null | \
23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
24 sed '/scope="row/!d;s|.*/srcpd/||;s|/.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure \
31 --sysconfdir=/etc \
32 $CONFIGURE_ARGS &&
33 make &&
34 make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr
42 cp -a $install/usr/sbin $fs/usr
43 cp -a $install/etc $fs
44 }