summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a57b6419b04612d9590caf3efa63f2634076d7fa (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
# Maintainer: JP Cimalando <jp-dev inbox.ru>
pkgname=opn2bankeditor-git
_pkgname=OPN2BankEditor
pkgver=1.3.beta.r80.g78c2a34
pkgrel=1
epoch=
pkgdesc="A small cross-platform editor of the OPN2 FM banks of different formats"
arch=('i686' 'x86_64')
url="https://github.com/Wohlstand/OPN2BankEditor"
license=('GPL3')
groups=()
depends=('qwt' 'jack' 'libpulse' 'hicolor-icon-theme' 'desktop-file-utils')
makedepends=('cmake' 'git' 'qt5-tools')
checkdepends=()
optdepends=()
provides=("opn2bankeditor")
conflicts=("opn2bankeditor")
replaces=()
backup=()
options=()
install=
changelog=
source=("git+https://github.com/Wohlstand/${_pkgname}.git")
noextract=()
md5sums=('SKIP')
validpgpkeys=()

pkgver() {
  cd "$_pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "$_pkgname"
  git submodule init
  git submodule update
}

build() {
  cd "$_pkgname"
  mkdir -p build
  cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
  make
}

package() {
  cd "$_pkgname"
  make -C build install DESTDIR="$pkgdir"
}