summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ca48eb18c34bd1f5e3312f10a551a3460d3076c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
pkgname=derclou
pkgver=2.7
pkgrel=1
pkgdesc='Der Clou! - SDL2 Port'
arch=(x86_64 aarch64)
url=https://github.com/vcosta/derclou
license=(custom:{'Der Clou! Public License Contract',MAME} 'MIT/ICU (portion)')
depends=(sdl2)
optdepends=('zlodej: provides game data for the Czech version')
install=derclou.install
source=(
	$url/archive/7b219e7ac6de35cfda59b32d655515dd240d1a63.tar.gz
	derclou.{webp,desktop})	# Icon: https://music.apple.com/us/album/pc-game-soundtrack-der-clou/407515097, cutout with https://zyro.com/tools/image-background-remover
cksums=(SKIP{,,})
build(){
	cd derclou-*
	sed -i s/linear/nearest/ gfx/gfx.c	# partial fix for scaling
	sed -i '/setup.Scale/s/= 1/= 2/' base/base.c	# 640x400 window size
	make
}
package(){
	cd derclou-*
	install derclou -Dt "$pkgdir"/usr/bin
	install LICENSE mame.txt publiclicencecontract.doc -Dt "$pkgdir"/usr/share/licenses/derclou
	install ChangeLog README -Dt "$pkgdir"/usr/share/doc/derclou
	install ../derclou.webp -D "$pkgdir"/usr/share/pixmaps/derclou.png
	install ../derclou.desktop -Dt "$pkgdir"/usr/share/applications
}