updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / cfront / PKGBUILD
blob82c1fc3e20fb7d90fa255e75257aac1bdde33fda
1 # Maintainer: Jens Staal <staal1978@gmail.com>
3 pkgname=cfront
4 pkgver=3.0.3
5 pkgrel=1
6 pkgdesc="A C++ to C converter"
7 arch=('i686')
8 license=('BSD')
9 url="http://www.softwarepreservation.org/projects/c_plus_plus/index.html#cfront"
10 depends=('pcc' 'cpio') # pcc only needed if you set CC=pcc
11 source=('http://www.softwarepreservation.org/projects/c_plus_plus/cfront/release_3.0.3/source/cfront_3_0_3.tgz' 'makefile.patch')
12 md5sums=('6fba75b782ddcec1d8bc4b6dac8c5df9' '2e4bae47c43ccb07b1f727ed029cf3f7')
14 build() {
15   cd $srcdir
16   msg "setting up build directories"
17   rm -rf $srcdir/build
18   mv $srcdir/C++\ $pkgver $srcdir/build
19   chmod -R 777 $srcdir/build
20   cd $srcdir/build/source
21   patch -p0 $srcdir/build/source/makefile -i $srcdir/makefile.patch
22 # CC can be changed to whatever you like
23   make CC=/usr/bin/pcc
26 package() {
27   cd $srcdir/build/source
28   make install