jorge_barroso

4th PKGBUILD

Aug 19th, 2013
73
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #! /bin/bash
  2. #Maintainer: jorge_barroso <jorge.barroso.11@gmail.com
  3. #Contributor: scj <scj archlinux us>
  4.  
  5. pkgname=4th
  6. pkgver=3.62.0
  7. pkgrel=5
  8. pkgdesc="A Forth Compiler"
  9. arch=('i686' 'x86_64')
  10. url="http://www.xs4all.nl/~thebeez/4tH/index.html"
  11. license=('LGPL')
  12. if [ "$CARCH" = "x86_64" ]; then
  13. source=("https://4th.googlecode.com/files/${pkgname}-${pkgver}-$CARCH.tar.gz"
  14.     'Makefile.patch'
  15.     'Makefile.UNX.patch')
  16. sha512sums=('e9a5824d937cc72511ca7ee49c39adefed261865231e47797dac7f49f1a3c1b3476882a76121765b1f5f4936cc3693e8eae2f3d0df6aa48aae9f761abfacdc9f'
  17.             '80d5b2da61b419be13c96cb5a89066a54c0d5abde85300eda625fd106ee73b82978f9897aff9f427f9518dad2ccee1301172d9c93074bb83aaaad070b52eab1a'
  18.             'ee169d2c6cd578396568d2b698250612b5634c01b216052eaa16adf1fab3a9ff91fae14b5f8391aab724349fe4b71a87205a23f2dbefa7521078201007d40c44')
  19. else
  20. _iarch=i586
  21. source=("https://4th.googlecode.com/files/${pkgname}-${pkgver}-$_iarch.tar.gz"
  22.     'Makefile.patch'
  23.     'Makefile.UNX.patch')
  24. sha512sums=('e9a5824d937cc72511ca7ee49c39adefed261865231e47797dac7f49f1a3c1b3476882a76121765b1f5f4936cc3693e8eae2f3d0df6aa48aae9f761abfacdc9f'
  25.             '80d5b2da61b419be13c96cb5a89066a54c0d5abde85300eda625fd106ee73b82978f9897aff9f427f9518dad2ccee1301172d9c93074bb83aaaad070b52eab1a'
  26.             'ee169d2c6cd578396568d2b698250612b5634c01b216052eaa16adf1fab3a9ff91fae14b5f8391aab724349fe4b71a87205a23f2dbefa7521078201007d40c44')
  27. fi
  28.  
  29. build() {
  30.   cd "${srcdir}/${pkgname}-${pkgver}/sources"
  31.   patch -uNi ${srcdir}/Makefile.patch
  32.   patch -uNi ${srcdir}/Makefile.UNX.patch
  33.   if [ "$CARCH" == "x86_64" ]; then
  34.     cp include/* . ; make clean
  35.   fi
  36.   make
  37. }
  38.  
  39. package() {
  40.   cd ${srcdir}/${pkgname}-${pkgver}/sources
  41.   make DESTDIR="$pkgdir" install
  42. }
RAW Paste Data