summaryrefslogtreecommitdiff
path: root/extra/hercules/PKGBUILD
blob: 1dd88290c67b6ac5e6632836041313041cb72054 (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
# $Id: PKGBUILD 94782 2010-10-10 23:27:33Z kevin $
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Maintainer: Kevin Piche <kevin@archlinux.org>

pkgname=hercules
pkgver=3.07
pkgrel=1
pkgdesc="A software implementation of the mainframe System/370 and ESA/390 architectures"
url="http://www.hercules-390.org/"
source=(http://www.hercules-390.org/$pkgname-$pkgver.tar.gz)
arch=(i686 x86_64 'mips64el')
license=('custom')
options=(!libtool)
depends=('bzip2' 'libgcrypt' 'zlib')
md5sums=('a12aa1645b0695b25b7fc0c9a3ccab3a')

build() {
  cd $startdir/src/$pkgname-$pkgver
  # Change module extension from .la to .so.
  sed '/HDL_MODULE_SUFFIX/ s/\.la/.so/' -i hdl.h
  ./configure --prefix=/usr
  make || return 1
  make prefix=$startdir/pkg/usr install
  # license
  install -D -m644 COPYRIGHT \
  		$startdir/pkg/usr/share/licenses/hercules/qpl1
}