wok-next view adobe-air-sdk/receipt @ rev 21722

efivar: typo in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:31:46 2020 +0000 (2020-09-01)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
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 HOST_ARCH="i486"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="http://airdownload.adobe.com/air/lin/download/$VERSION/AdobeAIRSDK.tbz2"
15 DEPENDS_std="nss gtk2 libxslt"
17 compile_rules() {
18 mkdir -p \
19 $install/opt/$PACKAGE/ \
20 $install/usr/share/licenses/$PACKAGE/ \
21 $install/usr/share/doc/$PACKAGE-$VERSION/
22 cp -a $src/* $install/opt/$PACKAGE/
23 ln -s "../../../../opt/$PACKAGE/AIR SDK license.pdf" $install/usr/share/licenses/$PACKAGE/
24 ln -s "../../../../opt/$PACKAGE/AIR SDK Readme.txt" $install/usr/share/doc/$PACKAGE-$VERSION/
25 ln -s "../../../../opt/$PACKAGE/samples" $install/usr/share/doc/$PACKAGE-$VERSION/
26 ln -s "../../../../opt/$PACKAGE/templates" $install/usr/share/doc/$PACKAGE-$VERSION/
28 chown -Rch root:root $install
29 chmod -Rc u+w $install
30 }
32 post_install() {
33 cat >> $1/etc/profile <<EOT
34 export AIR_HOME=/opt/$PACKAGE
35 export PATH="\$PATH:\$AIR_HOME/bin"
36 EOT
37 }
39 post_remove() {
40 sed -i '/AIR_HOME/d' $1/etc/profile
41 }