summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6a9d40d4fcdb87a8ffd405f5c7e98a0b160b01a9 (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
# Maintainer: aggraef@gmail.com
pkgname=libmusicxml-git
pkgver=5242.5a448403
pkgrel=1
pkgdesc="library and tools for the MusicXML format (git version)"
arch=('x86_64' 'i686')
url="https://github.com/dfober/libmusicxml"
license=('LGPL')
makedepends=('cmake')
provides=('libmusicxml')
conflicts=('libmusicxml')
source=("$pkgname::git+https://github.com/grame-cncm/libmusicxml.git#branch=dev")
md5sums=('SKIP')

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

build() {
    cd "$srcdir/$pkgname/build"
    cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -G "Unix Makefiles"
    make
}

package() {
    cd "$srcdir/$pkgname/build"
    make install DESTDIR="$pkgdir"
}