wok-4.x view hd2u/receipt @ rev 10348
gawk: Add BUILD_DEPENDS back so gawk will be build after gcc is with tazwok.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun May 22 15:20:47 2011 +0000 (2011-05-22) |
parents | 32b768dcab00 |
children | 7f6ba0da8010 |
line source
1 # SliTaz package receipt.
3 PACKAGE="hd2u"
4 VERSION="1.0.3"
5 CATEGORY="misc"
6 SHORT_DESC="Dos2Unix text file converter."
7 MAINTAINER="slaxemualtor@gmail.com"
8 DEPENDS="popt"
9 BUILD_DEPENDS="popt-dev"
10 TARBALL="$PACKAGE-$VERSION.tgz"
11 WEB_SITE="http://hany.sk/~hany/software/hd2u/"
12 WGET_URL="http://hany.sk/~hany/_data/hd2u/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure \
19 --prefix=/usr \
20 --infodir=/usr/share/info \
21 --mandir=/usr/share/man \
22 $CONFIGURE_ARGS &&
23 make && make prefix=$PWD/_pkg/usr install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr
30 cp -a $_pkg/usr/bin $fs/usr
31 }
33 # Pre and post install commands for Tazpkg.
34 # We must remove all Busybox symlink before installing.
35 #
36 pre_install()
37 {
38 local root
39 root=$1
40 echo "Processing pre-install commands..."
41 echo -n "Removing all Busybox replaced utils... "
42 rm -f $root/usr/bin/dos2unix
43 status
44 }
46 post_remove()
47 {
48 ln -s /bin/busybox /usr/bin/dos2unix
49 }