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.2 KiB

  1. # Maintainer: Pekka Helenius <fincer89 [at] hotmail [dot] com>
  2. # Contributor: Jiachen Yang <farseerfc@gmail.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=(
  14. 'git+https://github.com/farseerfc/pacvis.git'
  15. 'patch_pacvis-service.patch'
  16. )
  17. conflicts=("pacvis")
  18. sha512sums=('SKIP'
  19. '1a46680d9bb45d4782d23f14c142821adfa1487b9300828a9541b8954d8dc0b0d6d3ee97a4a609f7ce29a48a1a9c69e6eeb14005e6736bc025c98ac5407296ff')
  20. pkgver() {
  21. cd "${srcdir}/${_pkgname}"
  22. ( set -o pipefail
  23. git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
  24. printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  25. )
  26. }
  27. prepare() {
  28. cd "${srcdir}/${_pkgname}"
  29. patch -Np1 < ../patch_pacvis-service.patch
  30. }
  31. build () {
  32. cd "${srcdir}/${_pkgname}"
  33. python3 setup.py build
  34. }
  35. package () {
  36. cd "${srcdir}/${_pkgname}"
  37. python3 setup.py install --root="${pkgdir}" -O1
  38. install -D -m644 "pacvis@.service" "${pkgdir}/usr/lib/systemd/system/pacvis@.service"
  39. }