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

Pierre Schmitz pierre at archlinux.org
Mon Feb 27 12:49:49 EST 2012


    Date: Monday, February 27, 2012 @ 12:49:48
  Author: pierre
Revision: 151557

upgpkg: hercules 3.07-2

rebuild old package

Modified:
  hercules/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-02-27 17:34:40 UTC (rev 151556)
+++ PKGBUILD	2012-02-27 17:49:48 UTC (rev 151557)
@@ -4,24 +4,27 @@
 
 pkgname=hercules
 pkgver=3.07
-pkgrel=1
+pkgrel=2
 pkgdesc="A software implementation of the mainframe System/370 and ESA/390 architectures"
 url="http://www.hercules-390.org/"
-source=(http://www.hercules-390.org/$pkgname-$pkgver.tar.gz)
-arch=(i686 x86_64)
+source=("http://www.hercules-390.org/$pkgname-$pkgver.tar.gz")
+arch=('i686' 'x86_64')
 license=('custom')
-options=(!libtool)
+options=('!libtool')
 depends=('bzip2' 'libgcrypt' 'zlib')
 md5sums=('a12aa1645b0695b25b7fc0c9a3ccab3a')
 
 build() {
-  cd $startdir/src/$pkgname-$pkgver
+  cd $srcdir/$pkgname-$pkgver
   # Change module extension from .la to .so.
   sed '/HDL_MODULE_SUFFIX/ s/\.la/.so/' -i hdl.h
   ./configure --prefix=/usr
-  make || return 1
-  make prefix=$startdir/pkg/usr install
-  # license
+  make
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+  make prefix=$pkgdir/usr install
   install -D -m644 COPYRIGHT \
-  		$startdir/pkg/usr/share/licenses/hercules/qpl1
+    $pkgdir/usr/share/licenses/hercules/qpl1
 }



More information about the arch-commits mailing list