wok-6.x annotate hd2u/receipt @ rev 8014

add garcon, agrcon-dev
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Thu Jan 20 02:06:45 2011 +0100 (2011-01-20)
parents 32b768dcab00
children 8387b6915400
rev   line source
slaxemulator@6768 1 # SliTaz package receipt.
slaxemulator@6768 2
slaxemulator@6768 3 PACKAGE="hd2u"
slaxemulator@6768 4 VERSION="1.0.3"
slaxemulator@6768 5 CATEGORY="misc"
slaxemulator@6768 6 SHORT_DESC="Dos2Unix text file converter."
slaxemulator@6768 7 MAINTAINER="slaxemualtor@gmail.com"
slaxemulator@6768 8 DEPENDS="popt"
slaxemulator@6768 9 BUILD_DEPENDS="popt-dev"
slaxemulator@6768 10 TARBALL="$PACKAGE-$VERSION.tgz"
slaxemulator@6768 11 WEB_SITE="http://hany.sk/~hany/software/hd2u/"
slaxemulator@6768 12 WGET_URL="http://hany.sk/~hany/_data/hd2u/$TARBALL"
slaxemulator@6768 13
slaxemulator@6768 14 # Rules to configure and make the package.
slaxemulator@6768 15 compile_rules()
slaxemulator@6768 16 {
slaxemulator@6768 17 cd $src
slaxemulator@6768 18 ./configure \
slaxemulator@6768 19 --prefix=/usr \
slaxemulator@6768 20 --infodir=/usr/share/info \
slaxemulator@6768 21 --mandir=/usr/share/man \
slaxemulator@6768 22 $CONFIGURE_ARGS &&
slaxemulator@6768 23 make && make prefix=$PWD/_pkg/usr install
slaxemulator@6768 24 }
slaxemulator@6768 25
slaxemulator@6768 26 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6768 27 genpkg_rules()
slaxemulator@6768 28 {
slaxemulator@6768 29 mkdir -p $fs/usr
slaxemulator@6768 30 cp -a $_pkg/usr/bin $fs/usr
slaxemulator@6768 31 }
slaxemulator@6768 32
slaxemulator@7739 33 # Pre and post install commands for Tazpkg.
slaxemulator@7739 34 # We must remove all Busybox symlink before installing.
slaxemulator@7739 35 #
slaxemulator@7739 36 pre_install()
slaxemulator@7739 37 {
slaxemulator@7739 38 local root
slaxemulator@7739 39 root=$1
slaxemulator@7739 40 echo "Processing pre-install commands..."
slaxemulator@7739 41 echo -n "Removing all Busybox replaced utils... "
slaxemulator@7739 42 rm -f $root/usr/bin/dos2unix
slaxemulator@7739 43 status
slaxemulator@7739 44 }
slaxemulator@7739 45
slaxemulator@7739 46 post_remove()
slaxemulator@7739 47 {
slaxemulator@7739 48 ln -s /bin/busybox /usr/bin/dos2unix
slaxemulator@7739 49 }