diff --git a/PKGBUILD b/PKGBUILD index f350d83..6d20623 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,11 +4,11 @@ pkgname=libsearpc # The version number for the software -pkgver=1.1.0 #Should match `grep "PACKAGE_VERSION" libsearpc/Makefile` -_seafilever=2.0.8 +pkgver=1.2.1 +_seafilever=2.1.1 #The release number for the arch package, as fixes are added to the PKGBUILD, the release number will increase -pkgrel=9 +pkgrel=1 # The description of the package, should be about 80 characters long (one line) pkgdesc="A simple and easy-to-use C language RPC framework (including both server side & client side) based on GObject System." @@ -23,7 +23,7 @@ url="https://github.com/haiwen/libsearpc/" license=('GPLv3') # Packages that your software needs to run. If the dependancy requires a minimum version number use the >= operator -depends=('glib2>=2.16.0' 'pacman>=4.1') +depends=('glib2>=2.16.0' 'pacman>=4.1' 'jansson>=2.2.1') # Packages that must be installed to build the software, but at not necessary to run it makedepends=('python2-simplejson') @@ -39,16 +39,22 @@ options= source=("https://github.com/haiwen/libsearpc/archive/v${_seafilever}.tar.gz" "libsearpc.pc.patch") -sha256sums=('dc876fcc1dbe03ddb6e1f7f27266def321178f5d7a1500999b1c896abee951d0' +sha256sums=('c0e7cc812c642ebb1339c3701570e78ff5b8c8aa2a521e5a505e28d9666e89ec' 'aec39a303aaebc0777a22d8c53367f52f619654d63f62b362d75c1c599e632f4') +pkgver() { + cd "$srcdir/$pkgname-$_seafilever" + grep "PACKAGE_VERSION" Makefile | sed 's/PACKAGE_VERSION.*=[ \t]\+\([0-9\.]\+\)[ \t]*/\1/g' +} + prepare () { - cd "$srcdir/libsearpc-$_seafilever" + pkgver + cd "$srcdir/$pkgname-$_seafilever" patch -p1 -i $srcdir/libsearpc.pc.patch } build () { - cd "$srcdir/libsearpc-$_seafilever" + cd "$srcdir/$pkgname-$_seafilever" ./autogen.sh ./configure --prefix=/usr PYTHON=/usr/bin/python2 make -j1 @@ -56,6 +62,6 @@ build () { package () { #install library and header files - cd "$srcdir/libsearpc-$_seafilever" + cd "$srcdir/$pkgname-$_seafilever" make DESTDIR="$pkgdir/" install }