wok-current view adobe-air-sdk/receipt @ rev 20163

Up ntfs-3g (2017.3.23), again
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jan 03 23:10:56 2018 +0100 (2018-01-03)
parents
children 9c8ba5b98eb9
line source
1 # SliTaz package receipt.
3 PACKAGE="adobe-air-sdk"
4 VERSION="2.6"
5 CATEGORY="non-free"
6 SHORT_DESC="Adobe Air Software Development Kit and Runtime Environment"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="custom"
9 WEB_SITE="http://get.adobe.com/air"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="http://airdownload.adobe.com/air/lin/download/$VERSION/AdobeAIRSDK.tbz2"
13 DEPENDS="nss gtk+ libxslt"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p \
19 $fs/opt/$PACKAGE \
20 $fs/usr/share/licenses/$PACKAGE \
21 $fs/usr/share/doc/$PACKAGE
22 cp -a $src/* $fs/opt/$PACKAGE
23 ln -s "../../../../opt/$PACKAGE/AIR SDK license.pdf" $fs/usr/share/licenses/$PACKAGE
24 ln -s "../../../../opt/$PACKAGE/AIR SDK Readme.txt" $fs/usr/share/doc/$PACKAGE
25 ln -s "../../../../opt/$PACKAGE/samples" $fs/usr/share/doc/$PACKAGE
26 ln -s "../../../../opt/$PACKAGE/templates" $fs/usr/share/doc/$PACKAGE
27 }
29 post_install()
30 {
31 cat >> $1/etc/profile <<EOT
32 export AIR_HOME=/opt/$PACKAGE
33 export PATH="\$PATH:\$AIR_HOME/bin"
34 EOT
35 }
37 post_remove()
38 {
39 sed -i '/AIR_HOME/d' $1/etc/profile
40 }