summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Keen2015-06-13 00:15:40 -0400
committerKyle Keen2015-06-13 00:15:40 -0400
commita22634a310cdbd895bfebf849abcbe1783bc7583 (patch)
treee7566ffb4ce8e05e618b9d1b3a7cb13f095c4086
downloadaur-gforth.tar.gz
Initial import
-rw-r--r--.AURINFO16
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD30
-rw-r--r--gforth.install18
4 files changed, 81 insertions, 0 deletions
diff --git a/.AURINFO b/.AURINFO
new file mode 100644
index 00000000000..e4e134fe2dc
--- /dev/null
+++ b/.AURINFO
@@ -0,0 +1,16 @@
+pkgbase = gforth
+ pkgdesc = Fast and portable implementation of the ANS Forth language
+ pkgver = 0.7.3
+ pkgrel = 1
+ url = http://www.gnu.org/software/gforth/
+ install = gforth.install
+ arch = i686
+ arch = x86_64
+ arch = armv6h
+ license = GPL3
+ depends = libtool
+ source = http://www.complang.tuwien.ac.at/forth/gforth/gforth-0.7.3.tar.gz
+ options = libtool
+
+pkgname = gforth
+
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9b7e43fd724
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = gforth
+ pkgdesc = Fast and portable implementation of the ANS Forth language
+ pkgver = 0.7.3
+ pkgrel = 1
+ url = http://www.gnu.org/software/gforth/
+ install = gforth.install
+ arch = i686
+ arch = x86_64
+ arch = armv6h
+ license = GPL3
+ depends = libtool
+ options = libtool
+ source = http://www.complang.tuwien.ac.at/forth/gforth/gforth-0.7.3.tar.gz
+ md5sums = ff484391e5cdf405867fcf96341820ab
+
+pkgname = gforth
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4b68b4ad12f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: 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>
+
+pkgname=gforth
+pkgver=0.7.3
+pkgrel=1
+url="http://www.gnu.org/software/gforth/"
+pkgdesc="Fast and portable implementation of the ANS Forth language"
+arch=('i686' 'x86_64' 'armv6h')
+license=('GPL3')
+depends=('libtool')
+source=("http://www.complang.tuwien.ac.at/forth/$pkgname/$pkgname-$pkgver.tar.gz")
+options=('libtool')
+install=$pkgname.install
+md5sums=('96f2354ec8c4005e1a54035586ed683e')
+md5sums=('ff484391e5cdf405867fcf96341820ab')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ CFLAGS='-std=gnu99' ./configure --prefix=/usr
+ make PREFIX=/usr -j1
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make PREFIX=/usr DESTDIR="$pkgdir" install
+}
+
diff --git a/gforth.install b/gforth.install
new file mode 100644
index 00000000000..6dd89441a6d
--- /dev/null
+++ b/gforth.install
@@ -0,0 +1,18 @@
+infodir=/usr/share/info
+filelist=(gforth.info vmgen.info)
+
+post_install() {
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}