summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Cimalando2019-04-11 12:07:08 +0200
committerJP Cimalando2019-04-11 12:07:08 +0200
commit41130e747cb61c3ce88465d09f6183f80a2a5a5a (patch)
treeef64521cb4c9326bd640fb020d32607d78c7d662
downloadaur-41130e747cb61c3ce88465d09f6183f80a2a5a5a.tar.gz
initial
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD52
2 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..004e60c545a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = bambootracker-git
+ pkgdesc = YM2608 (OPNA) music tracker
+ pkgver = v0.1.6.r58.g72627b1
+ pkgrel = 1
+ url = https://github.com/rerrahkr/BambooTracker
+ arch = x86_64
+ license = GPL2
+ makedepends = git
+ makedepends = qt5-tools
+ depends = qt5-multimedia
+ depends = hicolor-icon-theme
+ provides = bambootracker
+ conflicts = bambootracker
+ source = bambootracker::git+https://github.com/rerrahkr/BambooTracker.git
+ md5sums = SKIP
+
+pkgname = bambootracker-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..47e42eff533
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,52 @@
+# Maintainer: JP Cimalando <jp-dev@inbox.ru>
+pkgname=bambootracker-git
+_pkgname=bambootracker
+pkgver=v0.1.6.r58.g72627b1
+pkgrel=1
+epoch=
+pkgdesc="YM2608 (OPNA) music tracker"
+arch=('x86_64')
+url="https://github.com/rerrahkr/BambooTracker"
+license=('GPL2')
+groups=()
+depends=('qt5-multimedia' 'hicolor-icon-theme')
+makedepends=('git' 'qt5-tools')
+checkdepends=()
+optdepends=()
+provides=("$_pkgname")
+conflicts=("$_pkgname")
+replaces=()
+backup=()
+options=()
+install=
+changelog=
+source=("$_pkgname::git+https://github.com/rerrahkr/BambooTracker.git")
+md5sums=('SKIP')
+noextract=()
+validpgpkeys=()
+
+pkgver() {
+ cd "$_pkgname"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$_pkgname/BambooTracker"
+ qmake CONFIG+=release PREFIX=/usr
+ make
+}
+
+package() {
+ cd "$_pkgname"
+
+ install -D -m 644 BambooTracker.desktop "$pkgdir"/usr/share/applications/BambooTracker.desktop
+ install -D -m 644 BambooTracker/res/icon/icon_16x16.png "$pkgdir"/usr/share/icons/hicolor/16x16/apps/BambooTracker.png
+ install -D -m 644 BambooTracker/res/icon/icon_256x256.png "$pkgdir"/usr/share/icons/hicolor/256x256/apps/BambooTracker.png
+
+ cd "BambooTracker"
+
+ # workaround to create qm install rules
+ qmake CONFIG+=release PREFIX=/usr
+
+ make INSTALL_ROOT="$pkgdir" install
+}