void-packages/srcpkgs/perl-Socket6/template

26 lines
806 B
Bash

# Template build file for 'perl-Socket6'.
pkgname=perl-Socket6
version=0.28
revision=2
wrksrc="${pkgname/perl-/}-${version}"
build_style=perl-module
hostmakedepends="perl"
makedepends="${hostmakedepends}"
depends="${makedepends}"
short_desc="Socket6 - IPv6 related part of the C socket.h defines and structure manipulators"
maintainer="Leah Neukirchen <leah@vuxu.org>"
homepage="http://search.cpan.org/dist/Socket6"
license="Artistic, GPL-1"
distfiles="${CPAN_SITE}/${pkgname/perl-/}/${pkgname/perl-/}-${version}.tar.gz"
checksum=bfd49ab99f3197c99285fed4683c4edc06277c1e4453f593e694d7bff0974586
post_extract() {
sed -i '/CFLAGS/d' Makefile.PL
}
pre_configure() {
if [ "$CROSS_BUILD" ]; then
export ipv6_cv_can_inet_ntop=yes
sed -i 's:\./configure:& --host='$XBPS_CROSS_TRIPLET':g' Makefile.PL
fi
}