summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCrankySupertoon2020-04-17 14:07:45 -0400
committerCrankySupertoon2020-04-17 14:07:45 -0400
commit8bd69a5db40a91ef2c009632da3e9b0e7a9c54e9 (patch)
treee5b05f6dc9a8369f2027a6f50be88b00705bee6b
downloadaur-8bd69a5db40a91ef2c009632da3e9b0e7a9c54e9.tar.gz
PKGBUILD and .SRCINFO base release
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD44
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a87a7807779
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = pegasus-metadata-editor-git
+ pkgdesc = A cross-platform Super Nintendo emulator
+ pkgver = continuous.r0.gc7aa199
+ pkgrel = 1
+ url = https://github.com/mmatyas/pegasus-metadata-editor
+ arch = x86_64
+ license = GPL3
+ makedepends = clang
+ makedepends = gendesk
+ makedepends = zip
+ depends = mono
+ depends = sdl2
+ source = pegasus-metadata-editor-git::git+https://github.com/mmatyas/pegasus-metadata-editor.git
+ sha256sums = SKIP
+
+pkgname = pegasus-metadata-editor-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..63258bc2c68
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: CrankySupertoon <crankysupertoon@gmail.com.com>
+
+pkgname=pegasus-metadata-editor-git
+_pkgname=pegasus-metaed
+pkgver=continuous.r0.gc7aa199
+pkgrel=1
+pkgdesc='A cross-platform Super Nintendo emulator'
+arch=('x86_64')
+makedepends=('clang' 'gendesk' 'zip')
+depends=('mono' 'sdl2')
+url='https://github.com/mmatyas/pegasus-metadata-editor'
+license=('GPL3')
+source=("pegasus-metadata-editor-git::git+https://github.com/mmatyas/pegasus-metadata-editor.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${pkgname}"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd "${srcdir}/${pkgname}"
+ gendesk -f --pkgname "${_pkgname}" --pkgdesc "${pkgdesc}" --exec "/usr/bin/${_pkgname}" -n
+}
+
+build() {
+ cd "${srcdir}/${pkgname}"
+ mkdir build -p
+ cd build
+ qmake ..
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+ # install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
+ install -Dm644 "${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
+
+ wget https://raw.githubusercontent.com/mmatyas/pegasus-frontend/master/assets/icon.png
+ install -Dm644 "icon.png" "${pkgdir}/usr/share/pixmaps/${_pkgname}.png"
+
+ cd "${srcdir}/${pkgname}/build/src/"
+ install -Dm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
+}