blob: a5bb62e6be3b7ce78cee0e8afad1856abd0d7656 (
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
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=perl-app-cpanminus
_pkgname=App-cpanminus
pkgver=1.7044
pkgrel=1
pkgdesc="Get, unpack, build and install modules from CPAN"
url="https://metacpan.org/release/App-cpanminus"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
prepare() {
default_prepare
CFLAGS=$(_ccflags) PERL_MM_USE_DEFAULT=1 \
perl Makefile.PL INSTALLDIRS=vendor
}
build() {
CFLAGS=$(_ccflags) make
}
check() {
CFLAGS=$(_ccflags) make test
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
_ccflags() {
perl -MConfig -E 'say $Config{ccflags}'
}
sha512sums="85e88de8fbefabdfd84fe8aeaa8294d58d63e27276cd6d8b8dfc5dc4cd6c30c12f5859f30e4930842d6d06af50c88d71358dee49c93821234c811aa39de822d7 App-cpanminus-1.7044.tar.gz"
|