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

_reponame=XUiDesigner
_pkgname=${_reponame,,}
pkgname=$_pkgname-git
pkgver=1.0.r10.g52b85db
pkgrel=2
pkgdesc='An easy to use tool to generate and design LV2 plugins GUIs (git version)'
arch=(x86_64)
url='https://github.com/brummer10/XUiDesigner'
license=(0BSD)
depends=(glibc cairo libx11 lilv python xxd)
makedepends=(git)
provides=($_pkgname)
conflicts=($_pkgname)
source=("$_pkgname::git+https://github.com/brummer10/$_reponame.git"
        'libxputty::git+https://github.com/brummer10/libxputty.git')
md5sums=('SKIP'
         'SKIP')


pkgver() {
  cd $_pkgname
  (
    set -o pipefail
    git describe --long --tags 2>/dev/null | sed -e 's/^v//' -e 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

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

  # Don't run update-desktop-database at 'make install'
  # - handled by pacman
  sed -i -e '/update-desktop-database/d' XUiDesigner/Makefile
}

build() {
  cd $_pkgname
  make
}

package() {
  depends+=(liblilv-0.so)
  cd $_pkgname
  make DESTDIR="$pkgdir" PREFIX=/usr install
  # documentation
  install -Dm644 README*.md -t "$pkgdir"/usr/share/doc/$pkgname
  # license
  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}