summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e4bf30a627d9ea48e3eedb8bc5a342ee1bd57061 (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
52
53
54
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>

_name=Xmonk.lv2
_pkgname=${_name,,}
_plugin_uri="https://github.com/brummer10/$_name"
pkgname=$_pkgname-git
pkgver=0.4.r85.4443523
pkgrel=1
pkgdesc='A simple sound generator LV2 plugin to have some fun with (git version)'
arch=(x86_64)
url="https://github.com/brummer10/$_name"
license=(0BSD)
depends=(gcc-libs glibc cairo libx11)
makedepends=(git)
groups=(pro-audio lv2-plugins)
provides=($_pkgname ${_pkgname/./-}-git)
conflicts=($_pkgname ${_pkgname/./-}-git)
source=("$_name::git+https://github.com/brummer10/$_name.git"
        'lv2ui.version'
        'libxputty::git+https://github.com/brummer10/libxputty.git')
sha256sums=('SKIP'
            '5abe9dbb9f02b02b361f5e5393e52029cd2eae4fb4b45817ad51c8ab7a217a88'
            'SKIP')


pkgver() {
  cd $_name
  local ver="$(grep '^\s*VER =' Xmonk/Makefile | cut -d ' ' -f 3)"
  echo "$ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

prepare() {
  cd $_name
  git submodule init
  git submodule set-url libxputty "$srcdir"/libxputty
  git -c protocol.file.allow=always submodule update
}

build() {
  cd $_name
  # make sure only needed symbols are export in UI shared lib
  export GUI_LDFLAGS="-Wl,--version-script=$srcdir/lv2ui.version"
  make
}

check() {
  lv2lint -M pack -I $_name/bin/$_name "$_plugin_uri"
}

package() {
  cd $_name
  make DESTDIR="$pkgdir" PREFIX=/usr install
  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}