wok-current annotate mhwaveedit/receipt @ rev 25695

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