# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> setvar pkgname = 'perl-file-which' setvar _pkgreal = 'File-Which' setvar pkgver = '1.22' setvar pkgrel = '0' setvar pkgdesc = ""Perl implementation of the which utility as an API"" setvar url = ""http://search.cpan.org/dist/File-Which/"" setvar arch = ""noarch"" setvar license = ""GPL PerlArtistic"" setvar cpandepends = """" setvar cpanmakedepends = "" "" setvar depends = "$cpandepends" setvar makedepends = ""perl-dev $cpanmakedepends"" setvar subpackages = ""$pkgname-doc"" setvar source = ""http://search.cpan.org/CPAN/authors/id/P/PL/PLICEASE/$_pkgreal-$pkgver.tar.gz"" setvar _builddir = ""$srcdir/$_pkgreal-$pkgver"" proc prepare { cd $_builddir export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags})' PERL_MM_USE_DEFAULT=1' perl Makefile.PL INSTALLDIRS=vendor } proc build { cd $_builddir export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}) make && make test } proc package { cd $_builddir make DESTDIR="$pkgdir" install || return 1 find $pkgdir '(' -name perllocal.pod -o -name .packlist ')' -delete } setvar sha512sums = ""9efd8cc6d08e82a429ab3b0ec5193cb894432311338dc4cdcb73b4536a40bf4829c414e75e5dcb0d03b9190511b232f1d27e441657afa7299b0a5b882877f2d1 File-Which-1.22.tar.gz""