blob: 1a9d12da0c395238abedc4dc0d64653aca09a81e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer:
# Contributor: Alexander F Rødseth <xyproto@archlinux.org>
# Contributor: Kevin Piche <kevin@archlinux.org>
# Contributor: Jaroslav Lichtblau <svetlemodry@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=hyperion-hercules
pkgver=4.7
pkgrel=1
pkgdesc='Software implementation of System/370 and ESA/390'
arch=('x86_64')
url='https://sdl-hercules-390.github.io/html/'
license=('custom')
depends=('bzip2' 'libnsl' 'zlib')
optdepends=('x3270: terminal support')
conflicts=('hercules')
options=('!makeflags')
source=("https://github.com/SDL-Hercules-390/hyperion/archive/refs/tags/Release_${pkgver}.tar.gz")
sha256sums=('74c747773e0b5639164f6f69ce9220e1bd1d4853c5c4f18329da21c03aebe388')
prepare() {
ln -sf "hyperion-Release_${pkgver}" p
# Change module extension from .la to .so.
#sed '/HDL_MODULE_SUFFIX/ s/\.la/.so/' -i p/hdl.h
sed '/^ *CFLAGS="-W / d' -i p/configure
sed '/^ *CFLAGS="-Wall / d' -i p/configure
}
build() {
cd p
# --enable-optimization=no use CFLAGS supplied by makepkg
# --enable-multi-cpu=2
./configure --prefix=/usr --enable-optimization=no --enable-multi-cpu=2
make
}
package() {
cd p
DESTDIR="$pkgdir" make install
install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/${pkgname}/qpl1"
}
# vim: ts=2 sw=2 et:
|