#Maintainer: Christian Dersch <chrisdersch~at~googlemail~dot~com>

pkgname=openttd-opengfx
pkgver=0.3.3
pkgrel=1cd
arch=noarch
source=("http://bundles.openttdcoop.org/opengfx/releases/$pkgver/opengfx-$pkgver.zip")
url=https://dev.openttdcoop.org/projects/opengfx
docs=("changelog.txt" "license.txt" "readme.txt")

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"openttd-opengfx (free set of graphics for openttd)"
"OpenGFX is a free set of graphics for the OpenTTD game. It is a "
"replacement for the original non-free graphics of the original TTD."
""
"NOTE: Please do not install OpenGFX in addition to the TTD files, "
"remove the TTD graphics or do not install this package."
""
"http://bundles.openttdcoop.org/opengfx/"
)

build() {
	cd $startdir/src/opengfx-$pkgver
	mkdir -p $startdir/pkg/usr/share/games/openttd/data
	cp -a *.grf $startdir/pkg/usr/share/games/openttd/data
	cp -a opengfx.obg $startdir/pkg/usr/share/games/openttd/data
}