summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD31
3 files changed, 26 insertions, 23 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2b48a23221e..b174066ea76 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,18 @@
pkgbase = perl-autobox
pkgdesc = call methods on native types
- pkgver = 2.83
+ pkgver = 3.0.1
pkgrel = 1
- url = http://search.cpan.org/dist/autobox
- arch = i686
+ url = https://metacpan.org/release/autobox
arch = x86_64
license = PerlArtistic
license = GPL
- depends = perl-scope-guard>=0.20
+ checkdepends = perl-test-fatal>=0.014
depends = perl>=5.8.0
+ depends = perl-ipc-system-simple>=1.25
+ depends = perl-scope-guard>=0.21
options = !emptydirs
- source = http://search.cpan.org/CPAN/authors/id/C/CH/CHOCOLATE/autobox-2.83.tar.gz
- md5sums = 7a4b2c4c644e6f02ccb1d964fabebde5
- sha512sums = 2c347ee61240ba7ba8fdf0bddebceab554c602ce673a524255a73ee7b53a9765f9679bd613f796f74e6588ebfd6beb877fa6f49720fa6da108f91ebb365b1dc6
+ source = http://search.cpan.org/CPAN/authors/id/C/CH/CHOCOLATE/autobox-v3.0.1.tar.gz
+ md5sums = 7b2fce96b3ad20924555130ab9847b95
pkgname = perl-autobox
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..e20245338b3
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.tar.gz
+*.tar.xz
+/pkg/
+/src/
diff --git a/PKGBUILD b/PKGBUILD
index b80bf451c24..ae70aa97739 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,19 @@
+# Maintainer: Thiago L. A. Miller <thiago_leisrael@hotmail.com>
# Contributor: chimeracoder <dev@chimeracoder.net>
-# Generator : CPANPLUS::Dist::Arch 1.29
-
-pkgname='perl-autobox'
-pkgver='2.83'
-pkgrel='1'
+_distname=autobox
+pkgname=perl-autobox
+pkgver=3.0.1
+pkgrel=1
pkgdesc="call methods on native types"
-arch=('i686' 'x86_64')
+arch=('x86_64')
+url="https://metacpan.org/release/$_distname"
license=('PerlArtistic' 'GPL')
-options=('!emptydirs')
-depends=('perl-scope-guard>=0.20' 'perl>=5.8.0')
+depends=('perl>=5.8.0' 'perl-ipc-system-simple>=1.25' 'perl-scope-guard>=0.21')
makedepends=()
-url='http://search.cpan.org/dist/autobox'
-source=('http://search.cpan.org/CPAN/authors/id/C/CH/CHOCOLATE/autobox-2.83.tar.gz')
-md5sums=('7a4b2c4c644e6f02ccb1d964fabebde5')
-sha512sums=('2c347ee61240ba7ba8fdf0bddebceab554c602ce673a524255a73ee7b53a9765f9679bd613f796f74e6588ebfd6beb877fa6f49720fa6da108f91ebb365b1dc6')
-_distdir="autobox-2.83"
+checkdepends=('perl-test-fatal>=0.014')
+options=('!emptydirs')
+source=("http://search.cpan.org/CPAN/authors/id/C/CH/CHOCOLATE/$_distname-v$pkgver.tar.gz")
+md5sums=('7b2fce96b3ad20924555130ab9847b95')
build() {
( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
@@ -23,21 +22,21 @@ build() {
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
- cd "$srcdir/$_distdir"
+ cd "$_distname-v$pkgver"
/usr/bin/perl Makefile.PL
make
)
}
check() {
- cd "$srcdir/$_distdir"
+ cd "$_distname-v$pkgver"
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
make test
)
}
package() {
- cd "$srcdir/$_distdir"
+ cd "$_distname-v$pkgver"
make install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}