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

_pkgname=seq66
pkgname=$_pkgname-git
pkgver=0.99.4.r0.gd06e4a10
pkgrel=1
pkgdesc='A live-looping sequencer with a Qt graphical interface (git version)'
arch=(x86_64)
url='https://github.com/ahlstromcj/seq66'
license=(GPL2)
depends=(qt5-base)
makedepends=(git alsa-lib jack liblo)
groups=(pro-audio)
provides=($_pkgname "$_pkgname=${pkgver//.r*/}")
conflicts=($_pkgname)
source=("$_pkgname::git+https://github.com/ahlstromcj/$_pkgname.git")
md5sums=('SKIP')

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

build() {
  cd $_pkgname
  ./bootstrap
  ./configure --prefix=/usr --enable-rtmidi
  make -j$(nproc --ignore=1)
}

package() {
  depends+=(libasound.so libjack.so liblo.so)
  cd $_pkgname
  make DESTDIR="$pkgdir" install
}