summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorStephen Gregoratto2019-07-27 23:26:24 +1000
committerStephen Gregoratto2019-07-27 23:26:24 +1000
commit4b168518f16dd8100aaefff80553b308909231c3 (patch)
tree6528fb11fd3d02c8747f344132fc53d47a5aec2e /PKGBUILD
parent884b1531de1835ad64eb083162c0e9993173040c (diff)
downloadaur-nauniq.tar.gz
sync PKGBUILD with perl package guidelines
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD20
1 files changed, 8 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6f741de9369..31747fd578f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,38 +1,34 @@
-# Maintainer: KingofToasters <dev at sgregoratto dot me>
-_modnamespace=App
+# Maintainer: Stephen Gregoratto <dev@sgregoratto.me>
pkgname=nauniq
pkgver=0.10
-pkgrel=1
+pkgrel=2
pkgdesc="non-adjacent uniq"
+_dist=App-nauniq
license=('GPL' 'PerlArtistic')
arch=('any')
depends=('perl>=5.10.0')
checkdepends=('perl-file-slurper' 'perl-file-chdir' 'perl-string-shellquote' 'perl-tie-cache')
-options=('!emptydirs')
-source=("http://cpan.perl.org/modules/by-module/$_modnamespace/$_modnamespace-$pkgname-$pkgver.tar.gz")
+options=('!emptydirs' purge)
+source=("https://search.cpan.org/CPAN/authors/id/D/DO/DOY/$_dist-$pkgver.tar.gz")
sha256sums=('8c37c9baf352bf21b876c1fef76b7225e493149e15e1d74defa94047d5a0e934')
build() {
- cd "$srcdir/$_modnamespace-$pkgname-$pkgver"
-
+ cd "$_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/$_modnamespace-$pkgname-$pkgver"
-
+ cd "$_dist-$pkgver"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1
make test
}
package() {
- cd "$srcdir/$_modnamespace-$pkgname-$pkgver"
-
+ cd "$_dist-$pkgver"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
}