wok-next diff adobe-air-sdk/receipt @ rev 21010
Small updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Oct 12 16:40:30 2018 +0300 (2018-10-12) |
parents | 14117b014af6 |
children | f48456621a9d |
line diff
1.1 --- a/adobe-air-sdk/receipt Sat Nov 12 20:54:25 2016 +0200 1.2 +++ b/adobe-air-sdk/receipt Fri Oct 12 16:40:30 2018 +0300 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="adobe-air-sdk" 1.8 VERSION="2.6" 1.9 @@ -7,34 +7,37 @@ 1.10 MAINTAINER="al.bobylev@gmail.com" 1.11 LICENSE="custom" 1.12 WEB_SITE="http://get.adobe.com/air" 1.13 + 1.14 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.15 WGET_URL="http://airdownload.adobe.com/air/lin/download/$VERSION/AdobeAIRSDK.tbz2" 1.16 1.17 -DEPENDS="nss gtk+ libxslt" 1.18 +compile_rules() { 1.19 + mkdir -p \ 1.20 + $install/opt/$PACKAGE/ \ 1.21 + $install/usr/share/licenses/$PACKAGE/ \ 1.22 + $install/usr/share/doc/$PACKAGE-$VERSION/ 1.23 + cp -a $src/* $install/opt/$PACKAGE/ 1.24 + ln -s "../../../../opt/$PACKAGE/AIR SDK license.pdf" $install/usr/share/licenses/$PACKAGE/ 1.25 + ln -s "../../../../opt/$PACKAGE/AIR SDK Readme.txt" $install/usr/share/doc/$PACKAGE-$VERSION/ 1.26 + ln -s "../../../../opt/$PACKAGE/samples" $install/usr/share/doc/$PACKAGE-$VERSION/ 1.27 + ln -s "../../../../opt/$PACKAGE/templates" $install/usr/share/doc/$PACKAGE-$VERSION/ 1.28 1.29 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.30 -genpkg_rules() 1.31 -{ 1.32 - mkdir -p \ 1.33 - $fs/opt/$PACKAGE \ 1.34 - $fs/usr/share/licenses/$PACKAGE \ 1.35 - $fs/usr/share/doc/$PACKAGE 1.36 - cp -a $src/* $fs/opt/$PACKAGE 1.37 - ln -s "../../../../opt/$PACKAGE/AIR SDK license.pdf" $fs/usr/share/licenses/$PACKAGE 1.38 - ln -s "../../../../opt/$PACKAGE/AIR SDK Readme.txt" $fs/usr/share/doc/$PACKAGE 1.39 - ln -s "../../../../opt/$PACKAGE/samples" $fs/usr/share/doc/$PACKAGE 1.40 - ln -s "../../../../opt/$PACKAGE/templates" $fs/usr/share/doc/$PACKAGE 1.41 + chown -Rch root:root $install 1.42 + chmod -Rc u+w $install 1.43 } 1.44 1.45 -post_install() 1.46 -{ 1.47 +genpkg_rules() { 1.48 + copy @std 1.49 + DEPENDS="nss gtk+ libxslt" 1.50 +} 1.51 + 1.52 +post_install() { 1.53 cat >> $1/etc/profile <<EOT 1.54 export AIR_HOME=/opt/$PACKAGE 1.55 export PATH="\$PATH:\$AIR_HOME/bin" 1.56 EOT 1.57 } 1.58 1.59 -post_remove() 1.60 -{ 1.61 +post_remove() { 1.62 sed -i '/AIR_HOME/d' $1/etc/profile 1.63 }