summaryrefslogtreecommitdiffstats
path: root/testing/libsearpc
diff options
context:
space:
mode:
authorxming <xmingske@gmail.com>2014-10-23 07:36:33 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2014-10-23 10:19:13 +0200
commit7de8d9ff9b75149b73240dbf634fd5ce04865846 (patch)
tree53ff8cec614af176cf3e245a4664a9ad5e303be0 /testing/libsearpc
parent391ed7e3f38ef678dcc3fed87de1352a1ad98bfb (diff)
downloadaports-7de8d9ff9b75149b73240dbf634fd5ce04865846.tar.bz2
aports-7de8d9ff9b75149b73240dbf634fd5ce04865846.tar.xz
testing/libsearpc: new aport
A simple and easy-to-use C language RPC framework https://github.com/haiwen/libsearpc/
Diffstat (limited to 'testing/libsearpc')
-rw-r--r--testing/libsearpc/APKBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/testing/libsearpc/APKBUILD b/testing/libsearpc/APKBUILD
new file mode 100644
index 000000000..ae29d8d7f
--- /dev/null
+++ b/testing/libsearpc/APKBUILD
@@ -0,0 +1,55 @@
+# Contributor: <xmingske@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libsearpc
+pkgver=3.0.6
+pkgrel=0
+pkgdesc="A simple and easy-to-use C language RPC framework"
+url="https://github.com/haiwen/libsearpc/"
+arch="all"
+license="LGPL2.1"
+makedepends="autoconf automake bash glib-dev jansson-dev libtool python-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/haiwen/libsearpc/archive/v3.0-latest.tar.gz"
+subpackages="$pkgname-dev py-$pkgname:py"
+
+_builddir="${srcdir}"/${pkgname}-3.0-latest
+
+prepare() {
+ local pf
+ cd "${_builddir}"
+ for pf in $source; do
+ case $pf in
+ *.patch) msg $pf; patch -p1 -i "$srcdir"/${pf} || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "${_builddir}"
+ ./autogen.sh
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make || return 1
+}
+
+package() {
+ cd "${_builddir}"
+ make DESTDIR="${pkgdir}" install || return 1
+ rm "${pkgdir}"/usr/lib/libsearpc.la
+ echo ${pkgdir}/usr/lib/pkgconfig/libsearpc.pc
+ sed -i -e 's/(DESTDIR)//' "${pkgdir}"/usr/lib/pkgconfig/libsearpc.pc
+ sed -i -e 's/prefix=.*/prefix=\/usr/' "${pkgdir}"/usr/lib/pkgconfig/libsearpc.pc
+}
+
+py() {
+ arch="noarch"
+ cd "$_builddir"
+ pkgdesc="$pkgname python bindings"
+ install -d "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
+}
+md5sums="32a6eaafe16d8c0c0e320b4a08a4d8f6 libsearpc-3.0.6.tar.gz"
+sha256sums="56313771e0ad7dc075c4590b6a75daeb3939937b21716d82c91be2612133b8cd libsearpc-3.0.6.tar.gz"
+sha512sums="f5706d5490eb6abd05a25963ae204b358e7ebdcf153ab4bfe76819fd4538f1a957d7eaf84d8e60e076d978f9c1605adb2e6ec7ded55950c551304eb7665b15e8 libsearpc-3.0.6.tar.gz"