Date: Monday, August 7, 2017 @ 12:09:49
  Author: bpiotrowski
Revision: 301730

Add check() function

Modified:
  fakeroot/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++++++++++++----------
 1 file changed, 17 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2017-08-07 11:31:00 UTC (rev 301729)
+++ PKGBUILD    2017-08-07 12:09:49 UTC (rev 301730)
@@ -7,13 +7,14 @@
 pkgver=1.21
 pkgrel=2
 pkgdesc='Tool for simulating superuser privileges'
-arch=('i686' 'x86_64')
-license=('GPL')
+arch=(i686 x86_64)
+license=(GPL)
 url="http://packages.debian.org/fakeroot";
-groups=('base-devel')
+groups=(base-devel)
 install=fakeroot.install
-depends=('glibc' 'filesystem' 'sed' 'util-linux' 'sh')
-makedepends=('po4a')
+depends=(glibc filesystem sed util-linux sh)
+makedepends=(po4a)
+checkdepends=(sharutils)
 
source=(http://ftp.debian.org/debian/pool/main/f/$pkgname/${pkgname}_${pkgver}.orig.tar.gz
         silence-dlerror.patch)
 md5sums=('be5c9a0e516869fca4a6758105968e5a'
@@ -22,12 +23,13 @@
 prepare() {
   cd $pkgname-$pkgver
   patch -p1 -i "$srcdir"/silence-dlerror.patch
+
+  ./bootstrap
 }
 
 build() {
   cd $pkgname-$pkgver
 
-  ./bootstrap
   ./configure --prefix=/usr \
     --libdir=/usr/lib/libfakeroot \
     --disable-static \
@@ -36,16 +38,21 @@
   make
 
   cd doc
-  po4a -k 0 --rm-backups --variable "srcdir=../doc/" po4a/po4a.cfg
+  po4a -k 0 --rm-backups --variable 'srcdir=../doc/' po4a/po4a.cfg
 }
 
+check() {
+  cd $pkgname-$pkgver
+  make check
+}
+
 package() {
   cd $pkgname-$pkgver
   make DESTDIR="$pkgdir" install
 
-  install -dm755 "$pkgdir"/etc/ld.so.conf.d/
-  echo '/usr/lib/libfakeroot' > "$pkgdir"/etc/ld.so.conf.d/fakeroot.conf
+  install -dm755 "$pkgdir/etc/ld.so.conf.d/"
+  echo '/usr/lib/libfakeroot' > "$pkgdir/etc/ld.so.conf.d/fakeroot.conf"
 
   # install README for sysv/tcp usage
-  install -Dm644 README "$pkgdir"/usr/share/doc/$pkgname/README
+  install -Dm644 README "$pkgdir/usr/share/doc/$pkgname/README"
 }

Reply via email to