summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCrankySupertoon2020-10-10 17:24:28 -0400
committerCrankySupertoon2020-10-10 17:24:28 -0400
commit1e92acebceee34c1ceedf3bc0c7219e2cd8b22be (patch)
tree9307d5e82c9dd42ec896c5ff13ecc97d29684e9f
parent3445129d5b40fc698c982bc0ea49548fbe6af1cb (diff)
downloadaur-1e92acebceee34c1ceedf3bc0c7219e2cd8b22be.tar.gz
Initial Commit
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD24
2 files changed, 18 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 29cc60d3cb8..5edae7a1f7a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = coinkiller
pkgdesc = NSMB2 level editor!
- pkgver = 0.14
+ pkgver = v0.14.r1.g6d8abe4
pkgrel = 1
url = https://github.com/Arisotura/CoinKiller
arch = x86_64
@@ -9,8 +9,8 @@ pkgbase = coinkiller
makedepends = git
depends = qt5-base
conflicts = coinkiller-bin
- conflicts = coinkiller-git
- source = 0.14::https://github.com/Arisotura/CoinKiller/archive/v0.14.zip
+ conflicts = coinkiller
+ source = CoinKiller::git+https://github.com/Arisotura/CoinKiller
md5sums = SKIP
pkgname = coinkiller
diff --git a/PKGBUILD b/PKGBUILD
index 0d03440b55f..593e77fe174 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,8 @@
# Maintainer: Cranky Supertoon <crankysupertoon@gmail.com>
pkgname="coinkiller"
_pkgname="CoinKiller"
-pkgver="0.14"
+__pkgname="${pkgname}-git"
+pkgver=v0.14.r1.g6d8abe4
pkgrel=1
arch=('x86_64')
pkgdesc="NSMB2 level editor!"
@@ -9,35 +10,40 @@ url="https://github.com/Arisotura/CoinKiller"
license=('GPL3')
makedepends=('gendesk' 'git')
depends=('qt5-base')
-conflicts=('coinkiller-bin' 'coinkiller-git')
-source=("${pkgver}::${url}/archive/v${pkgver}.zip")
+conflicts=('coinkiller-bin' 'coinkiller')
+source=("$_pkgname::git+${url}")
md5sums=('SKIP')
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
prepare() {
# generate .desktop
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_pkgname}"
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}"
+ cd "${srcdir}/${_pkgname}"
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}"
+ cd "${srcdir}/${_pkgname}/dist"
+ cp -Rr "${srcdir}/${_pkgname}/dist/"* "${pkgdir}/opt/${pkgname}"
# desktop entry
- install -D -m644 "${srcdir}/${_pkgname}-${pkgver}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+ install -D -m644 "${srcdir}/${_pkgname}/${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"
+ cp -Rr "${srcdir}/${_pkgname}/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 {} \;