linux_alpine/srcpkgs/libsearpc/APKBUILD

40 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-01-31 02:45:17 +01:00
# Contributor: ITmodulo <itmodulo@disroot.org>
# Maintainer: ITmodulo <itmodulo@disroot.org>
pkgname="libsearpc"
pkgver=3.3.0
pkgrel=0
pkgdesc="A simple C language RPC framework (including both server side & client side)"
arch="all"
url="https://github.com/haiwen/libsearpc"
license="Apache-2.0"
depends="py3-gobject3 py3-simplejson"
makedepends="musl-dev jansson-dev py3-gobject3-dev glib-dev autoconf automake libtool pkgconf"
_pkgver="${pkgver%.*}-latest"
source="libsearpc-$_pkgver.tar.gz::$url/archive/v$_pkgver.tar.gz"
prepare () {
default_prepare
cd "$srcdir/$pkgname-$_pkgver"
sed -i 's|(DESTDIR)@prefix@|@prefix@|' './libsearpc.pc.in'
}
build () {
cd "$srcdir/$pkgname-$_pkgver"
./autogen.sh
./configure --prefix=/usr PYTHON='/usr/bin/python3'
make
}
check () {
cd "$srcdir/$pkgname-$_pkgver"
make check
}
package () {
cd "$srcdir/$pkgname-$_pkgver"
make DESTDIR="$pkgdir" install
}
sha512sums="
94213219d5fccec83f7fbbce72403430ca183b8b8e915b9b488e395966e4b3745e06cdfca627118e551b190f094fed2cb5d90ee46e8435dcf184c48a2bc301be libsearpc-3.3-latest.tar.gz
"