updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / amdstream-old / PKGBUILD
blob24d22b5d7761bff5dad509a55e82e328bc47fc27
1 # Maintainer: Vojtech Kral <kral.vojtech at gmail dot com>
2 # Contributor: Dawid Wrobel <dawid at klej dot net>
4 pkgname=amdstream-old
5 pkgver=1.4.0_beta
6 pkgrel=3
7 pkgdesc="AMD ATI Stream SDK, old version, provided for convenience"
8 arch=(i686 x86_64)
9 url="http://ati.amd.com/technology/streamcomputing/sdkdwnld.html"
10 depends=("catalyst>=9.3")
11 makedepends=(rpmextract)
12 source=("http://download-developer.amd.com/GPU/executables/atistream-$pkgver-lnx32.tar.gzip")
13 license=("custom")
14 md5sums=('a6b2b04d62c925d5d7545210d3108440')
16 _arch="i386"
17 [ "$CARCH" = "x86_64" ] && source=("http://download-developer.amd.com/GPU/executables/atistream-$pkgver-lnx64.tar.gzip")
18 [ "$CARCH" = "x86_64" ] && md5sums=('3c9e053d964b438f2a6b29eaf483c6c0')
19 [ "$CARCH" = "x86_64" ] && _arch=("x86_64")
21 build() {
22    cd $startdir/src
24    #deal with atistream-brook
25    dd if=atistream-brook-$pkgver.${_arch}.run of=atistreambrook.tar.gz bs=16384 skip=1 &> /dev/null || return 1
26    tar -xzf atistreambrook.tar.gz &> /dev/null || return 1
27    rpmextract.sh atistream-brook-$pkgver-1.${_arch}.rpm &> /dev/null|| return 1
29    #deal with atistram-cal
30    dd if=atistream-cal-$pkgver.${_arch}.run of=atistreamcal.tar.gz bs=16384 skip=1 &> /dev/null
31    tar -xzf atistreamcal.tar.gz &> /dev/null || return 1
32    rpmextract.sh atistream-cal-$pkgver-1.${_arch}.rpm &> /dev/null || return 1
34    #install both
35    install -m644 -D EndUserLicense.txt $startdir/pkg/usr/share/licenses/amdstream/license.txt
36    cp -R $startdir/src/usr $startdir/pkg/