wok diff alsa-utils/receipt @ rev 25581

Update some web_site & wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 27 11:13:29 2023 +0000 (17 months ago)
parents 68cf96abc146
children
line diff
     1.1 --- a/alsa-utils/receipt	Mon Jul 05 15:00:07 2021 +0000
     1.2 +++ b/alsa-utils/receipt	Sat May 27 11:13:29 2023 +0000
     1.3 @@ -1,20 +1,24 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="alsa-utils"
     1.7 -VERSION="1.2.2"
     1.8 +VERSION="1.2.7"
     1.9  CATEGORY="multimedia"
    1.10 -SHORT_DESC="Alsa sound system utilities and config tools."
    1.11 +SHORT_DESC="Alsa sound system utilities and configuration tools."
    1.12  MAINTAINER="pankso@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14 -WEB_SITE="http://www.alsa-project.org/"
    1.15 +WEB_SITE="https://www.alsa-project.org/"
    1.16 +
    1.17  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.18  WGET_URL="ftp://ftp.alsa-project.org/pub/utils/$TARBALL"
    1.19 -CONFIG_FILES="/var/lib/alsa/asound.state"
    1.20 -HOST_ARCH="i486 arm"
    1.21  
    1.22 +SUGGESTED="bash"
    1.23  DEPENDS="alsa-lib ncurses util-linux-getopt"
    1.24  BUILD_DEPENDS="alsa-lib-dev ncurses-dev"
    1.25  
    1.26 +CONFIG_FILES="/var/lib/alsa/asound.state"
    1.27 +
    1.28 +HOST_ARCH="i486 arm"
    1.29 +
    1.30  current_version()
    1.31  {
    1.32  	wget -O - ${WEB_SITE}wiki/Download 2>/dev/null | \
    1.33 @@ -24,47 +28,55 @@
    1.34  # Rules to configure and make the package.
    1.35  compile_rules()
    1.36  {
    1.37 -	./configure \
    1.38 -		--disable-xmlto \
    1.39 +	./configure		\
    1.40 +		--disable-xmlto	\
    1.41  		$CONFIGURE_ARGS &&
    1.42  	make &&
    1.43 -	make DESTDIR=$DESTDIR install
    1.44 +	make install DESTDIR=$DESTDIR
    1.45  }
    1.46  
    1.47  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.48  genpkg_rules()
    1.49  {
    1.50 -	mkdir -p $fs/usr/share/alsa $fs/var/lib/alsa $fs/etc
    1.51 +	mkdir -p $fs/usr/share/alsa
    1.52 +	mkdir -p $fs/var/lib/alsa
    1.53 +	mkdir -p $fs/etc
    1.54 +
    1.55  	#touch $fs/etc/asound.state
    1.56 -	cp -a $install/usr/bin $fs/usr
    1.57 -	cp -a $install/usr/sbin $fs/usr
    1.58 -	cp -a $install/usr/share/alsa/init $fs/usr/share/alsa
    1.59 +	cp -a $install/usr/bin			$fs/usr
    1.60 +	cp -a $install/usr/sbin			$fs/usr
    1.61 +	cp -a $install/usr/share/alsa/init	$fs/usr/share/alsa
    1.62  
    1.63  	# Declare asound.state
    1.64 -	touch $fs/var/lib/alsa/asound.state
    1.65 -	chmod 755 $fs/usr/sbin/*
    1.66 +	touch					$fs/var/lib/alsa/asound.state
    1.67 +	chmod 755				$fs/usr/sbin/*
    1.68 +
    1.69  	# Remove speaker-test (18 Ko and needs sounds)
    1.70 -	rm $fs/usr/bin/speaker-test
    1.71 +	rm					$fs/usr/bin/speaker-test
    1.72 +
    1.73  	# For conf we need /var/tmp
    1.74 -	mkdir -p $fs/var/tmp
    1.75 -	chmod 1777 $fs/var/tmp
    1.76 +	mkdir -p				$fs/var/tmp
    1.77 +	chmod 1777				$fs/var/tmp
    1.78 +
    1.79  	# Remove alsaconf (use soundconf).
    1.80 -	rm $fs/usr/sbin/alsaconf
    1.81 +	rm					$fs/usr/sbin/alsaconf
    1.82  }
    1.83  
    1.84 -# Main alsa config (card name, volumes, etc) have moved upstream. So backup
    1.85 +# Main alsa configuration (card name, volumes, etc) have moved upstream. So backup
    1.86  # current one and reenable it after package install so user still have ther
    1.87  # sound card and settings working.
    1.88  pre_install()
    1.89  {
    1.90 -	if [ -f "$1/etc/asound.state" ]; then
    1.91 -		mv "$1/etc/asound.state" "$1/tmp"
    1.92 +	if [ -f "$1/etc/asound.state" ]
    1.93 +	  then
    1.94 +		mv "$1/etc/asound.state"	"$1/tmp"
    1.95  	fi
    1.96  }
    1.97  
    1.98  post_install()
    1.99  {
   1.100 -	if [ -f "$1/tmp/asound.state" ]; then
   1.101 -		mv "$1/tmp/asound.state" "$1/var/lib/alsa"
   1.102 +	if [ -f "$1/tmp/asound.state" ]
   1.103 +	  then
   1.104 +		mv "$1/tmp/asound.state"	"$1/var/lib/alsa"
   1.105  	fi
   1.106  }