2013-02-01 07:30:03 -05:00
|
|
|
# Maintainer: Aaron Lindsay <aaron@aclindsay.com>
|
|
|
|
|
|
|
|
# Name of the Software your PKGBUILD will install - should be unique. See PKGBUILD#pkgname
|
|
|
|
pkgname=libsearpc
|
|
|
|
|
|
|
|
# The version number for the software
|
2013-08-20 17:32:27 -04:00
|
|
|
pkgver=1.1.0 #Should match `grep "PACKAGE_VERSION" libsearpc/Makefile`
|
2013-10-31 19:58:53 -04:00
|
|
|
_seafilever=2.0.5
|
2013-02-01 07:30:03 -05:00
|
|
|
|
|
|
|
#The release number for the arch package, as fixes are added to the PKGBUILD, the release number will increase
|
2013-10-31 19:58:53 -04:00
|
|
|
pkgrel=8
|
2013-02-01 07:30:03 -05:00
|
|
|
|
|
|
|
# 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."
|
|
|
|
|
|
|
|
# The type of processor this software can build and work on. See PKGBUILD#arch
|
2013-07-20 13:46:27 -04:00
|
|
|
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
|
2013-02-01 07:30:03 -05:00
|
|
|
|
|
|
|
# The official website for the software your PKGBUILD will install
|
|
|
|
url="https://github.com/haiwen/libsearpc/"
|
|
|
|
|
|
|
|
# The License that the software is released under. See PKGBUILD#license
|
|
|
|
license=('GPLv3')
|
|
|
|
|
|
|
|
# Packages that your software needs to run. If the dependancy requires a minimum version number use the >= operator
|
2013-04-05 10:38:02 -04:00
|
|
|
depends=('glib2>=2.16.0' 'pacman>=4.1')
|
2013-02-01 07:30:03 -05:00
|
|
|
|
|
|
|
# Packages that must be installed to build the software, but at not necessary to run it
|
|
|
|
makedepends=('python2-simplejson')
|
|
|
|
|
|
|
|
# Optional packages that extend the software's functionality
|
|
|
|
optdepends=('python2-simplejson')
|
|
|
|
|
|
|
|
# List of Package names that this PKGBUILD provides. Put modified packages that will be installed here.
|
|
|
|
provides=()
|
|
|
|
|
|
|
|
# Change the default behavior of makepkg see PKGBUILD#options
|
|
|
|
options=
|
|
|
|
|
2013-10-31 19:58:53 -04:00
|
|
|
source=("https://github.com/haiwen/libsearpc/archive/v${_seafilever}.tar.gz"
|
2013-04-04 07:45:44 -04:00
|
|
|
"libsearpc.pc.patch")
|
2013-10-31 19:58:53 -04:00
|
|
|
sha256sums=('8f6dd5b02d30aac28b2041a9c9bf2c41b3a149589c6eabc2a2743f352a37cad0'
|
2013-04-04 07:45:44 -04:00
|
|
|
'aec39a303aaebc0777a22d8c53367f52f619654d63f62b362d75c1c599e632f4')
|
|
|
|
|
|
|
|
prepare () {
|
2013-10-31 19:58:53 -04:00
|
|
|
cd "$srcdir/libsearpc-$_seafilever"
|
2013-04-04 07:45:44 -04:00
|
|
|
patch -p1 -i $srcdir/libsearpc.pc.patch
|
|
|
|
}
|
2013-02-01 07:30:03 -05:00
|
|
|
|
|
|
|
build () {
|
2013-10-31 19:58:53 -04:00
|
|
|
cd "$srcdir/libsearpc-$_seafilever"
|
|
|
|
./autogen.sh
|
2013-02-01 07:30:03 -05:00
|
|
|
./configure --prefix=/usr PYTHON=/usr/bin/python2
|
2013-02-26 09:21:49 -05:00
|
|
|
make -j1
|
2013-02-01 07:30:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
package () {
|
|
|
|
#install library and header files
|
2013-10-31 19:58:53 -04:00
|
|
|
cd "$srcdir/libsearpc-$_seafilever"
|
2013-02-01 07:30:03 -05:00
|
|
|
make DESTDIR="$pkgdir/" install
|
|
|
|
}
|