wok view hd2u/receipt @ rev 15000

Add some GPL2 licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 10 17:00:38 2013 +0000 (2013-08-10)
parents 8387b6915400
children 9e01bc6321ea
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tgz"
10 WEB_SITE="http://hany.sk/~hany/software/hd2u/"
11 WGET_URL="http://hany.sk/~hany/_data/hd2u/$TARBALL"
13 DEPENDS="popt"
14 BUILD_DEPENDS="popt-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure \
21 --prefix=/usr \
22 --infodir=/usr/share/info \
23 --mandir=/usr/share/man \
24 $CONFIGURE_ARGS &&
25 make && make prefix=$DESTDIR/usr install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr
32 cp -a $install/usr/bin $fs/usr
33 }
35 # Pre and post install commands for Tazpkg.
36 # We must remove all Busybox symlink before installing.
37 #
38 pre_install()
39 {
40 local root
41 root=$1
42 echo "Processing pre-install commands..."
43 echo -n "Removing all Busybox replaced utils... "
44 rm -f $root/usr/bin/dos2unix
45 status
46 }
48 post_remove()
49 {
50 ln -s /bin/busybox /usr/bin/dos2unix
51 }