pkgname=cockatrice
pkgver=2.10.2
pkgrel=1
pkgdesc="Cockatrice"
arch=('any')
license=('GPL-2.0')
deps=('qt6-svg' 'qt6-multimedia' 'qt6-tools' 'protobuf')
source=('cockatrice.tgz')
md5sums=('SKIP')

package() {
	cd "$srcdir"

	tar -xzf "cockatrice.tgz"

	install -Dm755 "$srcdir/cock/cockatrice" "$pkgdir/usr/bin/cockatrice"
	install -Dm755 "$srcdir/cock/oracle" "$pkgdir/usr/bin/oracle"

	mkdir -p "$pkgdir/usr/lib/cockatrice"

	rsync -av \
		--exclude="cockatrice" \
		--exclude="oracle" \
		"$srcdir/cock/" "$pkgdir/usr/lib/cockatrice/"
}
