summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD52
2 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..22e1c7417e2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = coinkiller
+ pkgdesc = NSMB2 level editor!
+ pkgver = 0.14
+ pkgrel = 1
+ url = https://github.com/Arisotura/CoinKiller
+ arch = x86_64
+ license = GPL3
+ makedepends = gendesk
+ makedepends = git
+ makedepends = yarn
+ makedepends = nodejs
+ makedepends = rust
+ makedepends = unzip
+ depends = libnotify
+ depends = libxss
+ depends = libxtst
+ depends = libindicator-gtk3
+ depends = libappindicator-gtk3
+ conflicts = coinkiller-bin
+ conflicts = coinkiller-git
+ source = 0.14::https://github.com/Arisotura/CoinKiller/archive/v0.14.zip
+ md5sums = SKIP
+
+pkgname = coinkiller
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c9fb2b89bbf
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,52 @@
+# Maintainer: Cranky Supertoon <crankysupertoon@gmail.com>
+pkgname="coinkiller"
+_pkgname="CoinKiller"
+pkgver="0.14"
+pkgrel=1
+arch=('x86_64')
+pkgdesc="NSMB2 level editor!"
+url="https://github.com/Arisotura/CoinKiller"
+license=('GPL3')
+makedepends=('gendesk' 'git' 'yarn' 'nodejs' 'rust' 'unzip')
+depends=('libnotify' 'libxss' 'libxtst' 'libindicator-gtk3' 'libappindicator-gtk3')
+conflicts=('coinkiller-bin' 'coinkiller-git')
+source=("${pkgver}::${url}/archive/v${pkgver}.zip")
+md5sums=('SKIP')
+
+prepare() {
+ # generate .desktop
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ gendesk --pkgname "Coin Killer" --pkgdesc "${pkgdesc}" --icon ${pkgname} --exec "/usr/bin/${pkgname}" -n -f
+ mv "Coin Killer.desktop" "${pkgname}.desktop"
+
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ mkdir -p build && cd build && qmake .. && make && mkdir -p ../dist && cd ../dist && mv ../coinkiller_data . && mv ../build/CoinKiller .
+}
+
+package() {
+ # install the main files.
+ install -d -m755 "${pkgdir}/opt/${pkgname}"
+ cd "${srcdir}/${_pkgname}-${pkgver}/dist"
+ cp -Rr "${srcdir}/${_pkgname}-${pkgver}/dist/"* "${pkgdir}/opt/${pkgname}"
+
+ # desktop entry
+ install -D -m644 "${srcdir}/${_pkgname}-${pkgver}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+
+ # install the icon
+ install -d -m755 "${pkgdir}/usr/share/icons/hicolor"
+ cp -Rr "${srcdir}/${_pkgname}-${pkgver}/ck_icon.ico" "${pkgdir}/usr/share/icons/${pkgname}.png"
+
+ # fix file permissions - all files as 644 - directories as 755
+ find "${pkgdir}/"{opt,usr} -type d -exec chmod 755 {} \;
+ find "${pkgdir}/"{opt,usr} -type f -exec chmod 644 {} \;
+
+ # make sure the main binary has the right permissions
+ chmod +x "${pkgdir}/opt/${pkgname}/${_pkgname}"
+
+ # link the binary
+ install -d -m755 "${pkgdir}/usr/bin"
+ ln -sr "${pkgdir}/opt/${pkgname}/${_pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+}