PKGBUILD 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Maintainer: Alexander Rosenberg <zanderpkg at pm dot me>
  2. pkgname=dmenu
  3. pkgver=5.2
  4. pkgrel=1
  5. pkgdesc='Dynamic menu for X, originally designed for dwm'
  6. url='https://tools.suckless.org/dmenu/'
  7. arch=('x86_64')
  8. license=('MIT')
  9. depends=('libx11')
  10. source=('dmenu.c'
  11. 'arg.h'
  12. 'drw.h'
  13. 'drw.c'
  14. 'util.h'
  15. 'util.c'
  16. 'dmenu.1'
  17. 'stest.c'
  18. 'stest.1'
  19. 'dmenu_run'
  20. 'dmenu_path'
  21. 'LICENSE'
  22. 'README.md'
  23. 'Makefile'
  24. 'config.h'
  25. 'config.mk')
  26. sha256sums=('SKIP'
  27. 'SKIP'
  28. 'SKIP'
  29. 'SKIP'
  30. 'SKIP'
  31. 'SKIP'
  32. 'SKIP'
  33. 'SKIP'
  34. 'SKIP'
  35. 'SKIP'
  36. 'SKIP'
  37. 'SKIP'
  38. 'SKIP'
  39. 'SKIP'
  40. 'SKIP'
  41. 'SKIP')
  42. pkgver(){
  43. grep -E '^VERSION' config.mk | cut -c11-
  44. }
  45. build() {
  46. cp config.h config.def.h
  47. cp config.mk config.def.mk
  48. make
  49. }
  50. package() {
  51. make DESTDIR="$pkgdir" PREFIX='/usr' install
  52. install -m 0644 -Dt "$pkgdir/usr/share/doc/dmenu" 'README.md'
  53. install -m 0644 -Dt "$pkgdir/usr/share/licenses/dmenu" 'LICENSE'
  54. }