void-packages/srcpkgs/rpcsvc-proto/template
2019-07-07 12:27:11 +02:00

25 lines
840 B
Bash

# Template file for 'rpcsvc-proto'
pkgname=rpcsvc-proto
version=1.4
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.gz"
checksum=867e46767812784d8dda6d8d931d6fabb30168abb02d87a2a205be6d5a2934a7
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
}