summaryrefslogtreecommitdiff
path: root/community/perl-tcl/APKBUILD
blob: b35989d3dfc626a88ca2105abc9b4bcb988712e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Automatically generated by apkbuild-cpan, template 4
# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-tcl
pkgver=1.32
pkgrel=1
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Tcl
pkgdesc="Tcl extension module for Perl"
url="https://metacpan.org/release/Tcl/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl tcl"
makedepends="perl-dev tcl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/V/VK/VKON/Tcl-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
		--tclconfig=/usr/lib/tclConfig.sh \
		INSTALLDIRS=vendor \
		NO_PACKLIST=1 \
		NO_PERLLOCAL=1
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

package() {
	make DESTDIR="$pkgdir" install
}

doc() {
	local file; find "$pkgdir" -name "*.pod" | while read -r file; do
		amove "${file#"$pkgdir"}"
	done
	default_doc
}

sha512sums="
363ae39b0d110718e56606ea89432c5c749b077d7adc1fef2f0beeaccc8ac3fe23a37f743331a06d7c1cdb1c161a1a3800a5875d7f03549c05ae63e536b85bbc  Tcl-1.32.tar.gz
"