aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-importer/APKBUILD
blob: e09af0729436c3dff651f04dfbb290bf4ae9a759 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-importer
pkgver=0.024
pkgrel=0
pkgdesc="Alternative but compatible interface to modules that export symbols."
url="https://metacpan.org/release/Importer"
arch="noarch"
license="PerlArtistic"
depends="perl"
makedepends=""
install=""
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/EX/EXODIST/Importer-$pkgver.tar.gz"
builddir="$srcdir/Importer-$pkgver"

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="f368f19a63fd52b88886b1ba6d51716050db8f475628238d16d2962ab7d6c21d6818205a82c86cc7f254736eb1c261dd6abd606dfcb16ca675e84898d03cab32  Importer-0.024.tar.gz"