Update to meson build system
This commit is contained in:
parent
3c8b659af7
commit
7851a4bd20
27
.SRCINFO
27
.SRCINFO
|
@ -1,38 +1,37 @@
|
||||||
pkgbase = lv2-git
|
pkgbase = lv2-git
|
||||||
pkgdesc = Plugin standard for audio systems (git version)
|
pkgdesc = Plugin standard for audio systems (git version)
|
||||||
pkgver = 1.17.2.r1257.c0773f8
|
pkgver = 1.18.7.r1399.8124b4e
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = http://lv2plug.in/
|
url = http://lv2plug.in/
|
||||||
arch = i686
|
arch = i686
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = custom:ISC
|
license = ISC
|
||||||
makedepends = asciidoc
|
makedepends = asciidoc
|
||||||
|
makedepends = codespell
|
||||||
makedepends = doxygen
|
makedepends = doxygen
|
||||||
|
makedepends = flake8
|
||||||
makedepends = git
|
makedepends = git
|
||||||
makedepends = gtk2
|
|
||||||
makedepends = libsndfile
|
makedepends = libsndfile
|
||||||
|
makedepends = meson
|
||||||
makedepends = pygmentize
|
makedepends = pygmentize
|
||||||
|
makedepends = python-black
|
||||||
makedepends = python-lxml
|
makedepends = python-lxml
|
||||||
makedepends = python-markdown
|
makedepends = python-markdown
|
||||||
makedepends = python-pygments
|
makedepends = python-pygments
|
||||||
|
makedepends = python-pylint
|
||||||
makedepends = python-rdflib
|
makedepends = python-rdflib
|
||||||
optdepends = libsndfile: example sampler plugin
|
makedepends = serd
|
||||||
optdepends = gtk2: example scope plugin
|
makedepends = sord
|
||||||
|
optdepends = sord: for lv2_validate
|
||||||
|
optdepends = libsndfile: for eg-sampler.lv2
|
||||||
optdepends = python-lxml: for lv2specgen.py
|
optdepends = python-lxml: for lv2specgen.py
|
||||||
optdepends = python-markdown: for lv2specgen.py
|
optdepends = python-markdown: for lv2specgen.py
|
||||||
optdepends = python-pygments: for lv2specgen.py
|
optdepends = python-pygments: for lv2specgen.py
|
||||||
optdepends = python-rdflib: for lv2specgen.py
|
optdepends = python-rdflib: for lv2specgen.py
|
||||||
provides = lv2
|
provides = lv2
|
||||||
provides = lv2=1.17.2
|
provides = lv2=1.18.7
|
||||||
provides = lv2core
|
|
||||||
provides = lv2-svn
|
|
||||||
conflicts = lv2
|
conflicts = lv2
|
||||||
conflicts = lv2-svn
|
|
||||||
replaces = lv2core
|
|
||||||
source = lv2::git+https://gitlab.com/lv2/lv2.git
|
source = lv2::git+https://gitlab.com/lv2/lv2.git
|
||||||
source = autowaf::git+https://gitlab.com/drobilla/autowaf.git
|
sha256sums = SKIP
|
||||||
md5sums = SKIP
|
|
||||||
md5sums = SKIP
|
|
||||||
|
|
||||||
pkgname = lv2-git
|
pkgname = lv2-git
|
||||||
|
|
||||||
|
|
89
PKGBUILD
89
PKGBUILD
|
@ -2,59 +2,64 @@
|
||||||
# Contributor: speps <speps at aur dot archlinux dot org>
|
# Contributor: speps <speps at aur dot archlinux dot org>
|
||||||
|
|
||||||
_pkgname=lv2
|
_pkgname=lv2
|
||||||
pkgname="${_pkgname}-git"
|
pkgname="$_pkgname-git"
|
||||||
pkgver=1.17.2.r1257.c0773f8
|
pkgver=1.18.7.r1399.8124b4e
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Plugin standard for audio systems (git version)"
|
pkgdesc='Plugin standard for audio systems (git version)'
|
||||||
arch=('i686' 'x86_64')
|
arch=(i686 x86_64)
|
||||||
url="http://lv2plug.in/"
|
url='http://lv2plug.in/'
|
||||||
license=('custom:ISC')
|
license=(ISC)
|
||||||
makedepends=('asciidoc' 'doxygen' 'git' 'gtk2' 'libsndfile' 'pygmentize'
|
makedepends=(
|
||||||
'python-lxml' 'python-markdown' 'python-pygments' 'python-rdflib')
|
asciidoc
|
||||||
optdepends=('libsndfile: example sampler plugin'
|
codespell
|
||||||
'gtk2: example scope plugin'
|
doxygen
|
||||||
'python-lxml: for lv2specgen.py'
|
flake8
|
||||||
'python-markdown: for lv2specgen.py'
|
git
|
||||||
'python-pygments: for lv2specgen.py'
|
libsndfile
|
||||||
'python-rdflib: for lv2specgen.py')
|
meson
|
||||||
provides=("${_pkgname}" "${_pkgname}=${pkgver//.r*/}" 'lv2core' "${_pkgname}-svn")
|
pygmentize
|
||||||
conflicts=("${_pkgname}" "${_pkgname}-svn")
|
python-black
|
||||||
replaces=('lv2core')
|
python-lxml
|
||||||
source=("${_pkgname}::git+https://gitlab.com/lv2/lv2.git"
|
python-markdown
|
||||||
'autowaf::git+https://gitlab.com/drobilla/autowaf.git')
|
python-pygments
|
||||||
md5sums=('SKIP'
|
python-pylint
|
||||||
'SKIP')
|
python-rdflib
|
||||||
|
serd
|
||||||
|
sord
|
||||||
|
)
|
||||||
|
optdepends=(
|
||||||
|
'sord: for lv2_validate'
|
||||||
|
'libsndfile: for eg-sampler.lv2'
|
||||||
|
'python-lxml: for lv2specgen.py'
|
||||||
|
'python-markdown: for lv2specgen.py'
|
||||||
|
'python-pygments: for lv2specgen.py'
|
||||||
|
'python-rdflib: for lv2specgen.py'
|
||||||
|
)
|
||||||
|
provides=($_pkgname "${_pkgname}=${pkgver//.r*/}")
|
||||||
|
conflicts=($_pkgname)
|
||||||
|
source=("${_pkgname}::git+https://gitlab.com/lv2/lv2.git")
|
||||||
|
sha256sums=('SKIP')
|
||||||
|
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd "${srcdir}/${_pkgname}"
|
cd $_pkgname
|
||||||
|
local ver=$(grep -E "^\s+version: '.*'" meson.build | cut -d "'" -f 2)
|
||||||
local ver=$(grep '^VERSION' wscript | cut -d "'" -f 2)
|
|
||||||
echo ${ver}.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
|
echo ${ver}.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
|
||||||
}
|
}
|
||||||
|
|
||||||
prepare() {
|
|
||||||
cd "${srcdir}/${_pkgname}"
|
|
||||||
|
|
||||||
git submodule init
|
|
||||||
git config submodule.waflib.url "${srcdir}/autowaf"
|
|
||||||
git submodule update
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}/${_pkgname}"
|
arch-meson $_pkgname $_pkgname-build
|
||||||
|
meson compile -C $_pkgname-build
|
||||||
|
}
|
||||||
|
|
||||||
python waf configure \
|
|
||||||
--prefix=/usr \
|
check() {
|
||||||
--docs \
|
meson test -C $_pkgname-build
|
||||||
--docdir=/usr/share/doc/${pkgname}
|
|
||||||
python waf build $MAKEFLAGS
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${srcdir}/${_pkgname}"
|
meson install -C $_pkgname-build --destdir "$pkgdir"
|
||||||
|
install -vDm 644 $_pkgname/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname
|
||||||
python waf install --destdir="${pkgdir}"
|
install -vDm 644 $_pkgname/README.md -t "$pkgdir"/usr/share/doc/$pkgname
|
||||||
install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
||||||
install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue