wok annotate xtron/receipt @ rev 25233

updated python-requests (2.23.0 -> 2.27.1)
author Hans-G?nter Theisgen
date Wed Jul 13 17:27:05 2022 +0100 (2022-07-13)
parents 8b7008c000eb
children
rev   line source
pascal@17466 1 # SliTaz package receipt.
pascal@17466 2
pascal@17466 3 PACKAGE="xtron"
pascal@17466 4 VERSION="1.1a"
pascal@17466 5 CATEGORY="games"
pascal@17466 6 SHORT_DESC="Simple X game based on light-cycle race from the movie TRON."
pascal@17466 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17466 8 LICENSE="GPL"
pascal@17466 9 TARBALL="$PACKAGE-$VERSION.tgz"
pascal@24374 10 WEB_SITE="http://ibiblio.org/pub/Linux/games/arcade/xtron-$VERSION.lsm"
pascal@24374 11 WGET_URL="${WEB_SITE%/*}/$TARBALL"
pascal@17466 12
pascal@17466 13 DEPENDS="xorg-libXpm xorg-libXau libxcb"
pascal@17466 14 BUILD_DEPENDS="xorg-dev"
pascal@17466 15
pascal@24374 16 # What is the latest version available today?
pascal@24374 17 current_version()
pascal@24374 18 {
pascal@24374 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24374 20 sed "/latest/d;/$PACKAGE-/!d;/tgz/!d;s|.*$PACKAGE-\\(.*\\).tgz.*\".*|\\1|" | sort -Vr | sed q
pascal@24374 21 }
pascal@24374 22
pascal@17466 23 # Rules to configure and make the package.
pascal@17466 24 compile_rules()
pascal@17466 25 {
pascal@17466 26 sed -i 's|/usr/X386|/usr|' Makefile
pascal@17466 27 sed -i 's|./pixmaps/|/usr/share/games/xtron/|' xtronrc
pascal@17466 28 sed -i 's|usr/X11/lib|etc|' resource.c xtronrc
pascal@17466 29 make
pascal@17466 30 }
pascal@17466 31
pascal@17466 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17466 33 genpkg_rules()
pascal@17466 34 {
pascal@17466 35 mkdir -p $fs/usr/games $fs/usr/share/games $fs/etc/X11/app-defaults
pascal@17466 36 mkdir -p $fs/usr/share/applications
pascal@17466 37 cp -a $src/xtron $fs/usr/games
pascal@17466 38 cp -a $src/pixmaps $fs/usr/share/games/xtron
pascal@17466 39 cp -a $src/xtronrc $fs/etc/X11/app-defaults/
pascal@17466 40 cat > $fs/usr/share/applications/xtron.desktop <<EOT
pascal@17466 41 [Desktop Entry]
pascal@17466 42 Type=Application
pascal@17466 43 Encoding=UTF-8
pascal@17466 44 Name=xtron
pascal@17466 45 Exec=xtron
pascal@17466 46 Icon=/usr/share/games/xtron/Xtron_icon.xpm
pascal@17466 47 Terminal=false
pascal@17466 48 Categories=Application;Game;
pascal@17466 49 EOT
pascal@17466 50 }