# Maintainer: Antoni Aloy pkgname=watercloset pkgver=1.0 pkgrel=3 pkgdesc="2D platform puzzle game" url="https://www.parallelrealities.co.uk/games/wc/" arch="all !s390x" license="GPL-2.0-or-later" makedepends="clang sdl2-dev sdl2_image-dev sdl2_mixer-dev sdl2_ttf-dev" subpackages="$pkgname-data::noarch" options="!check" # No testsuite source=" $pkgname-$pkgver.tar.gz::https://github.com/stephenjsweeney/waterCloset/archive/v$pkgver.tar.gz 0001-remove-debug-flags-and-werror.patch " builddir="$srcdir/waterCloset-$pkgver" build() { # crashes with gcc make DATA_DIR=/usr/share/waterCloset CC=clang } package() { depends="$pkgname-data=$pkgver-r$pkgrel" make install \ DESTDIR="$pkgdir" \ PREFIX=/usr \ DATA_DIR=/usr/share/waterCloset } data() { pkgdesc="$pkgdesc (data files)" license="CC-BY-NC-SA-3.0" amove usr/share/waterCloset } sha512sums=" 63f55ea0f05c230dcdc971c3b65247650d360eae5cd255dca097b84a534563b5f9f46ed23279fbe23102c9ae1615084c3e82ce3c6d9a26576b070fff1e37fca9 watercloset-1.0.tar.gz 04feaa487c3a4d2e3e3602403a350127bd2ae8a7301505b2bdedee6f5bfc1fc38cad14ba619c77bf12dc224cecd9dcf54d2741b3c75bd9d290cf745b63e67c4f 0001-remove-debug-flags-and-werror.patch "