SHARE
TWEET

PKGBUILD

a guest May 31st, 2018 331 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # $Id: PKGBUILD 316317 2018-04-14 20:11:35Z arojas $
  2. # Maintainer: Antonio Rojas <arojas@archlinux.org>
  3.  
  4. pkgname=systemd-kcm
  5. pkgver=1.2.1
  6. pkgrel=3
  7. pkgdesc="Systemd control module for KDE"
  8. arch=(x86_64)
  9. url='https://github.com/rthomsen/kcmsystemd'
  10. license=(GPL)
  11. depends=(kio)
  12. makedepends=(extra-cmake-modules)
  13. source=("http://download.kde.org/stable/$pkgname/$pkgname-$pkgver.tar.xz" qt5_use_modules.patch)
  14. sha256sums=('51960f4d3b4a1ceae28737c172c35aec8c1f4e534327fbc6dda76f1c17341389' 'bf75eab60a4fd0bd48b7c29cf3fd6a67265ec3545ef223f978841a7a6a41f009')
  15.  
  16. prepare() {
  17.   mkdir -p build
  18.  
  19. # fix kdesu path (FS#44396)
  20.   sed -e 's|/lib/libexec/kdesu|/lib/kf5/kdesu|' -i $pkgname-$pkgver/src/kcmsystemd.cpp
  21.  
  22.   # patch qt5_use_modules error
  23.   cd $pkgname-$pkgver/src
  24.   patch -p0 -i "${srcdir}/qt5_use_modules.patch"
  25. }
  26.  
  27. build() {
  28.   cd build
  29.   cmake ../$pkgname-$pkgver \
  30.    -DCMAKE_INSTALL_PREFIX=/usr \
  31.    -DCMAKE_INSTALL_LIBDIR=lib \
  32.    -DBUILD_TESTING=OFF
  33.   make
  34. }
  35.  
  36. package() {
  37.   cd build
  38.   make DESTDIR="$pkgdir" install
  39. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top