[arch-commits] Commit in perl-term-readkey/trunk (PKGBUILD)

Eric Bélanger eric at archlinux.org
Sat Mar 17 16:18:36 EDT 2012


    Date: Saturday, March 17, 2012 @ 16:18:36
  Author: eric
Revision: 153681

Add check function

Modified:
  perl-term-readkey/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++++++++++----------
 1 file changed, 13 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-03-17 20:08:26 UTC (rev 153680)
+++ PKGBUILD	2012-03-17 20:18:36 UTC (rev 153681)
@@ -12,25 +12,28 @@
 license=('custom')
 depends=('perl>=5.10.0' 'glibc')
 url="http://search.cpan.org/~stsi/${_realname}/"
+options=('!emptydirs')
 source=(http://search.cpan.org/CPAN/authors/id/S/ST/STSI/${_realname}-$pkgver.tar.gz)
-options=('!emptydirs')
 md5sums=('6c099eddb76ec9b92179f1ed929be71a')
 
-build()
-{
-  cd ${srcdir}/TermReadKey-$pkgver
+build() {
+  cd "${srcdir}/TermReadKey-$pkgver"
   perl Makefile.PL INSTALLDIRS=vendor
   make
+}
+
+check() {
+  cd "${srcdir}/TermReadKey-$pkgver"
   make test
 }
 
 package() {
-  cd ${srcdir}/TermReadKey-$pkgver
-  make DESTDIR=${pkgdir} install
-  install -d ${pkgdir}/usr/share/licenses/$pkgname/
-  head -7 README > ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
+  cd "${srcdir}/TermReadKey-$pkgver"
+  make DESTDIR="${pkgdir}" install
+  install -d "${pkgdir}/usr/share/licenses/$pkgname/"
+  head -7 README > "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
 
   # remove perllocal.pod and .packlist
-  find ${pkgdir} -name perllocal.pod -delete
-  find ${pkgdir} -name .packlist -delete
+  find "${pkgdir}" -name perllocal.pod -delete
+  find "${pkgdir}" -name .packlist -delete
 }



More information about the arch-commits mailing list