wok-6.x view atftp/receipt @ rev 13299
dukto: fix genpkg_rules (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 28 14:08:54 2012 +0200 (2012-08-28) |
parents | 83a5a446092c |
children | f4c22f009037 |
line source
1 # SliTaz package receipt.
3 PACKAGE="atftp"
4 VERSION="0.7"
5 CATEGORY="network"
6 SHORT_DESC="Advanced Trivial File Transport Protocol client."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://freshmeat.net/projects/atftp/"
10 WGET_URL="http://downloads.openwrt.org/sources/$TARBALL"
12 DEPENDS="ncurses readline"
13 BUILD_DEPENDS="pcre-dev readline-dev"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 rm -rf _pkg 2> /dev/null
20 sed -i -e 's/char \*__entry) __THROW/char *__entry))/' \
21 -e 's/^_*argz_next/__NTH(&/' argz.h
22 sed -i 's/CLK_TCK/CLOCKS_PER_SEC/' stats.c
23 ./configure --prefix=/usr --infodir=/usr/share/info \
24 --mandir=/usr/share/man \
25 $CONFIGURE_ARGS &&
26 make &&
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr
34 cp -a $_pkg/usr/bin $fs/usr
35 }