-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathPKGBUILD
47 lines (40 loc) · 1.61 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Maintainer: Robin <rbn dot 86 et bigbrothergoogle>
# Contributor: Marcus Behrendt <marcus dot behrendt dot 86 et bigbrothergoogle>
# Contributor: Philipp A. <[email protected]>
_basename=panon
pkgname=plasma5-applets-${_basename}-git
pkgver=0.1.0
pkgrel=3
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-cffi' 'python-websockets' 'qt5-websockets')
makedepends=('git')
provides=('plasma5-applets-panon-git')
conflicts=('plasma5-applets-panon-git' 'plasma5-applets-panon')
source=("git+https://github.com/rbn42/panon.git")
md5sums=('SKIP')
package() {
cd "${srcdir}/${_basename}"
# Download SoundCard and hsluv-glsl
git submodule update --init
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${_basename%-*}/LICENSE"
install -Dm644 third_party/hsluv-glsl/LICENCE.md "$pkgdir/usr/share/licenses/${_basename%-*}/hsluv-glsl/LICENCE.md"
install -Dm644 third_party/SoundCard/LICENSE "$pkgdir/usr/share/licenses/${_basename%-*}/SoundCard/LICENSE"
mkdir build
cd build
cmake ../kde \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DKDE_INSTALL_LIBDIR=lib
make install DESTDIR="$pkgdir"
cd ../kde
rm -r "$pkgdir/usr/share/plasma/plasmoids/"
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
}