wok-current annotate hd2u/receipt @ rev 18372

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