summaryrefslogtreecommitdiff
path: root/community/llvm-amdgpu-snapshot/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/llvm-amdgpu-snapshot/PKGBUILD')
-rw-r--r--community/llvm-amdgpu-snapshot/PKGBUILD39
1 files changed, 32 insertions, 7 deletions
diff --git a/community/llvm-amdgpu-snapshot/PKGBUILD b/community/llvm-amdgpu-snapshot/PKGBUILD
index 65dd5a138..cd96dcb81 100644
--- a/community/llvm-amdgpu-snapshot/PKGBUILD
+++ b/community/llvm-amdgpu-snapshot/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 87738 2013-04-05 20:58:51Z lcarlier $
+# $Id: PKGBUILD 90882 2013-05-15 07:40:34Z lcarlier $
# Maintainer: Laurent Carlier <lordheavym@gmail.com>
# Contributor: Thomas Dziedzic < gostrc at gmail >
# Contributor: Roberto Alsina <ralsina@kde.org>
@@ -6,22 +6,26 @@
# Contributor: Anders Bergh <anders@archlinuxppc.org>
# Contributor: Tomas Wilhelmsson <tomas.wilhelmsson@gmail.com>
-pkgname=llvm-amdgpu-snapshot
+pkgbase=llvm-amdgpu-snapshot
+pkgname=('llvm-amdgpu-snapshot' 'llvm-amdgpu-lib-snapshot')
pkgver=20130403
-pkgrel=1
+pkgrel=2
pkgdesc='Low Level Virtual Machine with AMDGPU enabled to build r600g shader llvm support'
arch=('i686' 'x86_64')
url="http://llvm.org"
license=('custom:University of Illinois/NCSA Open Source License')
-depends=('libffi' 'python2' 'ocaml')
-conflicts=('llvm')
+makedepends=('libffi' 'python2' 'ocaml')
source=(ftp://ftp.archlinux.org/other/community/llvm-amdgpu/llvm-amdgpu-master.${pkgver}.tar.gz)
md5sums=('4baa7b8da9eff4811952b6f855c141ca')
-build() {
+prepare() {
cd "$srcdir"/llvm-c*
sed -i 's/python$/python2/' utils/llvm-build/llvm-build
+}
+
+build() {
+ cd "$srcdir"/llvm-c*
# Apply strip option to configure
_optimized_switch="enable"
@@ -47,16 +51,37 @@ build() {
make REQUIRES_RTTI=1
}
-package() {
+package_llvm-amdgpu-snapshot() {
+ depends=("llvm-amdgpu-lib-snapshot=${pkgver}" 'python2')
+ conflicts=('llvm')
+
cd "$srcdir"/llvm-c*
make DESTDIR="$pkgdir" install
# Remove useless files
rm -r "$pkgdir"/usr/{docs,lib/ocaml}
+ # moved to llvm-amdgpu-lib-snapshot
+ rm "$pkgdir"/usr/lib/libLLVM-3.2svn.so
# Fix permissions of static libs
chmod -x "$pkgdir"/usr/lib/lib*.a
install -Dm644 LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
+package_llvm-amdgpu-lib-snapshot() {
+ depends=('libffi' 'gcc-libs')
+
+ cd "$srcdir"/llvm-c*
+
+ make DESTDIR="$pkgdir" install
+
+ mv -v "$pkgdir"/usr/lib/libLLVM-3.2svn.so "$pkgdir"/
+
+ # Remove useless files
+ rm -r "$pkgdir"/usr/{bin,include,docs,lib/*}
+
+ mv "$pkgdir"/libLLVM-3.2svn.so "$pkgdir"/usr/lib/
+
+ install -Dm644 LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}