Date: Thursday, January 19, 2023 @ 22:38:30 Author: dvzrv Revision: 1387041
upgpkg: gxplugins.lv2 1.0-1: Upgrade to 1.0. Modified: gxplugins.lv2/trunk/PKGBUILD ----------+ PKGBUILD | 45 +++++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 22 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-01-19 22:28:32 UTC (rev 1387040) +++ PKGBUILD 2023-01-19 22:38:30 UTC (rev 1387041) @@ -1,33 +1,35 @@ # Maintainer: David Runge <[email protected]> -_name=GxPlugins +_name=GxPlugins.lv2 +_othername=gxplugins pkgname=gxplugins.lv2 -pkgver=0.9 +pkgver=1.0 pkgrel=1 pkgdesc="A set of extra lv2 plugins from the guitarix project" -arch=('x86_64') +arch=(x86_64) url="https://github.com/brummer10/gxplugins.lv2" -license=('GPL3') -groups=('lv2-plugins') -depends=('cairo' 'gcc-libs' 'glibc' 'libx11' 'lv2-host') -makedepends=('lv2') -checkdepends=('lv2lint') -source=("$pkgname-$pkgver.tar.gz::https://github.com/brummer10/${pkgname}/releases/download/v${pkgver}/${_name}_${pkgver}.tar.gz") -sha512sums=('c0a10c59511675ea2848c387e4974db164fcec2f6868b3889804c43c670fef8fa2eddde14313c6aadb20df2d807a6aca490f3ab9500980c2ea4fdbd9f142d7b2') -b2sums=('461257b57635eddaf22f338f9afdc3f79a3ffecd5f02c9943d7ad56f86287ec7322e4643c2e6f950da74b253d3af5155f84c336b42296273c63810a8017eef3c') +license=(GPL3) +groups=(lv2-plugins) +# TODO: devendor zita-resampler if possible +depends=(cairo gcc-libs glibc libx11 lv2-host) +makedepends=(lv2) +checkdepends=(lv2lint) +source=($url/releases/download/v$pkgver/${_othername}_${pkgver}_src.tar.bz2) +sha512sums=('590b5cdc662428260b64afa55aaed8632f7b8ab3307a19daff68b59c5de8b07d874408a31c0180f7195bbca06b71e8c907fbbb5db91cdc9e8c7e6519123687bb') +b2sums=('22674f42832a37f97ce93b75201167707d517e5ddda87dbbb4a87d12fca62d9691e24074eceea58db387d5e7e857673bcae0ae56fcbb9c3535857e6e864cc120') prepare() { - mv -v "${_name}_$pkgver" "$pkgname-$pkgver" - # TODO: devendor zita-resampler if possible + # there are lots of unneeded files: + find $_name -type d -iname "*.git/*" -exec rm -frv {} + } build() { - cd "$pkgname-$pkgver" - make + make -C $_name } check() { - local _name + local _plugin_name + local base_url="http://guitarix.sourceforge.net/plugins" declare -A _urls=( ["GxVoodoFuzz.lv2"]="gx_voodoo_#_voodoo_" ["GxVmk2.lv2"]="gx_vmk2d_#_vmk2d_" @@ -118,14 +120,13 @@ ["GxBaJaTubeDriver.lv2"]="gx_bajatubedriver.lv2" ["GxAxisFace.lv2"]="gx_AxisFace.lv2" ) - cd "$pkgname-$pkgver" - for _name in "${!_names[@]}"; do - lv2lint -Mpack -I "${_name}/${_names[${_name}]}/" "http://guitarix.sourceforge.net/plugins/${_urls[${_name}]}" || echo "https://github.com/brummer10/GxPlugins.lv2/issues/36" + + for _plugin_name in "${!_names[@]}"; do + lv2lint -Mpack -I $_name/$_plugin_name/${_names[$_plugin_name]}/ "$base_url/${_urls[$_plugin_name]}" || echo "https://github.com/brummer10/GxPlugins.lv2/issues/36" done } package() { - cd "$pkgname-$pkgver" - make DESTDIR="$pkgdir/" install - install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" + make DESTDIR="$pkgdir" install -C $_name + install -vDm 644 $_name/README.md -t "$pkgdir/usr/share/doc/$pkgname/" }
