summaryrefslogtreecommitdiff
path: root/community/hercules/PKGBUILD
blob: 4db656d80e024075142a66e7e67bfd86754cdd92 (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
# $Id: PKGBUILD 85609 2013-03-03 23:25:19Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Kevin Piche <kevin@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=hercules
pkgver=3.08
pkgrel=1
arch=('x86_64' 'i686')
pkgdesc='Software implementation of System/370 and ESA/390'
url='http://www.hercules-390.eu/'
source=("http://downloads.hercules-390.eu/$pkgname-$pkgver.tar.gz")
license=('custom')
options=('!libtool')
depends=('bzip2' 'libgcrypt' 'zlib' 'perl')
sha256sums=('85e217773587f2278d4b6cb6bc815e042cfc982d0fc14baa0da4a84dea399e9d')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  # Change module extension from .la to .so.
  sed '/HDL_MODULE_SUFFIX/ s/\.la/.so/' -i hdl.h
  ./configure --prefix=/usr
  make -j1
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make prefix="$pkgdir/usr" install
  install -Dm644 COPYRIGHT \
    "$pkgdir/usr/share/licenses/hercules/qpl1"
}

# vim:set ts=2 sw=2 et: