My patched version of suckless' terminal - st.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.3 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  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: Marten Kante <tiyn@martenkante.eu>
  6. pkgname=st-tiyn-git
  7. pkgver=0.8.2
  8. pkgrel=1
  9. epoch=
  10. pkgdesc="This is the st build of tiyn. It includes a bunch of patches."
  11. arch=('x86_64' 'i686')
  12. url="https://github.com/tiyn/st"
  13. license=('MIT')
  14. groups=()
  15. depends=('libxft-bgra')
  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=("${pkgname}::git+$url")
  27. noextract=()
  28. md5sums=('SKIP')
  29. validpgpkeys=()
  30. pkgver() {
  31. cd "${pkgname}"
  32. ( set -o pipefail
  33. git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
  34. printf "0.8.2.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")
  35. }
  36. build() {
  37. cd "${pkgname}"
  38. make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
  39. }
  40. package() {
  41. cd "${pkgname}"
  42. mkdir -p ${pkgdir}/opt/${pkgname}
  43. cp -rf * ${pkgdir}/opt/${pkgname}
  44. make PREFIX=/usr DESTDIR="${pkgdir}" install
  45. install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  46. install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
  47. }