wok view barrage/receipt @ rev 25696

created recipe for dool
author Hans-G?nter Theisgen
date Sat May 11 17:17:55 2024 +0100 (6 months ago)
parents 3105f866bc3e
children e7bac1c24680
line source
1 # SliTaz package receipt.
3 PACKAGE="barrage"
4 VERSION="1.0.5"
5 CATEGORY="games"
6 SHORT_DESC="Practice artillery nondestructive"
7 MAINTAINER="René Rivero <arca1085@gmail.com>"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://lgames.sourceforge.net/Barrage/"
11 WGET_URL="https://ufpr.dl.sourceforge.net/project/lgames/$PACKAGE/$TARBALL"
13 DEPENDS="libsdl libsdl-mixer"
14 BUILD_DEPENDS="libsdl-dev libsdl-mixer-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/lgames/files/barrage/ 2>/dev/null | \
20 sed '/scope="row/!d;/tar/!d;s|.*/barrage-||;s|.tar.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure --localstatedir=/var/games && make && make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr
33 cp -a $install/usr/share $fs/usr
34 cp -a $install/var $fs
35 cp -a $install/usr/bin $fs/usr
36 cp $install/usr/share/icons $fs/usr/share
37 chown -R root.root $fs
38 }