summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 20 insertions, 13 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e54adf95fda..1ab756ca6be 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,24 +1,31 @@
+# Maintainer: Jens Adam <jra@byte.cx>
# Contributor: Guilherme M. Nogueira <guilherme@nirev.org>
+
+_perlmod=Term-Size
pkgname=perl-term-size
-pkgver=0.2
-pkgrel=2
-pkgdesc="provides a straightforward way to get the size of the terminal, or window, on which a script is running"
-arch=('i686' 'x86_64')
-url="http://search.cpan.org/dist/Term-Size/"
+pkgver=0.207
+pkgrel=1
+pkgdesc='provides a straightforward way to get the size of the terminal, or window, on which a script is running'
+url='http://search.cpan.org/dist/Term-Size/'
license=('GPL' 'PerlArtistic')
+arch=('i686' 'x86_64')
depends=('perl')
options=('!emptydirs')
-source=(http://www.cpan.org/authors/id/T/TI/TIMPX/Term-Size-$pkgver.tar.gz)
-md5sums=('982b5df8351e7654a42b7bffc0bf1d57')
+source=("http://search.cpan.org/CPAN/authors/id/F/FE/FERREIRA/${_perlmod}-${pkgver}.tar.gz")
+md5sums=('474438fff3f12fca88a23388cc5a7571')
build() {
- cd $srcdir/Term-Size-$pkgver
- # Install into vendor directory
- perl Makefile.PL INSTALLDIRS=vendor
- make
+ cd "${srcdir}"/${_perlmod}-${pkgver}
+ perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "${srcdir}"/${_perlmod}-${pkgver}
+ make test
}
package() {
- cd $srcdir/Term-Size-$pkgver
- make DESTDIR=$pkgdir install
+ cd "${srcdir}"/${_perlmod}-${pkgver}
+ make DESTDIR="${pkgdir}" install
}