Various compilation scripts & patches for Linux programs.
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.

44 lines
1.3 KiB

  1. # Maintainer: Jiachen Yang <farseerfc@gmail.com>
  2. # Contributor: Pekka Helenius <fincer89 [at] hotmail [dot] com>
  3. pkgname=pacvis-git
  4. _pkgname=pacvis
  5. pkgver=0.2.7.r2.g5bf30a0
  6. pkgrel=1
  7. pkgdesc="Visualize pacman local database using Vis.js, inspired by pacgraph"
  8. arch=('any')
  9. url="https://github.com/farseerfc/pacvis"
  10. license=('MIT')
  11. depends=('python-tornado' 'pyalpm' 'python-setuptools' 'systemd')
  12. makedepends=('git')
  13. source=("git+https://github.com/farseerfc/pacvis.git"
  14. patch_pacvis-service.patch)
  15. conflicts=("pacvis")
  16. sha512sums=('SKIP'
  17. '1a46680d9bb45d4782d23f14c142821adfa1487b9300828a9541b8954d8dc0b0d6d3ee97a4a609f7ce29a48a1a9c69e6eeb14005e6736bc025c98ac5407296ff')
  18. pkgver() {
  19. cd "$srcdir/$_pkgname"
  20. ( set -o pipefail
  21. git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
  22. printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  23. )
  24. }
  25. prepare() {
  26. cd "$srcdir/$_pkgname"
  27. patch -Np1 < ../patch_pacvis-service.patch
  28. }
  29. build () {
  30. cd "$srcdir/$_pkgname"
  31. python3 setup.py build
  32. }
  33. package () {
  34. cd "$srcdir/$_pkgname"
  35. python3 setup.py install --root="$pkgdir" -O1
  36. install -D -m644 "pacvis@.service" "${pkgdir}/usr/lib/systemd/system/pacvis@.service"
  37. }
  38. # vim:set ts=2 sw=2 et: