blob: fb8e30f2f795690f3add7f587709cfb4e75adebf (
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
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-inline
_pkgname=Inline
pkgver=0.85
pkgrel=0
pkgdesc="Write Perl subroutines in other programming languages"
url="https://metacpan.org/pod/distribution/Inline/lib/Inline.pod"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0-or-later"
depends="perl"
makedepends="perl-dev"
checkdepends="perl-test-warn"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/I/IN/INGY/Inline-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
default_prepare
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make
}
check() {
make test
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="88d5f06ca435043576b5bb9869c1121cd429a55275abc392f97a7befed184fe375634140a64ae915e3815edcf9fa4514426fed483bfa1ebcdb22172fa97ce4d9 Inline-0.85.tar.gz"
|