26 lines
842 B
Bash
26 lines
842 B
Bash
# Template file for 'rpcsvc-proto'
|
|
pkgname=rpcsvc-proto
|
|
version=1.4.1
|
|
revision=1
|
|
build_style=gnu-configure
|
|
short_desc="Rpcsvc protocol definitions from glibc"
|
|
maintainer="svenper <svenper@tuta.io>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://github.com/thkukuk/rpcsvc-proto"
|
|
changelog="https://raw.githubusercontent.com/thkukuk/rpcsvc-proto/master/ChangeLog"
|
|
distfiles="https://github.com/thkukuk/rpcsvc-proto/releases/download/v${version}/rpcsvc-proto-${version}.tar.xz"
|
|
checksum=9429e143bb8dd33d34bf0663f571d4d4a1103e1afd7c49791b367b7ae1ef7f35
|
|
|
|
pre_build() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
make -C rpcgen CC=${CC_host} CFLAGS="${XBPS_CFLAGS}" LDFLAGS="${XBPS_LDFLAGS}"
|
|
cp rpcgen/rpcgen rpcgen/rpcgen-host
|
|
make -C rpcgen clean
|
|
sed -i -e 's!rpcgen/rpcgen!rpcgen/rpcgen-host!' rpcsvc/Makefile.in
|
|
fi
|
|
}
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|