SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "hd2u"

# SliTaz package receipt.

PACKAGE="hd2u"
VERSION="1.0.3"
CATEGORY="misc"
SHORT_DESC="Dos2Unix text file converter."
MAINTAINER="slaxemulator@gmail.com"
DEPENDS="popt"
BUILD_DEPENDS="popt-dev"
TARBALL="$PACKAGE-$VERSION.tgz"
WEB_SITE="http://hany.sk/~hany/software/hd2u/"
WGET_URL="http://hany.sk/~hany/_data/hd2u/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    ./configure \
        --prefix=/usr \
        --infodir=/usr/share/info \
        --mandir=/usr/share/man \
        $CONFIGURE_ARGS &&
    make && make prefix=$PWD/_pkg/usr install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $_pkg/usr/bin $fs/usr
}

# Pre and post install commands for Tazpkg.
# We must remove all Busybox symlink before installing.
#
pre_install()
{
    local root
    root=$1
    echo "Processing pre-install commands..."
    echo -n "Removing all Busybox replaced utils... "
    rm -f $root/usr/bin/dos2unix
    status
}

post_remove()
{
    ln -s /bin/busybox /usr/bin/dos2unix
}
3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)