summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 30fdf2fce77eeb5cb4ff1c3fb4a361e946bc8c1a (plain)
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
48
49
50
51
# Maintainer: Bogdan Sinitsyn <bogdan.sinitsyn@gmail.com>
_github_pkgname=playbar2
pkgname=plasma5-applets-playbar2
pkgver=2.5
pkgrel=5
pkgdesc="Applet that shows now playing music"
arch=('i686' 'x86_64')
url="https://github.com/audoban/PlayBar2/"
license=('GPL3')
depends=(
  plasma-framework
  plasma-workspace
  kdeclarative
  kglobalaccel
  kconfigwidgets
  kxmlgui
  kwindowsystem
)
makedepends=(
  extra-cmake-modules
  kdoctools
)
conflicts=(
  kdeplasma-applets-playbar2
)

source=("https://github.com/audoban/$_github_pkgname/archive/v${pkgver}.tar.gz")
sha512sums=('964a29a07d7fab8f02d71224684e572e4fbadbd57fdc74ee6b59477b415306c39b60ec7be392711cfac8ab0325a72e7cee485e9c3af2949f439dbeb3a247605b')

prepare() {
  cd "$srcdir/$_github_pkgname-$pkgver"

  mkdir -p build
}

build() {
  cd "$srcdir/$_github_pkgname-$pkgver"

  cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
  make
}

package() {
  cd "$srcdir/$_github_pkgname-$pkgver"

  cd build
  make DESTDIR="$pkgdir/" install
}

# vim:set ts=2 sw=2 et: