PPKGBUILD 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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: Anas Elgarhy <anas.elgarhy.dev@gmail.com>
  6. pkgname=jls
  7. pkgver=0.3.0
  8. pkgrel=1
  9. epoch=
  10. pkgdesc="A modern ls with java."
  11. arch=('any')
  12. url="https://github.com/Anas-Elgarhy/jls"
  13. license=('GPL')
  14. groups=('java-utils')
  15. depends=('jdk-openjdk' 'nerd-fonts-fira-code')
  16. makedepends=()
  17. checkdepends=()
  18. optdepends=()
  19. provides=()
  20. conflicts=()
  21. replaces=(jls)
  22. backup=()
  23. options=()
  24. install=
  25. changelog=
  26. source=("https://github.com/Anas-Elgarhy/jls/releases/download/$pkgver/$pkgname-$pkgver.tar.gz")
  27. noextract=()
  28. md5sums=()
  29. validpgpkeys=()
  30. prepare() {
  31. cd "$pkgname-$pkgver"
  32. patch -p1 -i "$srcdir/$pkgname-$pkgver.patch"
  33. }
  34. build() {
  35. cd "$pkgname-$pkgver"
  36. ./configure --prefix=/usr
  37. make
  38. }
  39. check() {
  40. cd "$pkgname-$pkgver"
  41. make -k check
  42. }
  43. package() {
  44. cd "$pkgname-$pkgver"
  45. make DESTDIR="$pkgdir/" install
  46. }