wok-next diff opentyrian/receipt @ rev 20494

make-slitaz-icons: in multiple choice for 16px request: if 16px and scalable icons both are available, try to choose 16px one, but not the first caught.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Mar 13 23:17:56 2018 +0200 (2018-03-13)
parents cfc6ddf8de74
children a3c581bf52b8
line diff
     1.1 --- a/opentyrian/receipt	Thu Dec 12 09:03:33 2013 +0000
     1.2 +++ b/opentyrian/receipt	Tue Mar 13 23:17:56 2018 +0200
     1.3 @@ -1,4 +1,4 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="opentyrian"
     1.8  VERSION="r886"
     1.9 @@ -7,34 +7,33 @@
    1.10  MAINTAINER="mallory@sweetpeople.org"
    1.11  LICENSE="GPL2"
    1.12  WEB_SITE="http://code.google.com/p/opentyrian/"
    1.13 +
    1.14  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.15  WGET_URL="mercurial|https://opentyrian.googlecode.com/hg/"
    1.16  
    1.17 -DEPENDS="libsdl libsdl-mixer libsdl-net tyrian"
    1.18  BUILD_DEPENDS="libsdl-dev libsdl-mixer-dev libsdl-net-dev mercurial"
    1.19  
    1.20 -# Rules to configure and make the package.
    1.21 -compile_rules()
    1.22 -{
    1.23 -	cd $src
    1.24 -	make release
    1.25 -}
    1.26 +compile_rules() {
    1.27 +	make release || return 1
    1.28  
    1.29 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.30 -genpkg_rules()
    1.31 -{
    1.32 -	mkdir -p $fs/usr/bin $fs/usr/share/applications \
    1.33 -		$fs/usr/share/pixmaps $fs/usr/games/opentyrian
    1.34 -	cp $src/opentyrian $fs/usr/games/opentyrian
    1.35 -	cp $src/linux/opentyrian.desktop $fs/usr/share/applications
    1.36 -	cp $src/linux/icons/tyrian-32.png $fs/usr/share/pixmaps/opentyrian.png
    1.37 -	cat > $fs/usr/bin/opentyrian <<EOF
    1.38 +	mkdir -p \
    1.39 +		$install/usr/bin $fs/usr/share/applications \
    1.40 +		$install/usr/share/pixmaps \
    1.41 +		$install/usr/games/opentyrian
    1.42 +	cp $src/opentyrian                $install/usr/games/opentyrian
    1.43 +	cp $src/linux/opentyrian.desktop  $install/usr/share/applications
    1.44 +	cp $src/linux/icons/tyrian-32.png $install/usr/share/pixmaps/opentyrian.png
    1.45 +	cat > $install/usr/bin/opentyrian <<EOF
    1.46  #!/bin/sh
    1.47  here=$(pwd)
    1.48  cd /usr/games/opentyrian
    1.49  ./opentyrian
    1.50  cd $here
    1.51  EOF
    1.52 -	chmod +x $fs/usr/bin/opentyrian
    1.53 +	chmod +x $install/usr/bin/opentyrian
    1.54  }
    1.55  
    1.56 +genpkg_rules() {
    1.57 +	copy @std
    1.58 +	DEPENDS="libsdl libsdl-mixer libsdl-net tyrian"
    1.59 +}