summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7f220b77f49b17127e4e298ba08051b3d0f07f43 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: Autumn Boyhan <autumn@crisismodel.com>

pkgname=retux
pkgver=1.6.2
pkgrel=1
pkgdesc="ReTux is a libre open source action platformer loosely inspired by the Mario games, utilizing the art assets from the SuperTux project."
arch=('x86_64')
url="https://retux-game.github.io/"
license=('GPL3')
depends=('python' 'python-sge' 'python-xsge')
provides=('retux')
conflicts=('retux' 'retux-bin')
_name=${pkgname#python-}
source=("https://github.com/retux-game/retux/releases/download/v${pkgver}/${pkgname}-${pkgver}-src.zip"
        "${pkgname}.desktop"
        "${pkgname}.sh")
md5sums=('6211a051709a3adcdb1e004ca68db3ac'
         '8e2937a7627804a6a079a9cce4dda3fa'
         'a8273ca35254ba6394cbd5f2ff55c2e5')

noextract=("${pkgname}-${pkgver}-src.zip")

prepare() {
	unzip ${srcdir}/${pkgname}-${pkgver}-src.zip
	mv ${srcdir}/${pkgname}-${pkgver}-src ${srcdir}/${pkgname}
}

package() {
	mkdir -p ${pkgdir}/usr/bin
	mkdir -p ${pkgdir}/usr/share/applications
	mkdir -p ${pkgdir}/usr/share/icons
	cp -R ${srcdir}/${pkgname} ${pkgdir}/usr/share
	cp ${srcdir}/${pkgname}.sh ${pkgdir}/usr/bin/${pkgname}
	chmod +x ${pkgdir}/usr/bin/${pkgname}
	cp ${pkgdir}/usr/share/${pkgname}/data/images/misc/icon.png \
		${pkgdir}/usr/share/icons
	mv ${pkgdir}/usr/share/icons/icon.png ${pkgdir}/usr/share/icons/retux.png
	cp retux.desktop ${pkgdir}/usr/share/applications
	cd ${srcdir}/${pkgname}
	install -D data/LICENSES -t ${pkgdir}/usr/share/licenses/${pkgname}
}