linux_alpine/srcpkgs/libsearpc/APKBUILD
itmodulo fa3da9eeb0
Some checks failed
Release Alpine apk for ARM64v8 / compilation-arm64v8 (push) Has been cancelled
Fix libsearpc add subpackage -pyc
2024-01-31 12:12:06 +01:00

41 lines
1.1 KiB
Plaintext

# 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"
subpackages="$pkgname-pyc"
_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
"