diff options
author | Christopher Arndt | 2022-08-14 15:27:50 +0200 |
---|---|---|
committer | Christopher Arndt | 2022-08-14 15:27:50 +0200 |
commit | 4ec25871d4877d1c715ffac793baa46b3c3bf1a7 (patch) | |
tree | 27018b020135c158778a7a38b234e19742e4fd09 /PKGBUILD | |
parent | 29d1178569cd93fbfe22117fbe63d30e44bc570b (diff) | |
download | aur-4ec25871d4877d1c715ffac793baa46b3c3bf1a7.tar.gz |
Update to meson build system
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 63 |
1 files changed, 26 insertions, 37 deletions
@@ -1,51 +1,40 @@ # Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de> _pkgname=mda-lv2 -pkgname="${_pkgname}-git" -pkgver=1.2.4.r1.g1761c1c -pkgrel=2 -pkgdesc="A port of the MDA VST plugins to the LV2 format" -arch=("i686" "x86_64") -url="https://drobilla.net/software/mda-lv2/" -license=("GPL2") -groups=('lv2-plugins') -depends=('gcc-libs' 'glibc') -makedepends=('git' 'lv2' 'python') -provides=("${_pkgname}" "${_pkgname//-/.}") -conflicts=("${_pkgname}" "${_pkgname}-svn" "${_pkgname//-/.}") -source=("${_pkgname}::git+https://gitlab.com/drobilla/mda-lv2.git" - 'autowaf::git+https://gitlab.com/drobilla/autowaf.git') -md5sums=('SKIP' - 'SKIP') +pkgname="$_pkgname-git" +pkgver=1.2.10.r244.da3df70 +pkgrel=1 +pkgdesc='A port of the MDA VST plugins to the LV2 format (git version)' +arch=(x86_64) +url='https://drobilla.net/software/mda-lv2/' +license=(GPL2) +groups=(lv2-plugins pro-audio) +depends=(gcc-libs glibc) +makedepends=(git lv2 meson python) +provides=($_pkgname "${_pkgname//-/.}") +conflicts=($_pkgname $_pkgname-svn "${_pkgname//-/.}") +source=("$_pkgname::git+https://gitlab.com/drobilla/mda-lv2.git") +md5sums=('SKIP') pkgver() { - cd "${srcdir}/${_pkgname}" - - #local ver=`grep "^MDA_VERSION" wscript | cut -d "'" -f 2` - #echo "$ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" - echo $(git describe --tags | sed -E -e 's/-([0-9]+)-/-r\1-/' -e 's/^v//' -e 's/-/./g') -} - -prepare() { - cd "${srcdir}/${_pkgname}" - - git submodule init - git config submodule.waflib.url "${srcdir}/autowaf" - git submodule update + cd $_pkgname + local ver=$(grep -E "^\s+version: '[0-9]+\.[0-9]+\.[0-9]+'" meson.build | cut -d "'" -f 2) + echo $ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD) } build() { - cd "${srcdir}/${_pkgname}" - - python waf configure --prefix="/usr" - python waf build + arch-meson -D tests=disabled $_pkgname $_pkgname-build + meson compile -C $_pkgname-build } -package() { - cd "${srcdir}/${_pkgname}" +# tests require 'autoship', which is not packaged nor vendored in the project +#check() { +# meson test -C $_pkgname-build +#} - python waf install --destdir="${pkgdir}" - install -vDm 644 {NEWS,README.md} -t "${pkgdir}/usr/share/doc/${pkgname}/" +package() { + meson install -C $_pkgname-build --destdir "$pkgdir" + install -vDm 644 $_pkgname/{NEWS,README.md} -t "$pkgdir"/usr/share/doc/$pkgname } # vim:set ts=2 sw=2 et: |