[arch-commits] Commit in expect/trunk (PKGBUILD)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Mon Aug 7 10:56:56 UTC 2017


    Date: Monday, August 7, 2017 @ 10:56:55
  Author: bpiotrowski
Revision: 301727

Rewrite and add check() function

Modified:
  expect/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++++++++++++++++-------------
 1 file changed, 18 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-08-07 10:55:51 UTC (rev 301726)
+++ PKGBUILD	2017-08-07 10:56:55 UTC (rev 301727)
@@ -1,26 +1,31 @@
 # $Id$
-# Maintainer: Allan McRae <allan at archlinux.org>
+# Maintainer:  Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Allan McRae <allan at archlinux.org>
 
 pkgname=expect
 pkgver=5.45
-pkgrel=4
-pkgdesc="A tool for automating interactive applications"
-arch=('i686' 'x86_64')
-url="http://www.nist.gov/el/msid/expect.cfm"
-license=('custom')
-depends=('tcl')
-source=(http://downloads.sourceforge.net/project/expect/Expect/${pkgver}/expect${pkgver}.tar.gz)
+pkgrel=5
+pkgdesc='A tool for automating interactive applications'
+arch=(i686 x86_64)
+url='http://www.nist.gov/el/msid/expect.cfm'
+license=(custom)
+depends=(tcl)
+source=(http://downloads.sourceforge.net/project/expect/Expect/$pkgver/expect${pkgver}.tar.gz)
 md5sums=('44e1a4f4c877e9ddc5a542dfa7ecc92b')
 
 build() {
-  cd ${srcdir}/expect${pkgver}
+  cd expect${pkgver}
   ./configure --prefix=/usr --mandir=/usr/share/man 
   make
 }
 
+check() {
+  cd expect${pkgver}
+  make test
+}
+
 package() {
-  cd ${srcdir}/expect${pkgver}
-  make DESTDIR=${pkgdir} install
-
-  install -D -m644 README ${pkgdir}/usr/share/licenses/${pkgname}/README
+  cd expect${pkgver}
+  make DESTDIR="$pkgdir" install
+  install -Dm644 README "$pkgdir/usr/share/licenses/$pkgname/README"
 }



More information about the arch-commits mailing list