diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 25 |
2 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..85e7da7a6472 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = candybox2 + pkgdesc = Text Based Incremental Game + pkgver = 1 + pkgrel = 1 + url = https://github.com/candybox2 + arch = any + license = GPL + makedepends = git + depends = chromium + source = git+https://github.com/candybox2/candybox2.github.io.git + sha256sums = SKIP + +pkgname = candybox2 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d76e4b3bbe3f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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 +} |