summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 58179f7a8816d1718d6cd2b1269328810485bc66 (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
# Maintainer: kleintux <reg-archlinux AT klein DOT tuxli DOT ch> 
# Contributor: Julien Savard <juju2143@gmail.com>

pkgname=supersonicball
pkgver=0.9.2
pkgrel=2
pkgdesc="The crazy ball tunnel game"
arch=('any')
url="https://github.com/juju2143/supersonicball"
license=('GPL3')
depends=('love')
makedepends=('unzip')
source=(${pkgname}.sh
        ${pkgname}.desktop
				https://github.com/juju2143/supersonicball/releases/download/${pkgver}/${pkgname}-${pkgver}.love)
sha1sums=('4515bad415633fce6174e54a871454c26af1848b'
          '1683f7d1827a28eefc8ff311e8bf59630a4837fc'
          '040f1c841e6147cfc7dfbb37e2494b2933549cfe')

build() {
	unzip -u "${srcdir}/${pkgname}-${pkgver}.love" README.md -d "${srcdir}"
}

package() {
	# Install Data
	install -D -m755 "${srcdir}/${pkgname}-${pkgver}.love" "${pkgdir}/usr/share/${pkgname}/${pkgname}.love"
	install -D -m644 "${srcdir}/README.md" "$pkgdir/usr/share/${pkgname}/README"

	# Install Launcher
	install -D -m755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"

	# Install Desktop
	install -D -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
}