summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Rogoża2017-06-20 23:10:27 +0200
committerPiotr Rogoża2017-06-20 23:10:27 +0200
commit578c272918f3499b7324ececdd984ac1ce91f11f (patch)
tree92b2b2be500ea39cab06daa62d29e3032e456f8e
parent45eabbe8696aa2213d9b71dd00153fdeb1e00684 (diff)
downloadaur-perl-text-hunspell.tar.gz
Upgraded to 2.14
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD47
2 files changed, 22 insertions, 36 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f21586e3201..7482565b1c7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,21 @@
+# Generated by mksrcinfo v8
+# Tue Jun 20 21:09:22 UTC 2017
pkgbase = perl-text-hunspell
pkgdesc = Text::Hunspell - Perl interface to the GNU Hunspell library
- pkgver = 2.09
+ pkgver = 2.14
pkgrel = 1
url = http://search.cpan.org/dist/Text-Hunspell/
arch = i686
arch = x86_64
license = GPL
license = PerlArtistic
- makedepends = perl
makedepends = hunspell
makedepends = perl-extutils-pkgconfig
- depends = perl
+ makedepends = perl-alien-hunspell
depends = hunspell
options = !emptydirs
- source = http://search.cpan.org/CPAN/authors/id/C/CO/COSIMO/Text-Hunspell-2.09.tar.gz
- sha256sums = dc17b495276be22bd537bb0b5e5731a41bef1a4bf655dba86e57092cb6148707
+ source = http://search.cpan.org/CPAN/authors/id/C/CO/COSIMO/Text-Hunspell-2.14.tar.gz
+ sha256sums = 22e1000b566b8a3d34fdb2f8afa8130e2fc28e81773c5b67dfd020ef41c53406
pkgname = perl-text-hunspell
diff --git a/PKGBUILD b/PKGBUILD
index 71b5a9149d3..eecb554f142 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,7 @@
-# Maintainer: Piotr Rogoża <rogoza dot piotr at gmail dot com>
-# Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com>
+# Maintainer: dracorp aka Piotr Rogoza <piotr.r.public at gmail.com>
pkgname=perl-text-hunspell
-pkgver=2.09
+pkgver=2.14
pkgrel=1
_author=C/CO/COSIMO
_perlmod=Text-Hunspell
@@ -11,58 +10,44 @@ arch=('i686' 'x86_64')
url="http://search.cpan.org/dist/Text-Hunspell/"
license=('GPL' 'PerlArtistic')
depends=(
-perl
hunspell
)
makedepends=(
-perl
hunspell
perl-extutils-pkgconfig
+perl-alien-hunspell
)
options=(!emptydirs)
source=("http://search.cpan.org/CPAN/authors/id/$_author/$_perlmod-$pkgver.tar.gz")
-sha256sums=('dc17b495276be22bd537bb0b5e5731a41bef1a4bf655dba86e57092cb6148707')
+sha256sums=('22e1000b566b8a3d34fdb2f8afa8130e2fc28e81773c5b67dfd020ef41c53406')
+unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps MODULEBUILDRC=/dev/null
build(){
cd "$srcdir"/$_perlmod-$pkgver
- # Setting these env variables overwrites any command-line-options we don't want...
- export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
- PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
- PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
- MODULEBUILDRC=/dev/null
-
- # If using Makefile.PL
- if [ -r Makefile.PL ]; then
+ if [ -f Makefile.PL ]; then
/usr/bin/perl Makefile.PL
make
- # If using Build.PL
- elif [ -r Build.PL ]; then
+ else
/usr/bin/perl Build.PL
- perl Build
+ ./Build
fi
}
check(){
cd "$srcdir"/$_perlmod-$pkgver
- # If using Makefile.PL
- if [ -r Makefile.PL ]; then
+ if [ -f Makefile.PL ]; then
make test
- # If using Build.PL
- elif [ -r Build.PL ]; then
- perl Build test
+ else
+ ./Build test
fi
}
package(){
cd "$srcdir"/$_perlmod-$pkgver
- # If using Makefile.PL
- if [ -r Makefile.PL ]; then
- make install
- # If using Build.PL
- elif [ -r Build.PL ]; then
- perl Build install
+ if [ -f Makefile.PL ]; then
+ make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
+ else
+ ./Build install --installdirs=vendor --destdir="$pkgdir"
fi
-
- # remove perllocal.pod and .packlist
- find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}