Advertisement
Guest User

kimchi PKGBUILD

a guest
Jan 24th, 2020
503
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. # Maintainer: cr0mag <phillips.julian AT gmail DOT com>
  2. # Contributor: rafaelsoaresbr <rafaelsoaresbr@gmail.com>
  3. # Contributing: https://github.com/rafaelsoaresbr/pkgbuild
  4. # Builds: https://gitlab.com/rafaelsoaresbr/pkgbuild/builds
  5. # Contributor: Dis McCarthy <aurarch@sigkill.net>
  6. # Contributor: Stephan Conrad <stephan.conrad@gmail.com
  7.  
  8. pkgname=kimchi
  9. pkgver=3.0.0
  10. pkgrel=5
  11. pkgdesc="KVM management plugin for WoK."
  12. arch=(any)
  13. url="https://github.com/kimchi-project/kimchi"
  14. license=('LGPL' 'Apache')
  15. groups=('kimchi-project')
  16. depends=('libvirt-python'
  17. 'open-iscsi'
  18. 'nfs-utils'
  19. 'python-paramiko'
  20. 'python-pillow'
  21. 'python-ipaddr'
  22. 'python-magic'
  23. 'python-configobj'
  24. 'python-pyparted'
  25. 'python-ethtool'
  26. 'novnc'
  27. 'libguestfs'
  28. 'spice-html5-git'
  29. 'wokd'
  30. )
  31. #optdepends=()
  32. makedepends=('git' 'libxslt')
  33. #checkdepends=()
  34. conflicts=('kimchi-git')
  35.  
  36. # User files that should be saved. They are kept as Pacnew and Pacsave Files
  37. backup=('etc/wok/plugins.d/kimchi.conf')
  38.  
  39. source=('https://github.com/kimchi-project/'${pkgname}'/archive/'${pkgver}'.tar.gz')
  40.  
  41. sha256sums=('feef8c324831e1b66173da0041fc4e512a140c67c35f89d20edb80df916b21ad')
  42.  
  43. build() {
  44. cd "$srcdir/${pkgname}-${pkgver}"
  45. ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var PYTHON=/usr/bin/python3
  46. #PYTHON=/usr/bin/python2 ./autogen.sh --system && make
  47. }
  48.  
  49. package() {
  50. cd "$srcdir/${pkgname}-${pkgver}"
  51. make DESTDIR=$pkgdir install
  52. cd $pkgdir/etc/systemd/system/wokd.service.d
  53. sed s:wokd.service::g kimchi.conf > kimchi.conf.new
  54. mv kimchi.conf.new kimchi.conf
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement