wok rev 24321

updated aqualung (1.0 -> 1.1)
author Hans-G?nter Theisgen
date Wed Jan 26 10:22:26 2022 +0100 (2022-01-26)
parents 30a8f0bbbbe3
children 964bcabe7e8c
files aqualung-lang/receipt aqualung/receipt aqualung/stuff/patches/core.c-1.1
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/aqualung-lang/receipt	Wed Jan 26 10:22:26 2022 +0100
     1.3 @@ -0,0 +1,18 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="aqualung-lang"
     1.7 +VERSION="1.1"
     1.8 +CATEGORY="multimedia"
     1.9 +TAGS="music audio player mp3 ogg"
    1.10 +SHORT_DESC="Aqualung audio player - localised messages."
    1.11 +MAINTAINER="maintainer@slitaz.org"
    1.12 +LICENSE="GPL2"
    1.13 +WEB_SITE="https://aqualung.jeremyevans.net/"
    1.14 +
    1.15 +WANTED="aqualung"
    1.16 +
    1.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.18 +genpkg_rules()
    1.19 +{
    1.20 +	cook_copy_folders	locale
    1.21 +}
     2.1 --- a/aqualung/receipt	Tue Jan 25 18:01:09 2022 +0000
     2.2 +++ b/aqualung/receipt	Wed Jan 26 10:22:26 2022 +0100
     2.3 @@ -1,27 +1,33 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="aqualung"
     2.7 -VERSION="1.0"
     2.8 +VERSION="1.1"
     2.9  CATEGORY="multimedia"
    2.10 +TAGS="music audio player mp3 ogg"
    2.11  SHORT_DESC="Aqualung audio player."
    2.12  MAINTAINER="pankso@slitaz.org"
    2.13  LICENSE="GPL2"
    2.14 -WEB_SITE="http://aqualung.jeremyevans.net/"
    2.15 +WEB_SITE="https://aqualung.jeremyevans.net/"
    2.16  
    2.17  TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.18 -WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    2.19 -TAGS="music audio player mp3 ogg"
    2.20 +WGET_URL="https://github.com/jeremyevans/$PACKAGE/archive/refs/tags/$VERSION.tar.gz"
    2.21  
    2.22 -DEPENDS="gtk+ alsa-lib libogg libvorbis flac lame libsamplerate libsndfile \
    2.23 -libmodplug libcdio libmad bzlib"
    2.24 -BUILD_DEPENDS="gtk+-dev alsa-lib-dev libogg-dev libvorbis-dev flac-dev \
    2.25 -lame-dev libsamplerate-dev libmad-dev libsndfile-dev libxml2-dev bzip2-dev"
    2.26 +SUGGESTED="aqualung-lang"
    2.27 +DEPENDS="alsa-lib bzlib flac gtk+ lame libcdio libmad libmodplug libogg
    2.28 +	libsamplerate libsndfile libvorbis"
    2.29 +BUILD_DEPENDS="alsa-lib-dev bzip2-dev flac-dev gtk+-dev lame-dev libmad-dev
    2.30 +	libogg-dev libsamplerate-dev libsndfile-dev libvorbis-dev libxml2-dev"
    2.31  
    2.32  # Rules to configure and make the package.
    2.33  compile_rules()
    2.34  {
    2.35 -	./configure \
    2.36 -		--with-lavc=no \
    2.37 +	# Trying to create ~/.config when ~/.config already exists
    2.38 +	# aborts program.
    2.39 +	# In SliTaz ~/.config should already exist.
    2.40 +	patch --strip=0 --input=$stuff/patches/core.c-1.1
    2.41 +
    2.42 +	./configure		\
    2.43 +		--with-lavc=no	\
    2.44  		--with-jack=no &&
    2.45  	make &&
    2.46  	make install
    2.47 @@ -31,10 +37,13 @@
    2.48  genpkg_rules()
    2.49  {
    2.50  	mkdir -p $fs/usr/share/pixmaps
    2.51 -	cp -a $install/usr/bin $fs/usr
    2.52 -	cp -a $install/usr/share/aqualung $fs/usr/share
    2.53 -	# Remove doc
    2.54 -	rm -rf $fs/usr/share/aqualung/doc
    2.55 +
    2.56 +	cook_copy_folders	bin
    2.57 +	cook_copy_folders	aqualung
    2.58 +
    2.59 +	# Remove documentation
    2.60 +	rm -rf					$fs/usr/share/doc
    2.61 +
    2.62  	cd $fs/usr/share/pixmaps
    2.63 -	ln -s ../aqualung/general.png aqualung.png
    2.64 +	ln -s ../aqualung/general.png		aqualung.png
    2.65  }
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/aqualung/stuff/patches/core.c-1.1	Wed Jan 26 10:22:26 2022 +0100
     3.3 @@ -0,0 +1,11 @@
     3.4 +--- src/core.c.original
     3.5 ++++ src/core.c
     3.6 +@@ -1909,7 +1909,7 @@
     3.7 +                 if (errno == ENOENT) {
     3.8 +                         fprintf(stderr, "Creating directory %s\n", options.confdir);
     3.9 +                         /* Try creating .config before .config/aqualung */
    3.10 +-                        mkdir(dirname(options.confdir), S_IRUSR | S_IWUSR | S_IXUSR);
    3.11 ++                        /* mkdir(dirname(options.confdir), S_IRUSR | S_IWUSR | S_IXUSR); */
    3.12 +                         if (mkdir(options.confdir, S_IRUSR | S_IWUSR | S_IXUSR) < 0) {
    3.13 + 				perror("cannot create config directory: mkdir");
    3.14 + 				exit(1);