PKGBUILDs/community/hercules/PKGBUILD

45 lines
1.2 KiB
Bash
Raw Normal View History

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
pkgver=3.12
2017-07-04 21:51:26 +00:00
pkgrel=2
2016-01-17 00:07:08 +00:00
pkgdesc='Software implementation of System/370 and ESA/390'
2017-07-04 21:51:26 +00:00
arch=('x86_64' 'i686')
2016-01-17 00:07:08 +00:00
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')
2017-07-04 21:51:26 +00:00
prepare() {
2016-01-17 00:07:08 +00:00
# Change module extension from .la to .so.
2017-07-04 21:51:26 +00:00
sed '/HDL_MODULE_SUFFIX/ s/\.la/.so/' -i "$pkgname-$pkgver/hdl.h"
sed 's/-mcpu=$host_cpu -mtune=$host_cpu//' -i "$pkgname-$pkgver/configure"
}
build() {
cd "$pkgname-$pkgver"
./configure \
--prefix=/usr \
--enable-optimization=-O2
2016-01-17 00:07:08 +00:00
make
}
package() {
2017-07-04 21:51:26 +00:00
cd "$pkgname-$pkgver"
2016-01-17 00:07:08 +00:00
make DESTDIR="$pkgdir" 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: