Advertisement
Guest User

PKGBUILD

a guest
Feb 13th, 2014
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. # Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
  2. # Contributor: Iwan Timmer <irtimmer@gmail.com>
  3.  
  4. pkgname=cockpit-git
  5. pkgver=r129.0f43e52
  6. pkgrel=1
  7. pkgdesc='a user interface for Linux servers'
  8. arch=(i686 x86_64)
  9. url='http://www.cockpit-project.org/'
  10. license=(GPL21)
  11. depends=(libssh krb5 sshpass accountsservice perl-json udisks2 json-glib)
  12. makedepends=(git intltool python2-pyscss gtk-doc perl-javascript-minifier-xs gobject-introspection networkmanager storaged)
  13. optdepends=('networkmanager: network support'
  14. 'storaged: lvm/raid support')
  15. source=(git://github.com/cockpit-project/cockpit
  16. cockpit.pam)
  17. sha1sums=('SKIP'
  18. 'ddade6e01627e42dabaf0f4e905d13904fca6d3b')
  19.  
  20. pkgver() {
  21. cd cockpit
  22. echo r$(git rev-list --count master).$(git rev-parse --short master)
  23. }
  24.  
  25. prepare() {
  26. cd cockpit
  27.  
  28. # Use python2 instead of python3
  29. sed 's/python/python2/g' -i src/web/sassify-jqm
  30. }
  31.  
  32. build() {
  33. cd cockpit
  34.  
  35. # Build failed with --as-needed
  36. export LDFLAGS="${LDFLAGS//,--as-needed}"
  37.  
  38. ./autogen.sh
  39. ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc
  40. make
  41. }
  42.  
  43. check() {
  44. cd cockpit
  45. make check
  46. }
  47.  
  48. package() {
  49. cd cockpit
  50. make DESTDIR="$pkgdir" install
  51.  
  52. # Overwrite cockpit pam file with ArchLinux supported pam file
  53. cp ../cockpit.pam $pkgdir/etc/pam
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement