PKGBUILD 856 Bytes
Newer Older
gnastyle's avatar
gnastyle committed
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
pkgname=plasma5-applets-playbar2
_name=PlayBar2
pkgver=2.3
pkgrel=1
pkgdesc="Client MPRIS2, allows you to control your favorite media player"
arch=('x86_64')
url="https://github.com/audoban/PlayBar2"
license=('GPL')
group=('plasma5-applets')
depends=('plasma-workspace' 'kdeclarative' 'kglobalaccel' 'kconfigwidgets' 'kxmlgui' 'kwindowsystem' 'kdoctools')
makedepends=('extra-cmake-modules')
source=("https://github.com/audoban/PlayBar2/archive/v${pkgver}.tar.gz")
sha256sums=('b4962901b08af21e7e173a33dc89523d5319f49a9f495dcb4247400f3e5f5a45')
 
prepare() {
  cd "${_name}-${pkgver}"
  mkdir -p build
}

build() {
  cd "${_name}-${pkgver}/build"
 
  cmake .. \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release
}
 
package() {
  cd "${_name}-${pkgver}"/build
 
  make install DESTDIR="${pkgdir}"
  mv ${pkgdir}/usr/lib64 ${pkgdir}/usr/lib
}