updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / adobe-air-sdk-beta / PKGBUILD
bloba8bb326923175beaed1bf6377055ec476caeb3ec
1 # Contributor: irgaly <irgaly@fird.net>
3 pkgname=adobe-air-sdk-beta
4 pkgver=2.0beta2
5 pkgrel=1
6 pkgdesc="Adobe Air Software Development Kit and Runtime Environment"
7 conflicts="adobe-air-sdk"
8 arch=('i686' 'x86_64')
9 url="http://labs.adobe.com/downloads/air2.html"
10 license=('custom')
11 source=('http://download.macromedia.com/pub/labs/air/2/b2/air2_b2_sdk_lin_020210.tbz2')
12 md5sums=('445a2a84348d3794f4302f1448495d39')
13 install=${pkgname}.install
15 build (){
16         install -d ${pkgdir}/opt/adobe-air-sdk || return 1
17         pushd ${srcdir} || return 1
18                 find . ! -name air2_b2_sdk_lin_020210.tbz2 ! -name SDK\ license.pdf | sed -e 's/\.\///g' | while read file; do
19                         if [ -d "$file" ]; then
20                                 install -d ${pkgdir}/opt/adobe-air-sdk/"$file" || return 1
21                         elif [ -h "$file" ]; then
22                                 if [ $(file "$file" | grep 'broken' -c) = "0" ]; then
23                                         ln -s $(echo $(file "$file" | grep -o -e \`[^\']*) | sed -e "s/\`//g") ${pkgdir}/opt/adobe-air-sdk/"$file" || return 1
24                                 fi || return 1
25                         else
26                                 install -D "$file" ${pkgdir}/opt/adobe-air-sdk/"$file" || return 1
27                         fi || return 1
28                 done || return 1
29                 install -d ${pkgdir}/usr/share/licences/adobe-air-sdk || return 1
30                 install -D -m644 ${srcdir}/SDK\ license.pdf ${pkgdir}/usr/share/licences/adobe-air-sdk/sdk-license.pdf || return 1
31         popd || return 1