PKGBUILD 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # Maintainer: Moritz Maxeiner <moritz@ucworks.org>
  2. # Contributor: Aaron Lindsay <aaron@aclindsay.com>
  3. # Name of the Software your PKGBUILD will install - should be unique. See PKGBUILD#pkgname
  4. pkgname=libsearpc
  5. # The version number for the software
  6. pkgver=1.2.2
  7. _seafilever=3.0-latest
  8. #The release number for the arch package, as fixes are added to the PKGBUILD, the release number will increase
  9. pkgrel=9
  10. # The description of the package, should be about 80 characters long (one line)
  11. pkgdesc="A simple and easy-to-use C language RPC framework (including both server side & client side) based on GObject System."
  12. # The type of processor this software can build and work on. See PKGBUILD#arch
  13. arch=('i686' 'x86_64' 'armv6h' 'armv7h')
  14. # The official website for the software your PKGBUILD will install
  15. url="https://github.com/haiwen/libsearpc/"
  16. # The License that the software is released under. See PKGBUILD#license
  17. license=('GPLv3')
  18. # Packages that your software needs to run. If the dependancy requires a minimum version number use the >= operator
  19. depends=('glib2>=2.16.0' 'pacman>=4.1' 'jansson>=2.2.1' 'libtool>=1.4' 'python2')
  20. # Packages that must be installed to build the software, but at not necessary to run it
  21. makedepends=()
  22. # Optional packages that extend the software's functionality
  23. optdepends=('python2-simplejson')
  24. # List of Package names that this PKGBUILD provides. Put modified packages that will be installed here.
  25. provides=()
  26. # Change the default behavior of makepkg see PKGBUILD#options
  27. options=()
  28. source=("https://github.com/haiwen/libsearpc/archive/v${_seafilever}.tar.gz"
  29. "libsearpc.pc.patch")
  30. configure_libsearpc() {
  31. ./autogen.sh
  32. ./configure --prefix=/usr PYTHON=/usr/bin/python2
  33. }
  34. pkgver() {
  35. cd "$srcdir/$pkgname-$_seafilever"
  36. configure_libsearpc &> /dev/null
  37. grep "PACKAGE_VERSION" Makefile | sed 's/PACKAGE_VERSION.*=[ \t]\+\([0-9\.]\+\)[ \t]*/\1/g'
  38. }
  39. prepare () {
  40. pkgver
  41. cd "$srcdir/$pkgname-$_seafilever"
  42. patch -p1 -i $srcdir/libsearpc.pc.patch
  43. }
  44. build () {
  45. cd "$srcdir/$pkgname-$_seafilever"
  46. configure_libsearpc
  47. make -j1
  48. }
  49. package () {
  50. #install library and header files
  51. cd "$srcdir/$pkgname-$_seafilever"
  52. make DESTDIR="$pkgdir/" install
  53. }
  54. sha256sums=('56313771e0ad7dc075c4590b6a75daeb3939937b21716d82c91be2612133b8cd'
  55. 'aec39a303aaebc0777a22d8c53367f52f619654d63f62b362d75c1c599e632f4')