summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD37
2 files changed, 28 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 004e60c545a..f1edf14b467 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,23 @@
pkgbase = bambootracker-git
pkgdesc = YM2608 (OPNA) music tracker
- pkgver = v0.1.6.r58.g72627b1
+ pkgver = 0.4.5.r85.g4af2db7
pkgrel = 1
url = https://github.com/rerrahkr/BambooTracker
arch = x86_64
license = GPL2
makedepends = git
makedepends = qt5-tools
- depends = qt5-multimedia
+ depends = qt5-base
+ depends = jack
+ depends = libpulse
depends = hicolor-icon-theme
provides = bambootracker
conflicts = bambootracker
source = bambootracker::git+https://github.com/rerrahkr/BambooTracker.git
+ source = git+https://github.com/thestk/rtaudio
+ source = git+https://github.com/thestk/rtmidi
+ md5sums = SKIP
+ md5sums = SKIP
md5sums = SKIP
pkgname = bambootracker-git
diff --git a/PKGBUILD b/PKGBUILD
index 47e42eff533..3b1a1fd1b10 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: JP Cimalando <jp-dev@inbox.ru>
pkgname=bambootracker-git
_pkgname=bambootracker
-pkgver=v0.1.6.r58.g72627b1
+pkgver=0.4.5.r85.g4af2db7
pkgrel=1
epoch=
pkgdesc="YM2608 (OPNA) music tracker"
@@ -9,7 +9,7 @@ arch=('x86_64')
url="https://github.com/rerrahkr/BambooTracker"
license=('GPL2')
groups=()
-depends=('qt5-multimedia' 'hicolor-icon-theme')
+depends=('qt5-base' 'jack' 'libpulse' 'hicolor-icon-theme')
makedepends=('git' 'qt5-tools')
checkdepends=()
optdepends=()
@@ -20,33 +20,36 @@ backup=()
options=()
install=
changelog=
-source=("$_pkgname::git+https://github.com/rerrahkr/BambooTracker.git")
-md5sums=('SKIP')
+source=("$_pkgname::git+https://github.com/rerrahkr/BambooTracker.git"
+ 'git+https://github.com/thestk/rtaudio'
+ 'git+https://github.com/thestk/rtmidi')
+md5sums=('SKIP'
+ 'SKIP'
+ 'SKIP')
noextract=()
validpgpkeys=()
pkgver() {
cd "$_pkgname"
- git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
+}
+
+prepare() {
+ cd "$_pkgname"
+ git submodule init
+ git config submodule.submodules/RtAudio/src.url $srcdir/rtaudio
+ git config submodule.submodules/RtMidi/src.url $srcdir/rtmidi
+ git submodule update
}
build() {
- cd "$_pkgname/BambooTracker"
- qmake CONFIG+=release PREFIX=/usr
+ cd "$_pkgname"
+ qmake Project.pro CONFIG+=release CONFIG-=debug CONFIG+=use_jack CONFIG+=jack_has_rename CONFIG+=use_pulse PREFIX=/usr
+ make -j1 qmake_all
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
}