summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Rogoża2015-06-14 16:21:49 +0200
committerPiotr Rogoża2015-06-14 16:21:49 +0200
commit45eabbe8696aa2213d9b71dd00153fdeb1e00684 (patch)
tree62d59d8dd989d5969d7c4c61b3aa5cf3d4f60c61
downloadaur-45eabbe8696aa2213d9b71dd00153fdeb1e00684.tar.gz
Initial import
-rw-r--r--.AURINFO19
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD68
3 files changed, 107 insertions, 0 deletions
diff --git a/.AURINFO b/.AURINFO
new file mode 100644
index 00000000000..75c00225412
--- /dev/null
+++ b/.AURINFO
@@ -0,0 +1,19 @@
+pkgbase = perl-text-hunspell
+ pkgdesc = Text::Hunspell - Perl interface to the GNU Hunspell library
+ pkgver = 2.09
+ 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
+ depends = hunspell
+ source = http://search.cpan.org/CPAN/authors/id/C/CO/COSIMO/Text-Hunspell-2.09.tar.gz
+ options = !emptydirs
+
+pkgname = perl-text-hunspell
+
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f21586e3201
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = perl-text-hunspell
+ pkgdesc = Text::Hunspell - Perl interface to the GNU Hunspell library
+ pkgver = 2.09
+ 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
+ depends = hunspell
+ options = !emptydirs
+ source = http://search.cpan.org/CPAN/authors/id/C/CO/COSIMO/Text-Hunspell-2.09.tar.gz
+ sha256sums = dc17b495276be22bd537bb0b5e5731a41bef1a4bf655dba86e57092cb6148707
+
+pkgname = perl-text-hunspell
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..71b5a9149d3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,68 @@
+# Maintainer: Piotr Rogoża <rogoza dot piotr at gmail dot com>
+# Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com>
+
+pkgname=perl-text-hunspell
+pkgver=2.09
+pkgrel=1
+_author=C/CO/COSIMO
+_perlmod=Text-Hunspell
+pkgdesc='Text::Hunspell - Perl interface to the GNU Hunspell library'
+arch=('i686' 'x86_64')
+url="http://search.cpan.org/dist/Text-Hunspell/"
+license=('GPL' 'PerlArtistic')
+depends=(
+perl
+hunspell
+)
+makedepends=(
+perl
+hunspell
+perl-extutils-pkgconfig
+)
+options=(!emptydirs)
+source=("http://search.cpan.org/CPAN/authors/id/$_author/$_perlmod-$pkgver.tar.gz")
+sha256sums=('dc17b495276be22bd537bb0b5e5731a41bef1a4bf655dba86e57092cb6148707')
+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
+ /usr/bin/perl Makefile.PL
+ make
+ # If using Build.PL
+ elif [ -r Build.PL ]; then
+ /usr/bin/perl Build.PL
+ perl Build
+ fi
+}
+check(){
+ cd "$srcdir"/$_perlmod-$pkgver
+
+ # If using Makefile.PL
+ if [ -r Makefile.PL ]; then
+ make test
+ # If using Build.PL
+ elif [ -r Build.PL ]; then
+ perl 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
+ fi
+
+ # remove perllocal.pod and .packlist
+ find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+}