PKGBUILD 916 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Maintainer: Your Name <vitali64pmemail@protonmail.com>
  2. pkgname=saurch-git
  3. pkgver=r4.36a9cdb
  4. pkgrel=1
  5. pkgdesc="Small AUR Command Helper"
  6. arch=('any')
  7. url="http://vitali64.duckdns.org/?p=utils/saurch.git"
  8. license=('GPL')
  9. groups=()
  10. depends=('python' 'git')
  11. makedepends=()
  12. provides=("${pkgname}")
  13. conflicts=()
  14. replaces=()
  15. backup=()
  16. options=()
  17. install=
  18. source=('git+http://vitali64.duckdns.org/git/utils/saurch.git')
  19. noextract=()
  20. md5sums=('SKIP')
  21. # Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
  22. # a description of each element in the source array.
  23. pkgver() {
  24. cd "$srcdir/${pkgname%-git}"
  25. # Git, no tags available
  26. printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  27. }
  28. #build() {
  29. # cd "$srcdir/${pkgname%-git}"
  30. # pip install build
  31. # python -m build
  32. #}
  33. package() {
  34. cd "$srcdir/${pkgname%-git}"
  35. python3 setup.py install --root="${pkgdir}/" --optimize=1
  36. }