# Maintainer: David P. <megver83@parabola.nu>
# Maintainer: Luke R. <g4jc@openmailbox.org>
# Contributor: Freemor <freemor@freemor.ca>

pkgname=gforth
pkgver=0.7.3
pkgrel=2
url="http://www.gnu.org/software/gforth/"
pkgdesc="Fast and portable implementation of the ANS Forth language"
arch=('i686' 'x86_64' 'armv7h')
license=('GPL3')
depends=('libtool')
source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig})
options=('libtool')
install=$pkgname.install
sha512sums=('f034234acfb0fc727f28b564432219a100b916c6df4b847794a55b2fc3b8ed8714eca6de0df67c7c427b7c2bb4dd00f65cfd34e6eb60181e41ab84fea30304e4'
            'SKIP')
validpgpkeys=('E50D62D449FD0E193706C2358B820BB767007C30' # Bernd Paysan
              )

build() {
    cd "$srcdir/$pkgname-$pkgver"
    CFLAGS='-std=gnu99' ./configure --prefix=/usr 
    make PREFIX=/usr ${MAKEFLAGS}
}

package() {
    cd "$srcdir/$pkgname-$pkgver"
    make PREFIX=/usr DESTDIR="$pkgdir" install
}
