summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d76e4b3bbe3f4821adcfd6a5ea59b5c578a465b5 (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
#Maintainer: oshaboy <noamgilor{at}protonmail{dot}com>

pkgname=candybox2
pkgver=1
pkgrel=1
pkgdesc="Text Based Incremental Game"
arch=('any')
url="https://github.com/candybox2"
license=('GPL')
depends=(chromium)
optdepends=()
makedepends=(git)
source=("git+https://github.com/candybox2/candybox2.github.io.git")
sha256sums=('SKIP')

build(){
	echo -e '#!/bin/sh\nchromium -app="file:///opt/candybox2/index.html"' >| ${srcdir}/candybox2.sh
}

package(){
	mkdir "${pkgdir}/opt"
	cp -r "${srcdir}/candybox2" "${pkgdir}/opt/candybox2"
	find  ${pkgdir}/opt/candybox2 -type d | xargs chmod 755
	install -Dm755 ${srcdir}/candybox2.sh ${pkgdir}/usr/bin/candybox2
}