PKGBUILD 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # $Id$
  2. # Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
  3. # Maintainer (Arch): Sergej Pupykin <pupykin.s+arch@gmail.com>
  4. # Maintainer (Arch): Judd Vinet <jvinet@zeroflux.org>
  5. # Contributor (Arch): Giovanni Scafora <giovanni@archlinux.org>
  6. _pkgname=distcc
  7. pkgname=distcc-nozeroconf
  8. pkgver=3.2rc1
  9. pkgrel=2
  10. pkgdesc="A distributed C, C++, Obj C compiler"
  11. arch=('i686' 'x86_64' 'armv7h')
  12. url="https://github.com/distcc/distcc"
  13. license=('GPL')
  14. depends=('gcc' 'popt')
  15. makedepends=('gtk2' 'pkgconfig' 'python2')
  16. optdepends=('gtk2: for distccmon-gnome'
  17. 'python2')
  18. backup=('etc/conf.d/distccd'
  19. 'etc/distcc/hosts')
  20. source=(https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2
  21. distccd.conf.d
  22. distccd.service)
  23. md5sums=('18cd4f33f5cfc3e75675cafc568fb9cf'
  24. '239aae53250e3e35288cba566bc0bbf1'
  25. '09f0688da9c1840e518d2593bd5c3830')
  26. pkgdesc+=" (without zeroconf support)"
  27. provides=("$_pkgname=$pkgver")
  28. conflicts=("$_pkgname")
  29. build() {
  30. cd "${srcdir}/${_pkgname}-${pkgver}"
  31. [ -f Makefile ] || PYTHON=/usr/bin/python2 ./configure --prefix=/usr \
  32. --with-gtk \
  33. --sysconfdir=/etc \
  34. --mandir=/usr/share/man \
  35. --without-avahi \
  36. --enable-rfc2553
  37. make WERROR_CFLAGS= INCLUDESERVER_PYTHON=/usr/bin/python2
  38. }
  39. check() {
  40. cd "${srcdir}/${_pkgname}-${pkgver}"
  41. # make TEST_PYTHON=/usr/bin/python2 check
  42. }
  43. package() {
  44. cd "${srcdir}/${_pkgname}-${pkgver}"
  45. make DESTDIR="${pkgdir}/" INCLUDESERVER_PYTHON=/usr/bin/python2 install
  46. install -D -m644 "$srcdir"/distccd.conf.d "$pkgdir"/etc/conf.d/distccd
  47. install -d "$pkgdir"/usr/lib/${_pkgname}/bin
  48. ln -sf /usr/bin/${_pkgname} "$pkgdir"/usr/lib/${_pkgname}/bin/cc
  49. ln -sf /usr/bin/${_pkgname} "$pkgdir"/usr/lib/${_pkgname}/bin/gcc
  50. ln -sf /usr/bin/${_pkgname} "$pkgdir"/usr/lib/${_pkgname}/bin/g++
  51. ln -sf /usr/bin/${_pkgname} "$pkgdir"/usr/lib/${_pkgname}/bin/c++
  52. ln -sf /usr/bin/${_pkgname} "$pkgdir"/usr/lib/${_pkgname}/bin/cpp
  53. install -Dm0644 "$srcdir"/distccd.service $pkgdir/usr/lib/systemd/system/distccd.service
  54. }