wok-next diff xtron/receipt @ rev 20597
lostirc: typo, `install -D` is enough.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Apr 16 22:03:47 2018 +0300 (2018-04-16) |
parents | 7639f09792cf |
children | 5669e8b3be70 |
line diff
1.1 --- a/xtron/receipt Wed Feb 28 13:56:24 2018 +0200 1.2 +++ b/xtron/receipt Mon Apr 16 22:03:47 2018 +0300 1.3 @@ -1,43 +1,36 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="xtron" 1.8 VERSION="1.1a" 1.9 CATEGORY="games" 1.10 -SHORT_DESC="Simple X game based on light-cycle race from the movie TRON." 1.11 +SHORT_DESC="Simple X game based on light-cycle race from the movie TRON" 1.12 MAINTAINER="pascal.bellard@slitaz.org" 1.13 LICENSE="GPL" 1.14 +WEB_SITE="http://ibiblio.org/pub/Linux/games/arcade/xtron-1.1a.lsm" 1.15 + 1.16 TARBALL="$PACKAGE-$VERSION.tgz" 1.17 -WEB_SITE="ftp://ibiblio.org/pub/Linux/games/arcade/xtron-1.1a.lsm" 1.18 -WGET_URL="$(dirname $WEB_SITE)/$TARBALL" 1.19 +WGET_URL="http://ibiblio.org/pub/Linux/games/arcade/$TARBALL" 1.20 1.21 -DEPENDS="xorg-libXpm xorg-libXau xorg-libxcb" 1.22 BUILD_DEPENDS="xorg-dev" 1.23 1.24 -# Rules to configure and make the package. 1.25 -compile_rules() 1.26 -{ 1.27 +compile_rules() { 1.28 sed -i 's|/usr/X386|/usr|' Makefile 1.29 sed -i 's|./pixmaps/|/usr/share/games/xtron/|' xtronrc 1.30 sed -i 's|usr/X11/lib|etc|' resource.c xtronrc 1.31 - make 1.32 + 1.33 + make || return 1 1.34 + 1.35 + mkdir -p \ 1.36 + $install/usr/games \ 1.37 + $install/usr/share/games \ 1.38 + $install/etc/X11/app-defaults \ 1.39 + $install/usr/share/applications 1.40 + cp -a $src/xtron $install/usr/games/ 1.41 + cp -a $src/pixmaps $install/usr/share/games/xtron 1.42 + cp -a $src/xtronrc $install/etc/X11/app-defaults/ 1.43 } 1.44 1.45 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.46 -genpkg_rules() 1.47 -{ 1.48 - mkdir -p $fs/usr/games $fs/usr/share/games $fs/etc/X11/app-defaults 1.49 - mkdir -p $fs/usr/share/applications 1.50 - cp -a $src/xtron $fs/usr/games 1.51 - cp -a $src/pixmaps $fs/usr/share/games/xtron 1.52 - cp -a $src/xtronrc $fs/etc/X11/app-defaults/ 1.53 - cat > $fs/usr/share/applications/xtron.desktop <<EOT 1.54 -[Desktop Entry] 1.55 -Type=Application 1.56 -Encoding=UTF-8 1.57 -Name=xtron 1.58 -Exec=xtron 1.59 -Icon=/usr/share/games/xtron/Xtron_icon.xpm 1.60 -Terminal=false 1.61 -Categories=Application;Game; 1.62 -EOT 1.63 +genpkg_rules() { 1.64 + copy @std 1.65 + DEPENDS="xorg-libXpm xorg-libXau xorg-libxcb" 1.66 }