summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 964572bb2dee0e01d440b036c76bc1d9c76031e2 (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
# Maintainer: tonikelope <tonikelope@gmail.com>
pkgname=coronapoker
pkgver=7.50
pkgrel=1
pkgdesc="Yet another cross-platform Texas hold 'em game written in Java during COVID-19 pandemic"
arch=('x86_64')
url="https://tonikelope.github.io/coronapoker/"
license=('GPL3')

source=("https://github.com/tonikelope/coronapoker/releases/download/v${pkgver}/CoronaPokerLINUX_${pkgver}_portable.zip")

package() {
	mkdir -p "${pkgdir}/opt/${pkgname}/"
	chmod 0755 "${pkgdir}/opt/${pkgname}/"
	cp -RT "${srcdir}/CoronaPokerLINUX/" "${pkgdir}/opt/${pkgname}"
	chmod +x "${pkgdir}/opt/${pkgname}/CoronaPoker.run"
	chmod 0777 "${pkgdir}/opt/${pkgname}/jar/"
	install -Dm644 "${srcdir}/CoronaPokerLINUX/${pkgname}.png" "$pkgdir/usr/share/pixmaps/${pkgname}.png"
	install -Dm644 "${srcdir}/CoronaPokerLINUX/${pkgname}.desktop" "$pkgdir/usr/share/applications/${pkgname}.desktop"
	mkdir -p "${pkgdir}/usr/local/bin/"
	ln -s "/opt/${pkgname}/CoronaPoker.run" "$pkgdir/usr/local/bin/coronapoker"
}

md5sums=('bc5d32a7b50b813264be24cdb7b974dd')