diff options
author | Marcus Behrendt | 2020-01-29 23:14:13 +0100 |
---|---|---|
committer | Marcus Behrendt | 2020-01-29 23:14:13 +0100 |
commit | b0b0b1a584367488f4d2c0d66c2c366652bac53c (patch) | |
tree | 792f5a96f80d05aab325002cc4f0b7c94531dad1 | |
parent | f46cedd0b3615ef3d7b769d8b41129ea1ee1422b (diff) | |
download | aur-b0b0b1a584367488f4d2c0d66c2c366652bac53c.tar.gz |
updpkgver
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 53 |
2 files changed, 55 insertions, 12 deletions
@@ -1,11 +1,12 @@ pkgbase = plasma5-applets-panon pkgdesc = A Different Audio Spectrum Analyzer for KDE Plasma - pkgver = 0.2.16 + pkgver = 0.4.0 pkgrel = 1 url = http://github.com/rbn42/panon arch = any license = GPL3 - makedepends = git + license = DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2 + makedepends = kpackage depends = plasma-workspace depends = python-docopt depends = python-numpy @@ -14,10 +15,15 @@ pkgbase = plasma5-applets-panon depends = python-websockets depends = qt5-websockets depends = qt5-3d + depends = python-soundcard provides = plasma5-applets-panon conflicts = plasma5-applets-panon - source = panon-0.2.16::https://github.com/rbn42/panon/archive/v0.2.16.tar.gz - md5sums = d83f76232ed8a7faaf272a2d4baad72b + source = panon-0.4.0::https://github.com/rbn42/panon/archive/v0.4.0.tar.gz + source = https://raw.githubusercontent.com/williammalo/hsluv-glsl/master/hsluv-glsl.fsh + source = hsluv-glsl_LICENSE.md::https://raw.githubusercontent.com/williammalo/hsluv-glsl/master/LICENCE.md + md5sums = 95ec973fe10a012cd3b64c89df56016c + md5sums = 9756b7835dbccd4607d7818df2a43858 + md5sums = 4163e80ffc8ff3c289dec4fed9e55692 pkgname = plasma5-applets-panon @@ -5,24 +5,61 @@ _basename=panon pkgname=plasma5-applets-${_basename} -pkgver=0.2.16 +pkgver=0.4.0 pkgrel=1 pkgdesc="A Different Audio Spectrum Analyzer for KDE Plasma" arch=('any') url="http://github.com/rbn42/panon" -license=('GPL3') -depends=('plasma-workspace' 'python-docopt' 'python-numpy' 'python-pillow' 'python-pyaudio' 'python-websockets' 'qt5-websockets' 'qt5-3d') -makedepends=('git') +license=('GPL3' 'DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2') +depends=('plasma-workspace' + 'python-docopt' + 'python-numpy' + 'python-pillow' + 'python-pyaudio' + 'python-websockets' + 'qt5-websockets' + 'qt5-3d' + 'python-soundcard') +makedepends=('kpackage') provides=('plasma5-applets-panon') conflicts=('plasma5-applets-panon') -source=("${_basename}-${pkgver}::https://github.com/rbn42/${_basename}/archive/v${pkgver}.tar.gz") -md5sums=('d83f76232ed8a7faaf272a2d4baad72b') +source=("${_basename}-${pkgver}::https://github.com/rbn42/${_basename}/archive/v${pkgver}.tar.gz" + "https://raw.githubusercontent.com/williammalo/hsluv-glsl/master/hsluv-glsl.fsh" + hsluv-glsl_LICENSE.md::"https://raw.githubusercontent.com/williammalo/hsluv-glsl/master/LICENCE.md") +md5sums=('95ec973fe10a012cd3b64c89df56016c' + '9756b7835dbccd4607d7818df2a43858' + '4163e80ffc8ff3c289dec4fed9e55692') + +prepare() { + cd "${srcdir}/${_basename}-${pkgver}" + + install -Dm644 "${srcdir}/hsluv-glsl.fsh" third_party/hsluv-glsl + install -Dm644 "${srcdir}/hsluv-glsl_LICENSE.md" third_party/hsluv-glsl/LICENCE.md +} package() { cd "${srcdir}/${_basename}-${pkgver}" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${_basename%-*}/LICENSE" - - cd kde + install -Dm644 third_party/hsluv-glsl/LICENCE.md "$pkgdir/usr/share/licenses/${_basename%-*}/hsluv-glsl/LICENCE.md" + + rm -rf build || true + mkdir -p build + cd build + cmake ../kde \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DKDE_INSTALL_LIBDIR=lib + make install DESTDIR="$pkgdir" + + cd ../kde + rm -rf "$pkgdir/usr/share/plasma/plasmoids/" || true kpackagetool5 -p "$pkgdir/usr/share/plasma/plasmoids/" -t Plasma/Applet -i plasmoid + + # If an index is generated, remove it. + path_index="$pkgdir/usr/share/plasma/plasmoids/kpluginindex.json" + if [ -e "$path_index" ];then + rm "$path_index" + fi } |