PKGBUILD 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # This is an example PKGBUILD file. Use this as a start to creating your own,
  2. # and remove these comments. For more information, see 'man PKGBUILD'.
  3. # NOTE: Please fill out the license field for your package! If it is unknown,
  4. # then please put 'unknown'.
  5. # Maintainer: Your Name <youremail@domain.com>
  6. pkgname=vitali64-st-git
  7. pkgver=0.8.4
  8. pkgrel=1
  9. epoch=
  10. pkgdesc="Vitali64's fork of suckless' st made for apparently no reason!"
  11. arch=(i686 x86_64)
  12. url="https://gitlab.com/vitali64/dots/vitali64-st"
  13. license=('MIT')
  14. groups=()
  15. depends=(xorg-server)
  16. makedepends=(git)
  17. checkdepends=()
  18. optdepends=()
  19. provides=(st)
  20. conflicts=(st)
  21. replaces=(st)
  22. backup=()
  23. options=()
  24. install=
  25. changelog=
  26. source=("git+$url")
  27. noextract=()
  28. md5sums=()
  29. validpgpkeys=()
  30. pkgver() {
  31. cd "${_pkgname}"
  32. printf "0.8.4.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  33. }
  34. build() {
  35. cd vitali64-st
  36. make
  37. }
  38. package() {
  39. cd vitali64-st
  40. mkdir -p ${pkgdir}/opt/${pkgname}
  41. cp -rf * ${pkgdir}/opt/${pkgname}
  42. make PREFIX=/usr DESTDIR="${pkgdir}" install
  43. install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  44. install -Dm644 README "${pkgdir}/usr/share/doc/${pkgname}/README"
  45. }