summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPeter Lamby2015-06-10 10:15:01 +0200
committerPeter Lamby2015-06-10 10:15:01 +0200
commit55437e6788fd02a597b88d12e6134678d337e24b (patch)
treede3bf610a4f48feb95f80c2a2631c063cce2be5f /PKGBUILD
downloadaur-perl-test-tabs.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0fbd1c1c245
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Peter Lamby <peterlamby at web dot de>
+pkgname=perl-test-tabs
+pkgver=0.005
+pkgrel=1
+pkgdesc='checks the presence of tabs in your project'
+_dist=Test-Tabs
+arch=('any')
+url="https://metacpan.org/release/$_dist"
+license=('GPL' 'PerlArtistic')
+depends=(perl)
+options=('!emptydirs' purge)
+source=("http://www.cpan.org/modules/by-module/Test/Test-Tabs-$pkgver.tar.gz")
+sha265sums=('716d514e606d81f76f595ce61738f1eb20085429be21eb8af8fba61374a12d2b')
+md5sums=('5a484f3f8175614faf8d7f19d202a100')
+
+build() (
+ cd "$srcdir/$_dist-$pkgver"
+ unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
+ export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
+ /usr/bin/perl Makefile.PL
+ make
+)
+
+check() (
+ cd "$srcdir/$_dist-$pkgver"
+ unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
+ export PERL_MM_USE_DEFAULT=1
+ make test
+)
+
+package() (
+ cd "$srcdir/$_dist-$pkgver"
+ unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
+ make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
+)