PKGBUILD 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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=ccnet
  5. # The version number for the software
  6. pkgver=1.4.2
  7. _seafilever=4.3.1
  8. #The release number for the arch package, as fixes are added to the PKGBUILD, the release number will increase
  9. pkgrel=13
  10. # The description of the package, should be about 80 characters long (one line)
  11. pkgdesc="A framework for writing networked applications in C."
  12. # The type of processor this software can build and work on. See PKGBUILD#arch
  13. arch=('i686' 'x86_64' 'armv7h' 'armv6h')
  14. # The official website for the software your PKGBUILD will install
  15. url="https://github.com/haiwen/ccnet/"
  16. # The License that the software is released under. See PKGBUILD#license
  17. license=('custom')
  18. # Packages that your software needs to run. If the dependancy requires a minimum version number use the >= operator
  19. depends=('libevent>=2.0' 'libzdb>=2.10.2' 'libsearpc>=1.2.2' 'jansson>=2.2.1' 'libldap' 'python2>=2.6')
  20. # Packages that must be installed to build the software, but at not necessary to run it
  21. makedepends=('vala>=0.8' 'pacman>=4.1')
  22. # Optional packages that extend the software's functionality
  23. optdepends=()
  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/ccnet/archive/v${_seafilever}.tar.gz"
  29. "https://raw.githubusercontent.com/haiwen/ccnet/master/COPYRIGHT"
  30. "libccnet.pc.patch"
  31. "0001-Add-autoconfiguration-for-libjansson.patch")
  32. configure_ccnet() {
  33. ./autogen.sh
  34. CFLAGS="-lpthread" ./configure --enable-server --enable-ldap --prefix=/usr PYTHON=/usr/bin/python2
  35. }
  36. pkgver() {
  37. cd "$srcdir/$pkgname-$_seafilever"
  38. configure_ccnet &> /dev/null
  39. grep "PACKAGE_VERSION" Makefile | sed 's/PACKAGE_VERSION.*=[ \t]\+\([0-9\.]\+\)[ \t]*/\1/g'
  40. }
  41. prepare () {
  42. cd "$srcdir/$pkgname-$_seafilever"
  43. patch -p1 -i $srcdir/libccnet.pc.patch
  44. patch -p1 -i $srcdir/0001-Add-autoconfiguration-for-libjansson.patch
  45. }
  46. build () {
  47. cd "$srcdir/$pkgname-$_seafilever"
  48. configure_ccnet
  49. make -j1
  50. }
  51. package () {
  52. #install library and header files
  53. cd "$srcdir/$pkgname-$_seafilever"
  54. make DESTDIR="$pkgdir/" install
  55. #copy license over
  56. mkdir -p $pkgdir/usr/share/licenses/$pkgname
  57. cp $srcdir/COPYRIGHT $pkgdir/usr/share/licenses/$pkgname/
  58. }
  59. sha256sums=('9e70690e1c91d0936b95ca22951ef67d7c4d9f6af8607ad4a8bda9c4273d6184'
  60. 'c07aeccf581c255e60acbddcc6af90290e0d6354e6ec0ee1987b82845d3d57ac'
  61. '66c3b02c3981db6a80819e0ae103bedadf8dfdf81405a7f75a9cba714acf973f'
  62. '382b1da33e2b6c0ebab8d3921d92b7417fa11d969ad822cd43aee499fd7b3d94')