blob: fc6389216c22c9f289655e6de4ab6b0a407e78c7 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
# Maintainer: envolution
# Contributor: Kyle Keen <keenerd@gmail.com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Jason Chu <jason@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# shellcheck shell=bash disable=SC2034,SC2154
pkgname=gforth
pkgver=0.7.3
pkgrel=3
url="http://www.gnu.org/software/gforth/"
pkgdesc="Fast and portable implementation of the ANS Forth language"
arch=('i686' 'x86_64' 'armv6h')
license=('GPL-3.0-or-later')
depends=('libtool' 'texinfo')
makedepends=('texlive-meta')
options=(!lto)
#source=("https://git.savannah.gnu.org/cgit/gforth.git/snapshot/${pkgname}-${pkgver}.tar.gz" #official source
source=("https://ftp.gnu.org/gnu/gforth/gforth-${pkgver}.tar.gz"
#source=("$pkgname-$pkgver.tar.gz::https://github.com/forthy42/gforth/archive/refs/tags/${pkgver}.tar.gz" #this is just faster
script-hashbang.patch
skip-install.patch
hppa-build.patch
minus-number.patch
distclean.patch
configure-assumptions.patch
manpage.patch
qrnnd-build.patch
elisp-auto-mode.patch
env-cflags.patch
typos.patch
hppa.patch
double-const.patch #the above are debian patches
gforth-0.7.3.patch #this was from the gnu homepage
fflib.patch #this was to correct the fflib forth compiled C code causing compilation failures
)
install=$pkgname.install
md5sums=('ff484391e5cdf405867fcf96341820ab'
'8a38578d1b44b83d533d6be27976fbf0'
'a1f3d22df2b283f4c7d4d96e3d6d654b'
'28c0280b208a218ee4e701cde6c865f3'
'98a5ef18105fe0ff675486544ae2aa0c'
'e287a2fecd07520d6c20e52d8d9d4704'
'bea5dce50ea17218101b76f1ddb56f37'
'8f359f38a81fb1cbbf2def2bec23f6db'
'0f79ed939a095f5b7f75c1f0d610808c'
'dbdbd4c373df5e376c85044bea31d84b'
'ca7d29dc27734907b64cb1b3adea7b06'
'3e3bbef2a72b31a6382c0388b07e31c6'
'537a37c2a808c89e7d7e1929e09437cf'
'67592037dc6e7e6129aee5c6897766ff'
'05325fb09f814940838fa1a26182a1fc'
'11ccb8cf94f6b593771a44ee388432a9')
prepare() {
cd "$pkgname-$pkgver"
patch -Np1 -i ../script-hashbang.patch
patch -Np1 -i ../skip-install.patch
patch -Np1 -i ../hppa-build.patch
patch -Np1 -i ../minus-number.patch
patch -Np1 -i ../distclean.patch
patch -Np1 -i ../configure-assumptions.patch
patch -Np1 -i ../manpage.patch
patch -Np1 -i ../qrnnd-build.patch
patch -Np1 -i ../elisp-auto-mode.patch
patch -Np1 -i ../env-cflags.patch
patch -Np1 -i ../typos.patch
patch -Np1 -i ../hppa.patch
patch -Np1 -i ../double-const.patch
patch -Np0 -i ../gforth-0.7.3.patch
patch -Np2 -i ../fflib.patch
./configure --prefix=/usr
sed -i "s/\(-DDEFAULTPATH='\)\"\([^\"]*\)\"'\(\s*\)/\1\2'\3/g" Makefile #one of the debian patches caused a quotation issue
}
build() {
cd "$pkgname-$pkgver"
make
make doc
make more
}
check() {
cd "$pkgname-$pkgver"
make check
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm644 README "$pkgdir/usr/share/doc/$pkgname/README"
cp -r doc/gforth_html "$pkgdir/usr/share/doc/$pkgname/gforth_html"
}
# vim:set ts=2 sw=2 et:
|