SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "mhwaveedit"

# SliTaz package receipt.

PACKAGE="mhwaveedit"
VERSION="1.4.24"
CATEGORY="multimedia"
SHORT_DESC="Lightweight sound files editor, recorder and player."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://github.com/magnush/mhwaveedit/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="${WEB_SITE}archive/v$VERSION/$TARBALL"

DEPENDS="alsa-lib lame libxml2 expat gtk+ xorg-libX11 \
    xorg-libXau xorg-libXcomposite xorg-libXcursor \
    xorg-libXdmcp xorg-libXext xorg-libXfixes \
    xorg-libXinerama xorg-libXrandr xorg-libXrender \
    xorg-libXdamage"
BUILD_DEPENDS="alsa-lib-dev lame-dev libxml2-dev \
xorg-libX11-dev gtk+-dev"

HOST_ARCH="i486 arm"

current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    chmod +x install-sh
    ./configure            \
        --prefix=/usr        \
        --without-sdl        \
        --without-libsamplerate    \
        --without-portaudio    \
        --without-libsndfile    \
        --without-esound    \
        $CONFIGURE_ARGS &&
    make -j 1 &&
    make DESTDIR=$DESTDIR install
}

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

    cp -a $install/usr/bin    $fs/usr
    cp -a $stuff/skel    $fs/etc
    chown -R 0.0 $fs
}

post_install()
{
    for i in $(ls "$1/home" 2> /dev/null); do
        if grep -E '\$HOME|/home/user_name' $1/home/$i/.mhwaveedit/config 2>&1 > /dev/null; then
            echo
            echo -n "Fix configuration files for $i ..."
        sed -i -e "s|\$HOME|/home/$i|" -e "s|user_name|$i|" \
        $1/home/$i/.mhwaveedit/config
        fi
    done
    status
}
 
post_remove()
{
    echo -n "Removing configuration files..."
     rm -rf /home/*/.mhwaveedit
    status
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)