void-packages/srcpkgs/perl-Tk/template
2020-10-29 15:39:51 +01:00

21 lines
751 B
Bash

# Template file for 'perl-Tk'
pkgname=perl-Tk
version=804.035
revision=1
wrksrc="${pkgname#*-}-${version}"
build_style=perl-module
configure_args="X11INC=${XBPS_CROSS_BASE}/usr/include
X11LIB=${XBPS_CROSS_BASE}/usr/lib"
hostmakedepends="perl pkg-config"
makedepends="perl libX11-devel libpng-devel libjpeg-turbo-devel"
short_desc='Tk graphical interface for Perl'
maintainer="Enguerrand de Rochefort <voidlinux@rochefort.de>"
homepage="https://metacpan.org/release/Tk"
license="Artistic-1.0-Perl, GPL-1.0-or-later"
distfiles="${CPAN_SITE}/Tk/Tk-${version}.tar.gz"
checksum=4d2b80291ba6de34d8ec886a085a6dbd2b790b926035a087e99025614c5ffdd4
post_configure() {
sed -i 's,X11/Xproto.h,,; s,X11/Xutil.h,,' pTk/Makefile
sed -i 's,png.h,,' PNG/Makefile
}