wok-current annotate assaultcube-data/receipt @ rev 25434
Up znc (1.8.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 29 10:14:47 2022 +0000 (2022-08-29) |
parents | a78610b2eb47 |
children |
rev | line source |
---|---|
slaxemulator@6588 | 1 # SliTaz package receipt. |
slaxemulator@6588 | 2 |
slaxemulator@6588 | 3 PACKAGE="assaultcube-data" |
slaxemulator@7316 | 4 VERSION="1.1.0.4" |
slaxemulator@6588 | 5 CATEGORY="games" |
slaxemulator@6588 | 6 SHORT_DESC="data files for assaultcube" |
slaxemulator@6588 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15201 | 8 LICENSE="zlib/libpng" |
pascal@20669 | 9 WEB_SITE="https://assault.cubers.net/" |
slaxemulator@6588 | 10 SOURCE="AssaultCube" |
slaxemulator@6588 | 11 TARBALL="${SOURCE}_v${VERSION}.tar.bz2" |
slaxemulator@8591 | 12 SOURCE="AssaultCube-Data" |
slaxemulator@6588 | 13 WGET_URL="$SF_MIRROR/actiongame/$TARBALL" |
slaxemulator@6588 | 14 |
pascal@24340 | 15 # What is the latest version available today? |
pascal@24340 | 16 current_version() |
pascal@24340 | 17 { |
pascal@24340 | 18 wget -O - https://github.com/assaultcube/AC/releases 2>/dev/null | \ |
pascal@24340 | 19 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24340 | 20 } |
pascal@24340 | 21 |
slaxemulator@6588 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6588 | 23 genpkg_rules() |
slaxemulator@6588 | 24 { |
slaxemulator@6588 | 25 mkdir -p $fs/usr/share/assaultcube |
slaxemulator@6588 | 26 cp -a $src/config $fs/usr/share/assaultcube |
slaxemulator@6588 | 27 cp -a $src/packages $fs/usr/share/assaultcube |
slaxemulator@6588 | 28 cp -a $src/docs $fs/usr/share/assaultcube |
slaxemulator@6588 | 29 cp -a $src/mods $fs/usr/share/assaultcube |
al@14789 | 30 chown -R root:root $fs |
al@14789 | 31 find $fs -type f -exec chmod a-x \{\} \; |
slaxemulator@6588 | 32 } |
slaxemulator@6588 | 33 |