diff options
author | Christopher Arndt | 2020-05-08 00:40:55 +0200 |
---|---|---|
committer | Christopher Arndt | 2020-05-08 00:40:55 +0200 |
commit | f283c6d274084e9a95b62356aed997eb7e2226b2 (patch) | |
tree | 0c95850ef2bad8c66b91eec9e22aeb2299d4769e | |
parent | d65ee3029d6ff97e48b83e82a4a5b4ebae185502 (diff) | |
download | aur-f283c6d274084e9a95b62356aed997eb7e2226b2.tar.gz |
Many updates to bring up-to-par with release package
* Update dependencies
* Add source repo for autowaf submodule
* Use Python 3 instead Python 2 to run waf build script
* Change project URL to HTTPS
* Update source repo URL
* Change pkgver function to use 'git describe --long'
* Install readme and news file as pkg documentation
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | PKGBUILD | 38 |
3 files changed, 38 insertions, 19 deletions
@@ -1,19 +1,24 @@ pkgbase = mda-lv2-git pkgdesc = A port of the MDA VST plugins to the LV2 format - pkgver = 1.2.2.r189.4c70d5d - pkgrel = 2 - url = http://drobilla.net/software/mda-lv2/ + pkgver = 1.2.4.r1.g1761c1c + pkgrel = 1 + url = https://drobilla.net/software/mda-lv2/ arch = i686 arch = x86_64 groups = lv2-plugins license = GPL2 makedepends = git - makedepends = python2 - depends = lv2 + makedepends = lv2 + makedepends = python + depends = gcc-libs + depends = glibc provides = mda-lv2 conflicts = mda-lv2 conflicts = mda-lv2-svn - source = mda-lv2::git+http://git.drobilla.net/mda.lv2.git + conflicts = mda.lv2 + source = mda-lv2::git+https://gitlab.com/drobilla/mda-lv2.git + source = autowaf::git+https://gitlab.com/drobilla/autowaf.git + md5sums = SKIP md5sums = SKIP pkgname = mda-lv2-git diff --git a/.gitignore b/.gitignore index a5c19ce5e07c..6e71a1c418fd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ +autowaf/ pkg/ src/ mda-lv2/ mda-lv2-git-*.tar.xz +mda-lv2-git-*.tar.zst mda-lv2-git-*.src.tar.gz .AURINFO @@ -2,38 +2,50 @@ _pkgname=mda-lv2 pkgname="${_pkgname}-git" -pkgver=1.2.2.r189.4c70d5d -pkgrel=2 +pkgver=1.2.4.r1.g1761c1c +pkgrel=1 pkgdesc="A port of the MDA VST plugins to the LV2 format" arch=("i686" "x86_64") -url="http://drobilla.net/software/mda-lv2/" +url="https://drobilla.net/software/mda-lv2/" license=("GPL2") groups=('lv2-plugins') -depends=('lv2') -makedepends=('git' 'python2') +depends=('gcc-libs' 'glibc') +makedepends=('git' 'lv2' 'python') provides=("${_pkgname}") -conflicts=("${_pkgname}" "${_pkgname}-svn") -source=("${_pkgname}::git+http://git.drobilla.net/mda.lv2.git") -md5sums=('SKIP') +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') 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)" + #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 } build() { cd "${srcdir}/${_pkgname}" - python2 waf configure --prefix="/usr" - python2 waf build + python waf configure --prefix="/usr" + python waf build } package() { cd "${srcdir}/${_pkgname}" - python2 waf install --destdir="${pkgdir}" + python waf install --destdir="${pkgdir}" + install -vDm 644 {NEWS,README.md} -t "${pkgdir}/usr/share/doc/${pkgname}/" } # vim:set ts=2 sw=2 et: |