wok view adobe-air-sdk/receipt @ rev 25031

Add fatcat
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 20 09:25:51 2022 +0000 (2022-05-20)
parents 14117b014af6
children 7f7bd3c9775e
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="https://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 }