wok-current view hd2u/receipt @ rev 13420
Up fox-dev, fox-doc (1.6.46)
author | Samuel Trassare <samuel_trassare@yahoo.com> |
---|---|
date | Mon Oct 01 17:19:01 2012 +0000 (2012-10-01) |
parents | 917ae5062e8a |
children | 380ffe05937a |
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="slaxemulator@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 }