1
0

Update to 1.2.1, add pkgver function

This commit is contained in:
Aaron Lindsay 2014-01-15 13:06:34 -05:00
parent ed4a32d60a
commit 713636e836

View File

@ -4,11 +4,11 @@
pkgname=libsearpc pkgname=libsearpc
# The version number for the software # The version number for the software
pkgver=1.1.0 #Should match `grep "PACKAGE_VERSION" libsearpc/Makefile` pkgver=1.2.1
_seafilever=2.0.8 _seafilever=2.1.1
#The release number for the arch package, as fixes are added to the PKGBUILD, the release number will increase #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) # 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." 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') license=('GPLv3')
# Packages that your software needs to run. If the dependancy requires a minimum version number use the >= operator # 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 # Packages that must be installed to build the software, but at not necessary to run it
makedepends=('python2-simplejson') makedepends=('python2-simplejson')
@ -39,16 +39,22 @@ options=
source=("https://github.com/haiwen/libsearpc/archive/v${_seafilever}.tar.gz" source=("https://github.com/haiwen/libsearpc/archive/v${_seafilever}.tar.gz"
"libsearpc.pc.patch") "libsearpc.pc.patch")
sha256sums=('dc876fcc1dbe03ddb6e1f7f27266def321178f5d7a1500999b1c896abee951d0' sha256sums=('c0e7cc812c642ebb1339c3701570e78ff5b8c8aa2a521e5a505e28d9666e89ec'
'aec39a303aaebc0777a22d8c53367f52f619654d63f62b362d75c1c599e632f4') 'aec39a303aaebc0777a22d8c53367f52f619654d63f62b362d75c1c599e632f4')
pkgver() {
cd "$srcdir/$pkgname-$_seafilever"
grep "PACKAGE_VERSION" Makefile | sed 's/PACKAGE_VERSION.*=[ \t]\+\([0-9\.]\+\)[ \t]*/\1/g'
}
prepare () { prepare () {
cd "$srcdir/libsearpc-$_seafilever" pkgver
cd "$srcdir/$pkgname-$_seafilever"
patch -p1 -i $srcdir/libsearpc.pc.patch patch -p1 -i $srcdir/libsearpc.pc.patch
} }
build () { build () {
cd "$srcdir/libsearpc-$_seafilever" cd "$srcdir/$pkgname-$_seafilever"
./autogen.sh ./autogen.sh
./configure --prefix=/usr PYTHON=/usr/bin/python2 ./configure --prefix=/usr PYTHON=/usr/bin/python2
make -j1 make -j1
@ -56,6 +62,6 @@ build () {
package () { package () {
#install library and header files #install library and header files
cd "$srcdir/libsearpc-$_seafilever" cd "$srcdir/$pkgname-$_seafilever"
make DESTDIR="$pkgdir/" install make DESTDIR="$pkgdir/" install
} }