void-packages/srcpkgs/perl-Socket6/template

25 lines
806 B
Bash

# Template file for 'perl-Socket6'
pkgname=perl-Socket6
version=0.29
revision=4
wrksrc="${pkgname/perl-/}-${version}"
build_style=perl-module
hostmakedepends="perl"
makedepends="$hostmakedepends"
depends="$makedepends"
short_desc="IPv6 related part of the C socket.h defines and structure manipulators"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="Artistic-1.0-Perl, GPL-1.0-or-later"
homepage="https://metacpan.org/release/Socket6"
distfiles="${CPAN_SITE}/${pkgname/perl-/}/${pkgname/perl-/}-${version}.tar.gz"
checksum=468915fa3a04dcf6574fc957eff495915e24569434970c91ee8e4e1459fc9114
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
}