wok-next view adobe-air-sdk/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
parents | 14117b014af6 |
children | f48456621a9d |
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="http://get.adobe.com/air"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://airdownload.adobe.com/air/lin/download/$VERSION/AdobeAIRSDK.tbz2"
14 compile_rules() {
15 mkdir -p \
16 $install/opt/$PACKAGE/ \
17 $install/usr/share/licenses/$PACKAGE/ \
18 $install/usr/share/doc/$PACKAGE-$VERSION/
19 cp -a $src/* $install/opt/$PACKAGE/
20 ln -s "../../../../opt/$PACKAGE/AIR SDK license.pdf" $install/usr/share/licenses/$PACKAGE/
21 ln -s "../../../../opt/$PACKAGE/AIR SDK Readme.txt" $install/usr/share/doc/$PACKAGE-$VERSION/
22 ln -s "../../../../opt/$PACKAGE/samples" $install/usr/share/doc/$PACKAGE-$VERSION/
23 ln -s "../../../../opt/$PACKAGE/templates" $install/usr/share/doc/$PACKAGE-$VERSION/
25 chown -Rch root:root $install
26 chmod -Rc u+w $install
27 }
29 genpkg_rules() {
30 copy @std
31 DEPENDS="nss gtk+ libxslt"
32 }
34 post_install() {
35 cat >> $1/etc/profile <<EOT
36 export AIR_HOME=/opt/$PACKAGE
37 export PATH="\$PATH:\$AIR_HOME/bin"
38 EOT
39 }
41 post_remove() {
42 sed -i '/AIR_HOME/d' $1/etc/profile
43 }