Date: Monday, August 7, 2017 @ 11:31:00
  Author: bpiotrowski
Revision: 301729

Rewrite and re-enable check() function

Modified:
  libarchive/trunk/PKGBUILD

----------+
 PKGBUILD |   33 +++++++++++++++++----------------
 1 file changed, 17 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2017-08-07 11:17:51 UTC (rev 301728)
+++ PKGBUILD    2017-08-07 11:31:00 UTC (rev 301729)
@@ -1,23 +1,27 @@
 # $Id$
+# Maintainer: Bartłomiej Piotrowski <bpiotrow...@archlinux.org>
 # Maintainer: Dan McGee <d...@archlinux.org>
 
 pkgname=libarchive
 pkgver=3.3.2
 pkgrel=1
-pkgdesc="library that can create and read several streaming archive formats"
-arch=('i686' 'x86_64')
-url="http://libarchive.org/";
-license=('BSD')
-depends=('acl' 'attr' 'bzip2' 'expat' 'lz4' 'openssl' 'xz' 'zlib')
-options=('strip' 'debug' '!libtool')
-provides=('libarchive.so')
+pkgdesc='Multi-format archive and compression library'
+arch=(i686 x86_64)
+url='http://libarchive.org/'
+license=(BSD)
+depends=(acl attr bzip2 expat lz4 openssl xz zlib)
+provides=(libarchive.so)
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz";)
 sha256sums=('22560b89d420b11a4a724877bc6672b7d7c0f239e77d42a39dcc5a9c3b28db82')
 
+prepare() {
+  cd $pkgname-$pkgver 
+  autoreconf -fi
+}
+
 build() {
-  cd "$pkgname-$pkgver"
+  cd $pkgname-$pkgver 
 
-  autoreconf -fi
   ./configure \
       --prefix=/usr \
       --without-xml2 \
@@ -28,15 +32,12 @@
 }
 
 check() {
-  cd "$pkgname-$pkgver"
-
-  # bsdcpio_test fails
-  #make check
+  cd $pkgname-$pkgver
+  make check
 }
 
 package() {
-  cd "$pkgname-$pkgver"
-
+  cd $pkgname-$pkgver
   make DESTDIR="$pkgdir" install
-  install -D -m644 COPYING "$pkgdir"/usr/share/licenses/libarchive/COPYING
+  install -Dm644 COPYING "$pkgdir/usr/share/licenses/libarchive/COPYING"
 }

Reply via email to