Advertisement
StMartin81

Untitled

Nov 12th, 2020
695
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.10 KB | None | 0 0
  1. # Maintainer: Bhushan Shah <bshah@kde.org>
  2. # Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
  3. _pkgname=user-manager
  4. pkgname=user-manager-git
  5. pkgver=r274.e74e910
  6. pkgrel=1
  7. pkgdesc="A simple system settings module to manage the users of your system (GIT version)"
  8. url='https://projects.kde.org/user-manager'
  9. arch=('i686' 'x86_64')
  10. license=('GPL' 'LGPL' 'FDL')
  11. depends=('libpwquality' 'kio')
  12. makedepends=('extra-cmake-modules' 'kdoctools' 'git')
  13. conflicts=('kcm-user-manager' 'user-manager')
  14. provides=('kcm-user-manager' 'user-manager')
  15. replaces=('kcm-user-manager-git')
  16. groups=('plasma')
  17. source=("git+https://invent.kde.org/plasma/${_pkgname}.git")
  18. sha1sums=('SKIP')
  19.  
  20. pkgver() {
  21.   cd "${srcdir}/${_pkgname}"
  22.   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  23. }
  24.  
  25. build() {
  26.   cmake -B build -S "${srcdir}/${_pkgname}" \
  27.     -DCMAKE_BUILD_TYPE=Release \
  28.     -DCMAKE_INSTALL_PREFIX=/usr \
  29.     -DLIB_INSTALL_DIR=lib \
  30.     -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
  31.     -DBUILD_TESTING=OFF
  32.   cmake --build build
  33. }
  34.  
  35. package() {
  36.   DESTDIR="${pkgdir}" cmake --install build
  37. }
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement