aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-eol/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/perl-test-eol/APKBUILD')
-rw-r--r--main/perl-test-eol/APKBUILD47
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"