2016-01-17 00:07:08 +00:00
|
|
|
# $Id$
|
2017-07-04 21:51:26 +00:00
|
|
|
# Maintainer: Alexander F Rødseth <xyproto@archlinux.org>
|
2016-01-17 00:07:08 +00:00
|
|
|
# Contributor: Kevin Piche <kevin@archlinux.org>
|
|
|
|
# Contributor: Jaroslav Lichtblau <svetlemodry@archlinux.org>
|
|
|
|
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
|
|
|
|
|
|
|
|
# ALARM::Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - remove bad mcpu/mtune from configure for ARM
|
|
|
|
|
|
|
|
pkgname=hercules
|
2017-12-14 18:49:43 +00:00
|
|
|
pkgver=3.13.00
|
2018-04-24 12:21:55 +00:00
|
|
|
pkgrel=3
|
2016-01-17 00:07:08 +00:00
|
|
|
pkgdesc='Software implementation of System/370 and ESA/390'
|
2017-12-14 18:49:43 +00:00
|
|
|
arch=('x86_64')
|
2016-01-17 00:07:08 +00:00
|
|
|
url='http://www.hercules-390.eu/'
|
|
|
|
license=('custom')
|
2018-04-24 12:21:55 +00:00
|
|
|
depends=('bzip2' 'libnsl' 'zlib')
|
2016-01-17 00:07:08 +00:00
|
|
|
options=('!makeflags')
|
2017-12-14 18:49:43 +00:00
|
|
|
source=("http://downloads.hercules-390.eu/$pkgname-${pkgver%.00}.tar.gz")
|
2018-04-24 12:21:55 +00:00
|
|
|
sha512sums=('76f75ef3f1eb10c0fac0d6fa1ab9809b8d1dfe3deccbcd69366b05ee58f1ecb8ea0f387f7201ab4722b121478676f00e707ad27b6ecf1980fb09e900de63d718')
|
2016-01-17 00:07:08 +00:00
|
|
|
|
2017-07-04 21:51:26 +00:00
|
|
|
prepare() {
|
2017-12-14 18:49:43 +00:00
|
|
|
ln -sf "$pkgname-${pkgver%.00}" p
|
2016-01-17 00:07:08 +00:00
|
|
|
# Change module extension from .la to .so.
|
2017-12-14 18:49:43 +00:00
|
|
|
sed '/HDL_MODULE_SUFFIX/ s/\.la/.so/' -i p/hdl.h
|
|
|
|
sed 's/-mcpu=$host_cpu -mtune=$host_cpu//' -i p/configure
|
2017-07-04 21:51:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2017-12-14 18:49:43 +00:00
|
|
|
cd p
|
|
|
|
./configure --prefix=/usr --enable-optimization=-O3
|
2016-01-17 00:07:08 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2017-12-14 18:49:43 +00:00
|
|
|
cd p
|
|
|
|
DESTDIR="$pkgdir" make install
|
2017-07-04 21:51:26 +00:00
|
|
|
install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/hercules/qpl1"
|
2016-01-17 00:07:08 +00:00
|
|
|
}
|
|
|
|
|
2017-07-04 21:51:26 +00:00
|
|
|
# vim: ts=2 sw=2 et:
|
2017-12-14 18:49:43 +00:00
|
|
|
# getver: raw.githubusercontent.com/rbowler/spinhawk/master/makemsi/Hercules-W64.VER
|