summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 91c51f91f2e5e8e9edc5392027f2bec153c21c41 (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:  <reg-archlinux AT klein DOT tuxli DOT ch> 

pkgname=biniax2
pkgver=2.1.30
_pkgname=biniax
_pkgver=1.30
pkgrel=10
pkgdesc="Arcade game : match two similar fruits, and they will disappear, just clear your way and avoid being blocked"
arch=('i686' 'x86_64' 'aarch64')
url="http://${_pkgname}.com/"
license=('Zlib license')
depends=('sdl' 'sdl_image' 'sdl_mixer')
install=${pkgname}.install
source=("https://www.tuzsuzov.com/${_pkgname}/${pkgname}-${_pkgver}-fullsrc.tar.gz"
        "${pkgname}.desktop"
        "${pkgname}.png"
        "${pkgname}.sh")
md5sums=('53e90cf42b825af23e086f4562234ae3'
         '6acae7917e24b38284d454449e0391b4'
         '7424a0af67b621729ba03a2729ca41f3'
         'ff9a5dcff489333298534d5750bf5c4c')

prepare() {
	patch "${srcdir}/desktop/inp.c" < "${startdir}/inp.c.patch"
	patch "${srcdir}/desktop/inp.h" < "${startdir}/inp.h.patch"
}

build() {
	cd "${srcdir}"
	make
}

package() {
	mkdir -p ${pkgdir}/opt/${pkgname}/
	mv ${srcdir}/data ${pkgdir}/opt/${pkgname}/data
	install -DTm755 ${srcdir}/${pkgname}           "${pkgdir}/opt/${pkgname}/${pkgname}"
	install -DTm644 ${srcdir}/LICENSE.txt          "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
	install -DTm644 ${startdir}/${pkgname}.png     "${pkgdir}/usr/share/icons/hicolor/32x32/apps/${pkgname}.png"
	install -DTm644 ${startdir}/${pkgname}.desktop "${pkgdir}/usr/share/applications/${pkgname}.desktop"
	install -DTm755 ${startdir}/${pkgname}.sh      "${pkgdir}/usr/bin/${pkgname}"
}