1 # Maintainer: Ryan Lee <ryan@swyro.com>
6 pkgdesc="Flex is a highly productive, free open source framework for building and maintaining \
7 expressive web applications that deploy consistently on all major browsers, desktops, \
8 and operating systems."
10 url="http://www.adobe.com/products/flex/"
11 license=('custom:Adobe Flex SDK License Agreement' 'MPL')
12 depends=('flashplugin')
13 source=('http://fpdownload.adobe.com/pub/flex/sdk/builds/flex4.6/flex_sdk_4.6.0.23201B.zip' 'flex_sdk.sh')
14 install="flex_sdk.install"
16 md5sums=('202bca98ee7b8db9cda3af01e99c688e'
17 '496fa1da44083a857cc4bf9123fe4a19')
19 _APP_DIR=$pkgdir/opt/$pkgname
20 _LICENSE_DIR=$pkgdir/usr/share/licenses/$pkgname
21 _PROFILE_DIR=$pkgdir/etc/profile.d
22 _DOC_DIR=$pkgdir/usr/share/doc/$pkgname
27 # copying package files..
28 msg "Copying package files.."
29 mkdir -p $_APP_DIR || return 1
30 install -m644 flex-sdk-description.xml $_APP_DIR || return 1
31 cp -r ant $_APP_DIR || return 1
32 cp -r asdoc $_APP_DIR || return 1
33 cp -r bin $_APP_DIR || return 1
34 cp -r frameworks $_APP_DIR || return 1
35 cp -r lib $_APP_DIR || return 1
36 cp -r samples $_APP_DIR || return 1
37 cp -r templates $_APP_DIR || return 1
38 chmod -R 0755 $_APP_DIR || return 1
40 # copying license information
41 msg "Copying license information.."
42 mkdir -p $_LICENSE_DIR || return 1
43 install -m644 license-adobesdk.htm $_LICENSE_DIR || return 1
44 install -m644 license-adobesdk-fr.htm $_LICENSE_DIR || return 1
45 install -m644 license-mpl.htm $_LICENSE_DIR || return 1
46 install -m644 "AIR SDK license.pdf" $_LICENSE_DIR || return 1
48 # copying documentation
49 msg "Copying documentation.."
50 mkdir -p $_DOC_DIR || return 1
51 install -m644 "AIR SDK Readme.txt" $_DOC_DIR || return 1
52 install -m644 readme.htm $_DOC_DIR || return 1
54 # copying profile script
55 msg "Copying profile script.."
56 mkdir -p $_PROFILE_DIR || return 1
57 install -m755 "$srcdir/flex_sdk.sh" $_PROFILE_DIR || return 1
59 # running dos2unix (available in hd2u package) on certain files
60 # dos2unix $_APP_DIR/bin/aasdoc
61 # contributed by bubla, thanks!
62 msg "Running dos2unix.."
63 sed -i -e 's/\r$//' $_APP_DIR/bin/aasdoc || return 1
65 # removing any left out exe files
66 # contributed by bubla, thanks!
67 msg "Removing any left out exe files.."
68 find $_APP_DIR -name "*.exe" -exec rm '{}' \; || return 1
70 # removing any left out bat files
71 # contributed by coverslide, thanks!
72 msg "Removing any left out bat files.."
73 find $_APP_DIR -name "*.bat" -exec rm '{}' \; || return 1
75 # removing bin/adl since it's a Mac OS X binary
76 # and to prevent conflict with Air's adl binary
77 msg "Removing bin/adl for future conflicts.."
78 rm $_APP_DIR/bin/adl || return 1