updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / cellsdk / PKGBUILD
blob6966f615a308bff8a6d834bb71568338517835fb
1 # Contributor: Tomas Groth <tomasgroth@yahoo.dk>
3 # MUST be run as root!! It is needed for mounting the iso images
4 # You'll have to download the SDK iso's yourself from IBM's website 
5 # (requires registration):
6 # http://www.ibm.com/developerworks/power/cell/downloads.html?S_TACT=105AGX16&S_CMP=LP
8 # tcl and tk versions must be pre-8.5, and build without threads (--disable-threads).
10 # There are probably still some rough edges, and something that I forgot to
11 # mention, but it works for me so far... For now only support for x86_64, but
12 # should be relatively easy to add i686 support, but since I don't have a
13 # working i686 box I haven't tried, but feel free to mail me patches.
15 pkgname=cellsdk
16 pkgver=3.1
17 pkgrel=1
18 pkgdesc="SDK for the Cell Broadband Engine Architecture"
19 arch=(x86_64)
20 url="http://www.ibm.com/developerworks/power/cell/downloads.html?S_TACT=105AGX16&S_CMP=LP"
21 depends=(tcl tk expat perl freeglut gawk gcc bison flex)
22 makedepends=(rpmextract)
23 conflicts=()
24 license="GPL"
25 options=(!strip)
26 install=cellsdk.install
27 _sourcehost=http://www.bsc.es/projects/deepcomputing/linuxoncell/cellsimulator/sdk3.1/CellSDK-Open-Fedora/x86_64
28 source=(
29     $_sourcehost/libspe2-cross-devel-2.2.80-132.noarch.rpm
30         $_sourcehost/netpbm-cross-devel-10.35.41-1.fc9.noarch.rpm
31         $_sourcehost/ppu-binutils-2.18.50-21.i686.rpm
32         $_sourcehost/ppu-binutils-debuginfo-2.18.50-21.i686.rpm
33         $_sourcehost/ppu-gcc-4.1.1-166.i686.rpm
34         $_sourcehost/ppu-gcc-c++-4.1.1-166.i686.rpm
35         $_sourcehost/ppu-gcc-debuginfo-4.1.1-166.i686.rpm
36         $_sourcehost/ppu-gcc-fortran-4.1.1-166.i686.rpm
37         $_sourcehost/ppu-gcc-gnat-4.1.1-166.i686.rpm
38         $_sourcehost/ppu-gdb-6.8.50-13.i686.rpm
39         $_sourcehost/ppu-gdb-debuginfo-6.8.50-13.i686.rpm
40         $_sourcehost/ppu-sysroot64-f9-2.noarch.rpm
41         $_sourcehost/ppu-sysroot-f9-2.noarch.rpm
42         $_sourcehost/spu-binutils-2.18.50-21.i686.rpm
43         $_sourcehost/spu-binutils-debuginfo-2.18.50-21.i686.rpm
44         $_sourcehost/spu-gcc-4.1.1-166.i686.rpm
45         $_sourcehost/spu-gcc-c++-4.1.1-166.i686.rpm
46         $_sourcehost/spu-gcc-debuginfo-4.1.1-166.i686.rpm
47         $_sourcehost/spu-gcc-fortran-4.1.1-166.i686.rpm
48         $_sourcehost/spu-gdb-6.8.50-13.i686.rpm
49         $_sourcehost/spu-gdb-debuginfo-6.8.50-13.i686.rpm
50         $_sourcehost/spu-newlib-1.16.0-17.i686.rpm
51         $_sourcehost/spu-newlib-debuginfo-1.16.0-17.i686.rpm
52         $_sourcehost/sysroot_image-3.1-1.noarch.rpm
53         systemsim-cell-3.1-25.f9.x86_64.rpm
54         CellSDK-Devel-Fedora_3.1.0.0.0.iso
55         CellSDK-Extras-Fedora_3.1.0.0.0.iso
56         systemsim-cell.sh)
57 md5sums=('ff2b2c9b3a71066ba6506155c2c6ef79'
58          '9824d3492b2943181e9271b04755a710'
59          'e593181f9392ab8bd1d5fce88660c385'
60          'a4ce7508ca74e0ef8af60462bc90d63d'
61          'b77bbe5099cbcdd913127e2134535c39'
62          '013e8a7e1325c2d423b6c1d69e6a3362'
63          '6183d42fa327594e61ffb9aff62b81c0'
64          'd8c7d09c834b9cecedc41cd4fb5302e6'
65          'd6ce82f181175deaf89d22f69eeef2be'
66          'd37999484707302faa1c3482c1dc014b'
67          '163129f7649891b48e25d0c29ee42643'
68          '2cea25b96dba3c5edc77673548d3deff'
69          'ef087d2c38ac35f7fff0ff6dabb4f282'
70          '66e83cafbde49e9e414a158e9e67aa62'
71          '1e846fed78a193892bc8f3505dc15750'
72          'd9d4dfa53aeb54eb4ff274eefef22236'
73          'a4a29728157d0676e3d280fc846eec97'
74          '5084564737885f275181ab8b1c796e07'
75          'de7960396e73f66431d37b45c1584e11'
76          '3342e06ab171dff7a1fbe2f77614108a'
77          '702fa9166a3bb0745659ec02ef764a83'
78          'ece9437651dedd3babcad1e889b49af3'
79          '43eaf4847ae2f540699d25598c5944a1'
80          '1e55e85bb23c779ac3f95a30d3ca3025'
81          '4b069cebf26bd16cec8e768d2c68e830'
82          '7965c321f81ab1ca5ab14991b90760d5'
83          'd97eb4b06f45df618eda8079e4d7bc68'
84          '045937702389d3fd8586d9047050fd0f'
85          'f9582fc6f453d63b38e87622f2a12cd1')
87 build() {
89   # Get the stuff from the iso-images
90   mkdir -p $startdir/loop
91   mkdir -p $startdir/pkg/
92   cd $startdir/pkg/
94   # First the Devel iso
95   mount -o loop $startdir/src/CellSDK-Devel-Fedora_3.1.0.0.0.iso $startdir/loop
96   for x in $startdir/loop/x86_64/*.rpm
97   do
98     rpmextract.sh $x
99   done
100   rpmextract.sh $startdir/loop/cell-install-3.1.0-0.0.noarch.rpm
101   umount $startdir/loop
103   # Then the Extras iso
104   mount -o loop $startdir/src/CellSDK-Extras-Fedora_3.1.0.0.0.iso $startdir/loop
105   for y in $startdir/loop/x86_64/*.rpm
106   do
107     rpmextract.sh $y
108   done
109   umount $startdir/loop
111   # Extract the stuff from the rpms
112   for z in $startdir/src/*.rpm
113   do
114     rpmextract.sh $z
115   done
117   mkdir -p $startdir/pkg/etc/profile.d
118   cp $startdir/systemsim-cell.sh $startdir/pkg/etc/profile.d/systemsim-cell.sh