Separate out configuration function, configure in pkgver()
This commit is contained in:
parent
713636e836
commit
d0eeea51f4
11
PKGBUILD
11
PKGBUILD
@ -8,7 +8,7 @@ pkgver=1.2.1
|
|||||||
_seafilever=2.1.1
|
_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=1
|
pkgrel=2
|
||||||
|
|
||||||
# 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."
|
||||||
@ -42,8 +42,14 @@ source=("https://github.com/haiwen/libsearpc/archive/v${_seafilever}.tar.gz"
|
|||||||
sha256sums=('c0e7cc812c642ebb1339c3701570e78ff5b8c8aa2a521e5a505e28d9666e89ec'
|
sha256sums=('c0e7cc812c642ebb1339c3701570e78ff5b8c8aa2a521e5a505e28d9666e89ec'
|
||||||
'aec39a303aaebc0777a22d8c53367f52f619654d63f62b362d75c1c599e632f4')
|
'aec39a303aaebc0777a22d8c53367f52f619654d63f62b362d75c1c599e632f4')
|
||||||
|
|
||||||
|
configure_libsearpc() {
|
||||||
|
./autogen.sh
|
||||||
|
./configure --prefix=/usr PYTHON=/usr/bin/python2
|
||||||
|
}
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd "$srcdir/$pkgname-$_seafilever"
|
cd "$srcdir/$pkgname-$_seafilever"
|
||||||
|
configure_libsearpc &> /dev/null
|
||||||
grep "PACKAGE_VERSION" Makefile | sed 's/PACKAGE_VERSION.*=[ \t]\+\([0-9\.]\+\)[ \t]*/\1/g'
|
grep "PACKAGE_VERSION" Makefile | sed 's/PACKAGE_VERSION.*=[ \t]\+\([0-9\.]\+\)[ \t]*/\1/g'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -55,8 +61,7 @@ prepare () {
|
|||||||
|
|
||||||
build () {
|
build () {
|
||||||
cd "$srcdir/$pkgname-$_seafilever"
|
cd "$srcdir/$pkgname-$_seafilever"
|
||||||
./autogen.sh
|
configure_libsearpc
|
||||||
./configure --prefix=/usr PYTHON=/usr/bin/python2
|
|
||||||
make -j1
|
make -j1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user