updated on Mon Jan 23 00:00:36 UTC 2012
[aur-mirror.git] / 4th / PKGBUILD
blob105132e98c78990f8d5caae3a2282985a0181679
1 #Maintainer: Nathan Owe <ndowens.aur at gmail dot com>
2 pkgname=4th
3 pkgver=3.61.1
4 pkgrel=2
5 pkgdesc="A Forth Compiler"
6 arch=('i686' 'x86_64')
7 url="http://www.xs4all.nl/~thebeez/4tH/index.html"
8 license=('LGPL')
9 depends=('glibc')
10 install=4th.install
11 source=("http://4th.googlecode.com/files/${pkgname}-${pkgver}-unix.tar.gz"
12                 "Makefile.patch")
13 md5sums=('465605cb841def6f3cede647ccf9ef27'
14          'abc0db2df21a2c7d28901bbe61f2a68d')
16 build() {
17   cd "${srcdir}/${pkgname}-${pkgver}-unix/sources"
18   #Patched Makefile to install manual and docs
19   patch -uNi ${srcdir}/Makefile.patch
20   if [ "$CARCH" == "x86_64" ]; then
21           cp include/* . ; 
22           make clean
23   fi
24   make
25   
28 package() {
29   cd "${srcdir}/${pkgname}-${pkgver}-unix/sources"
30   install -d ${pkgdir}/usr/{lib,bin}
31   make BINARIES=${pkgdir}/usr/bin \
32            LIBRARIES=${pkgdir}/usr/lib \
33            DOCDIR=${pkgdir}/usr/share/doc \
34            MANDIR=${pkgdir}/usr/share/man install
35   
36  }