[arch-commits] Commit in hercules/trunk (PKGBUILD)
Alexander Rødseth
arodseth at archlinux.org
Tue Jul 4 21:12:48 UTC 2017
Date: Tuesday, July 4, 2017 @ 21:12:39
Author: arodseth
Revision: 242328
upgpkg: hercules 3.12-2
Modified:
hercules/trunk/PKGBUILD
----------+
PKGBUILD | 27 ++++++++++++++++-----------
1 file changed, 16 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-07-04 20:35:50 UTC (rev 242327)
+++ PKGBUILD 2017-07-04 21:12:39 UTC (rev 242328)
@@ -1,5 +1,5 @@
# $Id$
-# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
# Contributor: Kevin Piche <kevin at archlinux.org>
# Contributor: Jaroslav Lichtblau <svetlemodry at archlinux.org>
# Contributor: Tom Newsom <Jeepster at gmx.co.uk>
@@ -6,9 +6,9 @@
pkgname=hercules
pkgver=3.12
-pkgrel=1
+pkgrel=2
pkgdesc='Software implementation of System/370 and ESA/390'
-arch=('i686' 'x86_64')
+arch=('x86_64' 'i686')
url='http://www.hercules-390.eu/'
license=('custom')
depends=('bzip2' 'libgcrypt' 'zlib' 'perl')
@@ -16,20 +16,25 @@
source=("http://downloads.hercules-390.eu/$pkgname-$pkgver.tar.gz")
sha256sums=('aefbe9d2f09372a530c17c177b7d2a0f4bcf8cfd28474672935b067e5f9ee373')
+prepare() {
+ # Change module extension from .la to .so.
+ sed '/HDL_MODULE_SUFFIX/ s/\.la/.so/' -i "$pkgname-$pkgver/hdl.h"
+}
+
build() {
- cd $pkgname-$pkgver
- # Change module extension from .la to .so.
- sed '/HDL_MODULE_SUFFIX/ s/\.la/.so/' -i hdl.h
- ./configure --prefix=/usr
+ cd "$pkgname-$pkgver"
+
+ ./configure \
+ --prefix=/usr \
+ --enable-optimization=-O2
make
}
package() {
- cd $pkgname-$pkgver
+ cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
- install -Dm644 COPYRIGHT \
- "$pkgdir/usr/share/licenses/hercules/qpl1"
+ install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/hercules/qpl1"
}
-# vim:set ts=2 sw=2 et:
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list