wok-6.x view hd2u/receipt @ rev 14907

lxinput: up 0.3.2; openbox: fix pipe menu display; slitaz-i18n: add missing core packages; tiny edits.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Aug 02 15:13:41 2013 +0300 (2013-08-02)
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 }