PKGBUILD 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Contributor: Aaron Lindsay <aaron@aclindsay.com>
  2. # Maintainer: Edvinas Valatka <edacval@gmail.com>
  3. pkgname=libsearpc
  4. pkgver=3.0.7
  5. pkgrel=2
  6. pkgdesc="A simple and easy-to-use C language RPC framework (including both server side & client side) based on GObject System."
  7. arch=('i686' 'x86_64' 'armv6h' 'armv7h')
  8. url="https://github.com/haiwen/libsearpc/"
  9. license=('GPLv3')
  10. depends=('glib2' 'pacman>=4.1' 'jansson' 'python2')
  11. optdepends=('python2-simplejson')
  12. options=('!makeflags')
  13. source=("libsearpc-v${pkgver}.tar.gz::https://github.com/haiwen/libsearpc/archive/v${pkgver}.tar.gz"
  14. "libsearpc.pc.patch")
  15. prepare () {
  16. cd "$srcdir/$pkgname-$pkgver"
  17. patch -p1 -i $srcdir/libsearpc.pc.patch
  18. }
  19. build () {
  20. cd "$srcdir/$pkgname-$pkgver"
  21. ./autogen.sh
  22. ./configure --prefix=/usr PYTHON=/usr/bin/python2
  23. make -j1
  24. }
  25. package () {
  26. cd "$srcdir/$pkgname-$pkgver"
  27. make DESTDIR="$pkgdir" install
  28. }
  29. sha256sums=('efee6b495f93e70101c87849c78b135014dfd2f0e5c08dcfed9834def47cb939'
  30. 'aec39a303aaebc0777a22d8c53367f52f619654d63f62b362d75c1c599e632f4')