author | Anders Bergh <anders1@gmail.com> |
Fri, 21 Dec 2007 09:29:05 +0100 | |
changeset 11 | 664cc1efa89d |
permissions | -rw-r--r-- |
11
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
1 |
# Maintainer: Tomas Lindquist Olsen <tomas@famolsen.dk> |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
2 |
# Contributor: Roberto Alsina <ralsina@kde.org> |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
3 |
pkgname=llvm |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
4 |
pkgver=2.1 |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
5 |
pkgrel=2 |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
6 |
pkgdesc="Low Level Virtual Machine" |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
7 |
arch=('i686' 'x86_64') |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
8 |
url="http://llvm.org" |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
9 |
license=(custom:"University of Illinois/NCSA Open Source License") |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
10 |
depends=('libtool' 'libelf') |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
11 |
makedepends=('gcc') |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
12 |
source=("http://llvm.org/releases/$pkgver/$pkgname-$pkgver.tar.gz" LICENSE.TXT) |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
13 |
noextract=() |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
14 |
md5sums=('b930e7213b37acc934d0d163cf13af18' 'b241a4d2e9ab2a8f5fc83d849f279640') |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
15 |
|
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
16 |
build() { |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
17 |
install -D LICENSE.TXT $startdir/pkg/usr/share/licenses/llvm/COPYING |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
18 |
cd $startdir/src/$pkgname-$pkgver |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
19 |
sed -i 's:$(PROJ_prefix)/etc/llvm:/etc/llvm:' Makefile.config.in || return 1 |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
20 |
./configure --prefix=/usr --sysconfdir=/etc || return 1 |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
21 |
make || return 1 |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
22 |
make DESTDIR=$startdir/pkg install || return 1 |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
23 |
|
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
24 |
# no Hello transformation please |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
25 |
rm $startdir/pkg/usr/lib/LLVMHello* |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
26 |
# docs are installed in /usr/docs which makepkg doesn't pick up, so remove it |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
27 |
rm -rf $startdir/pkg/usr/docs |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
28 |
# no idea where these come from, but no thanks |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
29 |
rm $startdir/pkg/etc/llvm/.dir |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
30 |
rm $startdir/pkg/usr/bin/.dir |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
31 |
rm $startdir/pkg/usr/lib/.dir |
664cc1efa89d
add gdc (but it's not really working)
Anders Bergh <anders1@gmail.com>
parents:
diff
changeset
|
32 |
} |