summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f67d832ee0dd3dd8eb18bd186e1f09d01b519682 (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
# Maintainer: aggraef@gmail.com
pkgname=midisharelight-git
pkgver=1674.7f6d6d99
pkgrel=1
pkgdesc="light version of the MidiShare library (git version)"
arch=('x86_64' 'i686')
url="http://midishare.sourceforge.net/"
license=('LGPL')
makedepends=('cmake')
options=('strip' 'staticlibs')
provides=('midisharelight')
conflicts=('midisharelight')
source=("$pkgname::git+https://github.com/grame-cncm/midishare.git#branch=dev")
md5sums=('SKIP')

pkgver() {
    cd $srcdir/$pkgname
    echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
    cd "$srcdir/$pkgname/midisharelight/cmake"
    cmake -G "Unix Makefiles"
    make
}

# The software doesn't honor CMAKE_INSTALL_PREFIX, so we move things over to
# /usr by hand.
package() {
    cd "$srcdir/$pkgname/midisharelight/cmake"
    make install DESTDIR="$pkgdir"
    cd "$pkgdir/usr"
    mv local/* . && rmdir local
}