PKGBUILDs/extra/hercules/PKGBUILD
2009-10-09 21:23:22 -05:00

27 lines
834 B
Bash

# $Id: PKGBUILD 32874 2009-04-02 03:36:52Z kevin $
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Maintainer: Kevin Piche <kevin@archlinux.org>
pkgname=hercules
pkgver=3.06
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)
license=('custom')
options=(!libtool)
depends=('bzip2' 'libgcrypt' 'zlib')
md5sums=('3a356b251e2b7fc49ac2b7244d12d50b')
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
}