blob: 0d65375f7bd51513fcb5b9cda36bb97dc835e358 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: Milkii Brewster <milkii on Freenode IRC>
maintaner="Milkii Brewster <milkii on Freenode IRC>"
pkgname=x42-sisco-cv-git
pkgdesc="Oscilloscope, varient of sisco.lv2 but with CV ports"
pkgver=r233.7db7157
pkgrel=1
epoch=
arch=(x86_64)
url="https://github.com/x42/sisco.lv2"
license=(GPL)
groups=()
depends=('lv2' 'pango' 'cairo' 'mesa')
makedepends=()
provides=()
# conflicts=('x42-plugins')
conflicts=()
source=($pkgname::git+https://github.com/x42/sisco.lv2)
md5sums=('SKIP')
pkgver() {
cd "$pkgname"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
prepare() {
cd "$pkgname"
make submodules
sed -i 's#sisco.lv2#sisco-cv.lv2#' Makefile
sed -i 's#LV2NAME=sisco#LV2NAME=sisco-cv#' Makefile
sed -i 's#http://gareus.org/oss/lv2/sisco#http://gareus.org/oss/lv2/sisco-cv#' src/uris.h
mv lv2ttl/sisco.ttl.in lv2ttl/sisco-cv.ttl.in
mv lv2ttl/sisco.lv2.ttl.in lv2ttl/sisco-cv.lv2.ttl.in
mv lv2ttl/sisco.gui.ttl.in lv2ttl/sisco-cv.gui.ttl.in
}
build() {
cd "$pkgname"
make
}
package() {
cd "$pkgname"
sed -i 's#AudioPort#CVPort#' build/sisco-cv.ttl
sed -i 's#http://gareus.org/oss/lv2/sisco#http://gareus.org/oss/lv2/sisco-cv#' build/sisco-cv.ttl
sed -i 's#Simple Scope #Simple Scope CV #' build/sisco-cv.ttl
# sed -i 's#http://gareus.org/oss/lv2/sisco#http://gareus.org/oss/lv2/sisco-cv#' build/manifest.ttl
make DESTDIR="$pkgdir/" PREFIX="/usr" install-lv2
}
|