diff options
author | Gaming4JC <g4jc@openmailbox.org> | 2015-07-24 19:43:01 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@openmailbox.org> | 2015-07-24 19:43:01 -0400 |
commit | 2d8d40e1fa5a773573fddad7ab0be9857c3dceb5 (patch) | |
tree | 841b18c93ea77d7af0566465c103605495ffd8ed /pcr/gforth/PKGBUILD | |
parent | d65d43f3dca148eb7ab4f5e42bb8ef1511ee20c3 (diff) | |
download | abslibre-2d8d40e1fa5a773573fddad7ab0be9857c3dceb5.tar.gz abslibre-2d8d40e1fa5a773573fddad7ab0be9857c3dceb5.tar.bz2 abslibre-2d8d40e1fa5a773573fddad7ab0be9857c3dceb5.zip |
Adding gforth GNU project
Diffstat (limited to 'pcr/gforth/PKGBUILD')
-rw-r--r-- | pcr/gforth/PKGBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pcr/gforth/PKGBUILD b/pcr/gforth/PKGBUILD new file mode 100644 index 000000000..4625c721b --- /dev/null +++ b/pcr/gforth/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: Luke R. <g4jc@openmailbox.org> GPG: rsa4096/3EAE8697 + +pkgname=gforth +pkgver=0.7.3 +pkgrel=1 +pkgdesc="Gforth is a GNU implementation of the FORTH programing language. It uses GCC to compile a fast direct or indirect threaded Forth; Gforth is fully ANS FORTH compliant." +arch=(i686 x86_64) +url="https://www.gnu.org/software/gforth/" +license=('GPL3') +makedepends=('gcc' 'autoconf' 'automake') +depends=('libffi') +optdepends=('texlive-core: make docs') +source=("https://ftp.gnu.org/gnu/gforth/$pkgname-$pkgver.tar.gz" +"https://ftp.gnu.org/gnu/gforth/$pkgname-$pkgver.tar.gz.sig" +'PKGBUILD.sig' +'PKGBUILD' +"$pkgname.patch" +"$pkgname.install") +install=("$pkgname.install") +validpgpkeys=('CB6E213A349B8DF9E96B622AC3F4FFCF3EAE8697' # PKGBUILD Maintainer's key +'E50D62D449FD0E193706C2358B820BB767007C30') # Bernd Paysan's key +sha512sums=('f034234acfb0fc727f28b564432219a100b916c6df4b847794a55b2fc3b8ed8714eca6de0df67c7c427b7c2bb4dd00f65cfd34e6eb60181e41ab84fea30304e4' +'33490f35551cecb5abf41b1fd2ae41eea13f57b64449cc39709f593cbd7a180df814fab5fb6c78718a17ffe918ae4ea82c50de884ac8429548d406940128834e' +'SKIP' +'SKIP' +'81a5cbd3016e88b3eddc08b57d73ebc9b245767404f982c82df38a1c8de051852a9a560dc726aa6a945907a4a9dfe0d16eb4bedb010e1949331a5a95d8708b13' +'c9537372978374e5f0b48e52bddcb08be0f57a7499277b7a0eca10c5e76e87a86fed0d0724e8fbfe3d88023d60a2109ffb697c519b23c411a3c0c7ba3f944335') + +pkgver() { +tar -ztvf $pkgname-$pkgver.tar.gz | head -n1 | awk '{print $6}' | sed "s/gforth-//" | sed "s/\///" # get latest version number +} + +prepare() { +patch -p0 < $srcdir/$pkgname.patch +## General cleanup patch for hardcoded and depreciated use of /usr/local in the source. We need to use /usr. +} + +build() { + gpg --verify PKGBUILD.sig PKGBUILD + echo "Note: If the GPG verification fails, import the PKGBUILD maintainer's GPG key. See: https://wiki.parabola.nu/GnuPG#Import_key" + whirlpoolsum=('e16e1dfcccc1f02855da9f53407feaeca66fbe64586373aa4e8916c6b9f1dbbd023e4cd7908c8e943d0700c094dbd5e387f6c0b92492bf4e1ecc23692cc63932') + [[ "$(openssl dgst -r -whirlpool $pkgname-$pkgver.tar.gz | awk '{print $1}')" = ${whirlpoolsum} ]] && echo "Whirlpool checksum passed." || { echo "Whirlpool checksum failed!!" ; exit 1; } # This is an added security layer. If SHA512 for some unlikely reason fails, whirlpool will check and abort if it too fails to match. + cd $pkgname-$pkgver + ./autogen.sh + ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --sbindir=/usr/bin + make + ## make doc # if you install optional dependencies feel free to uncomment this. Requires TeXLive. + make more +} + +package() { + cd $pkgname-$pkgver + ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --sbindir=/usr/bin + make DESTDIR="$pkgdir/" install +}
\ No newline at end of file |