wok-next rev 20724

openttd-opengfx: fix packaging
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun May 27 18:10:09 2018 +0300 (2018-05-27)
parents 97d48a6b3447
children 0294c4c2dd54
files openttd-opengfx/receipt
line diff
     1.1 --- a/openttd-opengfx/receipt	Sun May 27 18:02:53 2018 +0300
     1.2 +++ b/openttd-opengfx/receipt	Sun May 27 18:10:09 2018 +0300
     1.3 @@ -1,27 +1,23 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="openttd-opengfx"
     1.8  VERSION="0.3.3"
     1.9  CATEGORY="games"
    1.10 -SHORT_DESC="OpenGFX data files for OpenTTD."
    1.11 +SHORT_DESC="OpenGFX data files for OpenTTD"
    1.12  MAINTAINER="devl547@gmail.com"
    1.13  LICENSE="GPL2"
    1.14 -SOURCE="opengfx"
    1.15 -TARBALL="$SOURCE-$VERSION.zip"
    1.16  WEB_SITE="http://bundles.openttdcoop.org/opengfx/"
    1.17 +
    1.18 +TARBALL="opengfx-$VERSION.zip"
    1.19  WGET_URL="$WEB_SITE/releases/$VERSION/$TARBALL"
    1.20 -PROVIDE="opengfx"
    1.21  
    1.22 -# Rules to configure and make the package.
    1.23 -compile_rules()
    1.24 -{
    1.25 -	cd $src
    1.26 +compile_rules() {
    1.27 +	datadir="$install/usr/share/games/openttd/data"
    1.28 +	mkdir -p $datadir
    1.29 +	cp *.grf opengfx.obg $datadir
    1.30  }
    1.31  
    1.32 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.33 -genpkg_rules()
    1.34 -{
    1.35 -	mkdir -p $fs/usr/share/games/openttd/data
    1.36 -	cp $src/*.grf $fs/usr/share/games/openttd/data
    1.37 -	cp $src/opengfx.obg $fs/usr/share/games/openttd/data
    1.38 +genpkg_rules() {
    1.39 +	copy @std
    1.40 +	PROVIDE="opengfx"
    1.41  }