mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
community/hercules to 3.12-2
This commit is contained in:
parent
6b5aa49a46
commit
55239924ac
1 changed files with 17 additions and 12 deletions
|
@ -1,5 +1,5 @@
|
|||
# $Id$
|
||||
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
|
||||
# Maintainer: 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>
|
||||
|
@ -9,9 +9,9 @@
|
|||
|
||||
pkgname=hercules
|
||||
pkgver=3.12
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc='Software implementation of System/370 and ESA/390'
|
||||
arch=('i686' 'x86_64')
|
||||
arch=('x86_64' 'i686')
|
||||
url='http://www.hercules-390.eu/'
|
||||
license=('custom')
|
||||
depends=('bzip2' 'libgcrypt' 'zlib' 'perl')
|
||||
|
@ -19,21 +19,26 @@ options=('!makeflags')
|
|||
source=("http://downloads.hercules-390.eu/$pkgname-$pkgver.tar.gz")
|
||||
sha256sums=('aefbe9d2f09372a530c17c177b7d2a0f4bcf8cfd28474672935b067e5f9ee373')
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
sed -i 's/-mcpu=$host_cpu -mtune=$host_cpu//' configure
|
||||
prepare() {
|
||||
# Change module extension from .la to .so.
|
||||
sed '/HDL_MODULE_SUFFIX/ s/\.la/.so/' -i hdl.h
|
||||
./configure --prefix=/usr
|
||||
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
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
cd "$pkgname-$pkgver"
|
||||
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -Dm644 COPYRIGHT \
|
||||
"$pkgdir/usr/share/licenses/hercules/qpl1"
|
||||
install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/hercules/qpl1"
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
# vim: ts=2 sw=2 et:
|
||||
|
|
Loading…
Reference in a new issue