wok-current view barrage/receipt @ rev 25672
patch tazpkg, upgrade core pkgs first
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Mar 03 17:58:42 2024 +0000 (9 months ago) |
parents | 3105f866bc3e |
children |
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 }