diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-05-14 14:50:23 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-05-14 17:48:22 +0000 |
commit | e1e052414c2b7bdf028b46a298a43dde67d47fc0 (patch) | |
tree | fb3aeda72a811cf7aa023ba5b663c3cff8975088 /main/perl-test-eol | |
parent | ba619feef62489e8a503e6a31df04e7a3eed68f7 (diff) | |
download | aports-e1e052414c2b7bdf028b46a298a43dde67d47fc0.tar.bz2 aports-e1e052414c2b7bdf028b46a298a43dde67d47fc0.tar.xz |
main/perl-test*: move perl-html-format dependencies to main
Diffstat (limited to 'main/perl-test-eol')
-rw-r--r-- | main/perl-test-eol/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/main/perl-test-eol/APKBUILD b/main/perl-test-eol/APKBUILD new file mode 100644 index 0000000000..ee4ce836ed --- /dev/null +++ b/main/perl-test-eol/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com> +# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com> +pkgname=perl-test-eol +_pkgreal=Test-EOL +pkgver=2.00 +pkgrel=0 +pkgdesc="Check the correct line endings in your project" +url="http://search.cpan.org/dist/Test-EOL/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="" +cpancheckdepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare + + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +sha512sums="9f43b88c05915fe722307a313f9149837058e34c8310393e97418f1393f828c2d2f7c6a7537d9ca8caff1b07a19cb2600904319f753b1a76bca09e654637ede2 Test-EOL-2.00.tar.gz" |