From 92f2273b2f2d976f47ce0a749db255b4f51ec1fe Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Sun, 17 Jan 2016 00:07:08 +0000 Subject: [PATCH] added community/hercules --- community/hercules/PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 community/hercules/PKGBUILD diff --git a/community/hercules/PKGBUILD b/community/hercules/PKGBUILD new file mode 100644 index 000000000..e9e0e95ca --- /dev/null +++ b/community/hercules/PKGBUILD @@ -0,0 +1,39 @@ +# $Id$ +# Maintainer: Alexander Rødseth +# Contributor: Kevin Piche +# Contributor: Jaroslav Lichtblau +# Contributor: Tom Newsom + +# ALARM::Kevin Mihelich +# - remove bad mcpu/mtune from configure for ARM + +pkgname=hercules +pkgver=3.12 +pkgrel=1 +pkgdesc='Software implementation of System/370 and ESA/390' +arch=('i686' 'x86_64') +url='http://www.hercules-390.eu/' +license=('custom') +depends=('bzip2' 'libgcrypt' 'zlib' 'perl') +options=('!makeflags') +source=("http://downloads.hercules-390.eu/$pkgname-$pkgver.tar.gz") +sha256sums=('aefbe9d2f09372a530c17c177b7d2a0f4bcf8cfd28474672935b067e5f9ee373') + +build() { + cd $pkgname-$pkgver + sed -i 's/-mcpu=$host_cpu -mtune=$host_cpu//' configure + # Change module extension from .la to .so. + sed '/HDL_MODULE_SUFFIX/ s/\.la/.so/' -i hdl.h + ./configure --prefix=/usr + make +} + +package() { + cd $pkgname-$pkgver + + make DESTDIR="$pkgdir" install + install -Dm644 COPYRIGHT \ + "$pkgdir/usr/share/licenses/hercules/qpl1" +} + +# vim:set ts=2 sw=2 et: