wok-current view mhwaveedit/receipt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents ee53899c6189
children
line source
1 # SliTaz package receipt.
3 PACKAGE="mhwaveedit"
4 VERSION="1.4.24"
5 CATEGORY="multimedia"
6 SHORT_DESC="Lightweight sound files editor, recorder and player."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/magnush/mhwaveedit/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}archive/v$VERSION/$TARBALL"
14 DEPENDS="alsa-lib lame libxml2 expat gtk+ xorg-libX11 \
15 xorg-libXau xorg-libXcomposite xorg-libXcursor \
16 xorg-libXdmcp xorg-libXext xorg-libXfixes \
17 xorg-libXinerama xorg-libXrandr xorg-libXrender \
18 xorg-libXdamage"
19 BUILD_DEPENDS="alsa-lib-dev lame-dev libxml2-dev \
20 xorg-libX11-dev gtk+-dev"
22 HOST_ARCH="i486 arm"
24 current_version()
25 {
26 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
27 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 chmod +x install-sh
34 ./configure \
35 --prefix=/usr \
36 --without-sdl \
37 --without-libsamplerate \
38 --without-portaudio \
39 --without-libsndfile \
40 --without-esound \
41 $CONFIGURE_ARGS &&
42 make -j 1 &&
43 make DESTDIR=$DESTDIR install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr
50 mkdir -p $fs/etc
52 cp -a $install/usr/bin $fs/usr
53 cp -a $stuff/skel $fs/etc
54 chown -R 0.0 $fs
55 }
57 post_install()
58 {
59 for i in $(ls "$1/home" 2> /dev/null); do
60 if grep -E '\$HOME|/home/user_name' $1/home/$i/.mhwaveedit/config 2>&1 > /dev/null; then
61 echo
62 echo -n "Fix configuration files for $i ..."
63 sed -i -e "s|\$HOME|/home/$i|" -e "s|user_name|$i|" \
64 $1/home/$i/.mhwaveedit/config
65 fi
66 done
67 status
68 }
70 post_remove()
71 {
72 echo -n "Removing configuration files..."
73 rm -rf /home/*/.mhwaveedit
74 status
75 }