# Maintainer: Michael Gogins <michael.gogins@gmail.com>

pkgname=libmusicxml-git
pkgrel=1
pkgver=36.80a876f
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/dfober/libmusicxml")
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="${pkgdir}${MINGW_PREFIX}" -G "Unix Makefiles"
    make
}

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