summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 113ea755706a5b2ead72db316f3edf4f1c323e17 (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
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG

pkgname=fluidlite-git
pkgver=r133.d59d232
pkgrel=1
pkgdesc="A real-time software synthesizer with SF3 support (development version)"
arch=('i686' 'x86_64')
url="https://github.com/divideconcept/FluidLite"
license=('LGPL')
depends=('libvorbis')
makedepends=('git' 'cmake')
conflicts=('fluidlite')
source=(${pkgname%-*}::"git+https://github.com/divideconcept/FluidLite.git")
md5sums=('SKIP')

pkgver() {
  cd ${pkgname%-*}
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  rm -rf build
  mkdir build
}

build() {
  cd build
  cmake ../${pkgname%-*} -DCMAKE_INSTALL_PREFIX=/usr \
                         -DCMAKE_BUILD_TYPE=Release \
                         -DFLUIDLITE_BUILD_STATIC=false \
                         -DFLUIDLITE_BUILD_SHARED=true
  make
}

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