summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d52bd2415be845cf34e7eec4dbae7eb36b99c5cd (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
# Maintainer: Milk Brewster <milk on freenode>
_pkgname=patroneo
pkgname=${_pkgname}-git
pkgver=v1.2.r17.g41e842a
pkgrel=1
pkgdesc="Easy Pattern Sequencer - Utilizing Jack Midi and the Non Session Manager"
arch=(x86_64)
url="https://laborejo.org/patroneo.git"
license=('GPL')
groups=()
depends=('python' 'python-pyqt5' 'ttf-dejavu')
makedepends=('git' 'nuitka')
optdepends=('non-session-manager: required to run Patroneo'
            'raysession-git: alternative to non-session-manager')
provides=('patroneo' 'patroneo-git')
conflicts=('patroneo' 'patroneo-git')
install=
source=('git+https://laborejo.org/patroneo.git/')
noextract=()
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/patroneo"
  ( 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 "$srcdir/patroneo"
  git submodule update --init --recursive 
  ./configure --prefix=/usr
}

build() {
  cd "$srcdir/patroneo"
  make
}

package() {
  cd "$srcdir/patroneo"
  make PREFIX=/usr DESTDIR="$pkgdir/" install
}