From d0eeea51f474d23191c628f7154f5986217f2a98 Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Wed, 15 Jan 2014 13:23:05 -0500 Subject: [PATCH] Separate out configuration function, configure in pkgver() --- PKGBUILD | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 6d20623..e766f0e 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -8,7 +8,7 @@ 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=1 +pkgrel=2 # 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." @@ -42,8 +42,14 @@ source=("https://github.com/haiwen/libsearpc/archive/v${_seafilever}.tar.gz" sha256sums=('c0e7cc812c642ebb1339c3701570e78ff5b8c8aa2a521e5a505e28d9666e89ec' 'aec39a303aaebc0777a22d8c53367f52f619654d63f62b362d75c1c599e632f4') +configure_libsearpc() { + ./autogen.sh + ./configure --prefix=/usr PYTHON=/usr/bin/python2 +} + pkgver() { cd "$srcdir/$pkgname-$_seafilever" + configure_libsearpc &> /dev/null grep "PACKAGE_VERSION" Makefile | sed 's/PACKAGE_VERSION.*=[ \t]\+\([0-9\.]\+\)[ \t]*/\1/g' } @@ -55,8 +61,7 @@ prepare () { build () { cd "$srcdir/$pkgname-$_seafilever" - ./autogen.sh - ./configure --prefix=/usr PYTHON=/usr/bin/python2 + configure_libsearpc make -j1 }