wok-6.x diff yandex-disk/receipt @ rev 19592
squashfs: misc fixes
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 01 11:36:41 2017 +0100 (2017-01-01) |
parents | |
children | 98ec0fc5e9e9 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/yandex-disk/receipt Sun Jan 01 11:36:41 2017 +0100 1.3 @@ -0,0 +1,59 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="yandex-disk" 1.7 +VERSION="0.1.5.978" 1.8 +CATEGORY="misc" 1.9 +SHORT_DESC="Yandex.Disk keeps your files with you at all times" 1.10 +MAINTAINER="al.bobylev@gmail.com" 1.11 +LICENSE="custom" 1.12 +WEB_SITE="https://disk.yandex.ru/" 1.13 +#TARBALL="$PACKAGE-$VERSION.deb" 1.14 +COOKOPTS="!extradesktops" 1.15 + 1.16 +DEPENDS="gcc-lib-base glibc-base zlib" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + # Get current (and the one) version 1.22 + repo='http://repo.yandex.ru/yandex-disk/deb/pool/main/y/yandex-disk/' 1.23 + url=$(wget -q -T10 -O- $repo | fgrep i386 | cut -d'"' -f2) 1.24 + # for example, url='yandex-disk_0.1.5.978_i386.deb' 1.25 + 1.26 + version=$(echo $url | cut -d'_' -f2) 1.27 + # for example, version='0.1.5.978' 1.28 + [ -n "$version" ] || exit 1 1.29 + 1.30 + # Hot changing VERSION in this receipt 1.31 + sed -i "/^VERSION=/s/.*$/VERSION=\"$version\"/" $WOK/$PACKAGE/receipt 1.32 + 1.33 + TARBALL="$PACKAGE-$version.deb" 1.34 + 1.35 + # Get current package 1.36 + [ -s $SRC/$TARBALL ] || wget -O $SRC/$TARBALL "$repo$url" 1.37 + 1.38 + # Extract filesystem from package 1.39 + mkdir -p $install 1.40 + dpkg-deb -x $SRC/$TARBALL $install 1.41 + 1.42 + # Add SliTaz desktop integration 1.43 + cp -a $stuff/usr $install 1.44 + 1.45 + # Add translations for desktop integration 1.46 + cd $stuff/po 1.47 + make DESTDIR=$install install 1.48 + make clean 1.49 +} 1.50 + 1.51 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.52 +genpkg_rules() 1.53 +{ 1.54 + cook_copy_files yandex-disk copyright *.mo \ 1.55 + publish unpublish test status *.desktop yandex-disk-helper 1.56 + cook_copy_icons 1.57 +} 1.58 + 1.59 +pre_remove() 1.60 +{ 1.61 + killall -q yandex-disk 1.62 +}