# Contributor: Adrian Siekierka <kontakt@asie.pl>
# Maintainer: Adrian Siekierka <kontakt@asie.pl>
setvar pkgname = 'openttd-opengfx'
setvar pkgver = '0.5.2'
setvar pkgrel = '0'
setvar pkgdesc = ""Free graphics set for OpenTTD""
setvar url = ""http://openttd.org/""
setvar arch = ""noarch""
setvar license = ""GPL2""
setvar depends = """"
setvar makedepends = """"
setvar source = ""https://binaries.openttd.org/extra/opengfx/$pkgver/opengfx-$pkgver-all.zip""
setvar builddir = ""$srcdir/opengfx-$pkgver""

proc prepare {
	cd $srcdir
	tar xf opengfx-$pkgver.tar
}

proc package {
	cd $builddir

	mkdir -p "$pkgdir/usr/share/games/openttd/data"
	install -Dm644 *.grf *.obg "$pkgdir/usr/share/games/openttd/data"
}

setvar md5sums = ""e64352d0578822c6e5388b631b3086f7  opengfx-0.5.2-all.zip""
setvar sha256sums = ""19be61f1cb04cbb3cb9602f0b8eb6e6f56ecbefbfdd6e0e03f9579e5a5c1cbc8  opengfx-0.5.2-all.zip""
setvar sha512sums = ""2e2d940e42d859bd23211f2606d78db50695e394c2e106b6337811721e900d073f947d9bed8b2521bf98512583653a6e9db5da6b1fa2aa47fdb2626f15c618b5  opengfx-0.5.2-all.zip""