PKGBUILD 951 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Maintainer: Vitali64
  2. # If you have any issues, please open an issue on the project's gitlab page
  3. pkgname=vitali64-dwm-git
  4. pkgver=6.2
  5. pkgrel=1
  6. epoch=
  7. pkgdesc="A simple, fast dwm fork !"
  8. arch=(any)
  9. url="https://gitlab.com/vitali64/dots/v64-dwm"
  10. license=('MIT')
  11. groups=()
  12. depends=(xorg-server)
  13. makedepends=(git)
  14. checkdepends=()
  15. optdepends=()
  16. provides=(dwm)
  17. conflicts=(dwm)
  18. replaces=()
  19. backup=()
  20. options=()
  21. install=
  22. changelog=
  23. source=("git+$url")
  24. noextract=()
  25. md5sums=('SKIP')
  26. validpgpkeys=()
  27. pkgver() {
  28. cd "${_pkgname}"
  29. printf "6.2.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  30. }
  31. build() {
  32. cd v64-dwm
  33. make
  34. }
  35. package() {
  36. cd v64-dwm
  37. mkdir -p ${pkgdir}/opt/${pkgname}
  38. cp -rf * ${pkgdir}/opt/${pkgname}
  39. make PREFIX=/usr DESTDIR="${pkgdir}" install
  40. install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  41. install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
  42. }