summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTérence Clastres2020-12-23 21:03:14 +0100
committerTérence Clastres2020-12-23 21:03:14 +0100
commit71bb83c491ff11dc1f207f43a4cf21ccc816d3ca (patch)
tree9bf96a9a81749209f57eb903ffdfc80fd70fc841
parentadaff44bfc92e8f7bf08cb54f83a83d736f5b615 (diff)
downloadaur-71bb83c491ff11dc1f207f43a4cf21ccc816d3ca.tar.gz
Switch to a split package approach
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD69
2 files changed, 78 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 526a6c6a76d..f369dabde33 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,34 @@
pkgbase = jack-audio-tools
- pkgdesc = A collection of utilities and tools for the JACK audio ecosystem. Git version.
+ pkgdesc = A collection of utilities and tools for the JACK audio ecosystem.
pkgver = 0.3.2
pkgrel = 1
url = https://github.com/SpotlightKid/jack-audio-tools
arch = any
license = MIT
makedepends = python-setuptools
+ makedepends = lv2
+ makedepends = python-rtmidi
+ depends = jack
depends = lilv
depends = python-rdflib
- optdepends = jack: for JACK Transport scripts
- optdepends = lv2: for LV2 scripts
- optdepends = carla: for carxp2lv2presets script
source = https://files.pythonhosted.org/packages/source/j/jack-audio-tools/jack-audio-tools-0.3.2.tar.gz
sha256sums = 288de54dd783d4f37ebe754910166318f7efe9ac90ce2e41564ff366236526ec
-pkgname = jack-audio-tools
+pkgname = jack-audio-tools-common
+
+pkgname = jack-audio-tools-transport
+ depends = jack-audio-tools-common
+ depends = jack
+ depends = python-rtmidi
+ depends = python-jack-client
+
+pkgname = jack-audio-tools-lv2
+ depends = jack-audio-tools-common
+ depends = lv2
+ depends = lilv
+
+pkgname = jack-audio-tools-carla
+ depends = jack-audio-tools-common
+ depends = carla
+ depends = python-rdflib
diff --git a/PKGBUILD b/PKGBUILD
index 1022e966255..2cf0b767fdc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,30 +1,75 @@
# Maintainer: Térence Clastres <t dot clastres at gmail dot com>
-pkgname=jack-audio-tools
+pkgbase=jack-audio-tools
+pkgname=("$pkgbase-common" "$pkgbase-transport" "$pkgbase-lv2" "$pkgbase-carla")
pkgver=0.3.2
pkgrel=1
-pkgdesc="A collection of utilities and tools for the JACK audio ecosystem. Git version."
+pkgdesc="A collection of utilities and tools for the JACK audio ecosystem."
arch=('any')
url="https://github.com/SpotlightKid/jack-audio-tools"
license=('MIT')
-makedepends=('python-setuptools')
-depends=('lilv' 'python-rdflib')
-optdepends=('jack: for JACK Transport scripts'
- 'lv2: for LV2 scripts'
- 'carla: for carxp2lv2presets script'
- )
-source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz")
+makedepends=('python-setuptools' 'lv2' 'python-rtmidi')
+depends=('jack' 'lilv' 'python-rdflib')
+source=("https://files.pythonhosted.org/packages/source/${pkgbase::1}/$pkgbase/$pkgbase-$pkgver.tar.gz")
sha256sums=('288de54dd783d4f37ebe754910166318f7efe9ac90ce2e41564ff366236526ec')
build() {
- cd "$pkgname-$pkgver"
+ cd "$pkgbase-$pkgver"
python setup.py build
+
}
-package() {
- cd "$pkgname-$pkgver"
+package_jack-audio-tools-common() {
+ cd "$pkgbase-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+
+ rm $pkgdir/usr/bin/{lv2*,carxp2lv2presets,jack*}
+ rm -r $pkgdir$site_packages/${pkgbase//-/}/{carla,lv2,transport}
+}
+
+package_jack-audio-tools-transport() {
+ depends=('jack-audio-tools-common' 'jack' 'python-rtmidi' 'python-jack-client')
+
+ cd "$pkgbase-$pkgver"
+
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+
+ rm $pkgdir/usr/bin/{lv2*,carxp2lv2presets}
+ rm -r $pkgdir$site_packages/${pkgbase//-/}/{carla,lv2}
+ rm -r $pkgdir$site_packages/${pkgbase//-/_}*
+}
+
+package_jack-audio-tools-lv2() {
+ depends=('jack-audio-tools-common' 'lv2' 'lilv')
+
+ cd "$pkgbase-$pkgver"
+
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+
+ rm $pkgdir/usr/bin/{jack*,carxp2lv2presets}
+ rm -r $pkgdir$site_packages/${pkgbase//-/}/{carla,transport}
+ rm -r $pkgdir$site_packages/${pkgbase//-/_}*
+}
+
+package_jack-audio-tools-carla() {
+ depends=('jack-audio-tools-common' 'carla' 'python-rdflib')
+
+ cd "$pkgbase-$pkgver"
+
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+
+ rm $pkgdir/usr/bin/{jack*,lv2*}
+ rm -r $pkgdir$site_packages/${pkgbase//-/}/{transport,lv2}
+ rm -r $pkgdir$site_packages/${pkgbase//-/_}*
}