updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / ccons / PKGBUILD
blob896208faee9d5026f828d8ce2c3e523cca2c660a
1 # Maintainer: Alexander Rødseth <rodseth@gmail.com>
2 pkgname=ccons
3 pkgver=189
4 pkgrel=1
5 pkgdesc="An interactive C console"
6 arch=('x86_64' 'i686')
7 url="http://code.google.com/p/ccons/"
8 license=('MIT')
9 _llvm=2.9
10 source=("http://llvm.org/releases/$_llvm/llvm-$_llvm.tgz"
11         "http://ccons.googlecode.com/files/${pkgname}_r$pkgver.tar.gz")
12 depends=('libedit')
13 makedepends=('cmake')
14 md5sums=('793138412d2af2c7c7f54615f8943771'
15          '12792427ed57228fccee454fbb2e9ed6')
17 build() {
18   cp -ur "$srcdir/$pkgname" "$srcdir/llvm-$_llvm/tools"
19   cd "$srcdir/llvm-$_llvm/tools/$pkgname"
20   sed -i 's/ -march=${LLVM_HOST_ARCH}//' CMakeLists.txt
21   cp /usr/include/llvm/Support/DataTypes.h ../../include/llvm/System
22   cmake CMakeLists.txt
23   CXX=clang++ CC=clang make
26 package() {
27   cd "$srcdir/llvm-$_llvm/tools/$pkgname"
28   # Install the license
29   # install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
32 # vim:set ts=2 sw=2 et: