wok-current annotate yandex-disk/receipt @ rev 22371
updated kivy (1.4.1 -> 1.10.1)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Nov 26 17:37:07 2019 +0100 (2019-11-26) |
parents | 4cdf2b95ae57 |
children |
rev | line source |
---|---|
al@19523 | 1 # SliTaz package receipt. |
al@19523 | 2 |
al@19523 | 3 PACKAGE="yandex-disk" |
al@19523 | 4 VERSION="0.1.5.978" |
al@19523 | 5 CATEGORY="misc" |
al@19523 | 6 SHORT_DESC="Yandex.Disk keeps your files with you at all times" |
al@19523 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@19523 | 8 LICENSE="custom" |
al@19523 | 9 WEB_SITE="https://disk.yandex.ru/" |
al@19523 | 10 #TARBALL="$PACKAGE-$VERSION.deb" |
al@19523 | 11 COOKOPTS="!extradesktops" |
al@19523 | 12 |
al@19523 | 13 DEPENDS="gcc-lib-base glibc-base zlib" |
al@19823 | 14 BUILD_DEPENDS="gettext" |
al@19523 | 15 |
al@19523 | 16 # Rules to configure and make the package. |
al@19523 | 17 compile_rules() |
al@19523 | 18 { |
al@19523 | 19 # Get current (and the one) version |
al@19523 | 20 repo='http://repo.yandex.ru/yandex-disk/deb/pool/main/y/yandex-disk/' |
al@19523 | 21 url=$(wget -q -T10 -O- $repo | fgrep i386 | cut -d'"' -f2) |
al@19523 | 22 # for example, url='yandex-disk_0.1.5.978_i386.deb' |
al@19523 | 23 |
al@19523 | 24 version=$(echo $url | cut -d'_' -f2) |
al@19523 | 25 # for example, version='0.1.5.978' |
al@19523 | 26 [ -n "$version" ] || exit 1 |
al@19523 | 27 |
al@19523 | 28 # Hot changing VERSION in this receipt |
al@19523 | 29 sed -i "/^VERSION=/s/.*$/VERSION=\"$version\"/" $WOK/$PACKAGE/receipt |
al@19523 | 30 |
al@19523 | 31 TARBALL="$PACKAGE-$version.deb" |
al@19523 | 32 |
al@19523 | 33 # Get current package |
al@19523 | 34 [ -s $SRC/$TARBALL ] || wget -O $SRC/$TARBALL "$repo$url" |
al@19523 | 35 |
al@19523 | 36 # Extract filesystem from package |
al@19523 | 37 mkdir -p $install |
al@19523 | 38 dpkg-deb -x $SRC/$TARBALL $install |
al@19523 | 39 |
al@19523 | 40 # Add SliTaz desktop integration |
al@19523 | 41 cp -a $stuff/usr $install |
al@19523 | 42 |
al@19523 | 43 # Add translations for desktop integration |
al@19523 | 44 cd $stuff/po |
al@19523 | 45 make DESTDIR=$install install |
al@19523 | 46 make clean |
al@19523 | 47 } |
al@19523 | 48 |
al@19523 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19523 | 50 genpkg_rules() |
al@19523 | 51 { |
al@19523 | 52 cook_copy_files yandex-disk copyright *.mo \ |
al@19523 | 53 publish unpublish test status *.desktop yandex-disk-helper |
al@19523 | 54 cook_copy_icons |
al@19523 | 55 } |
al@19523 | 56 |
al@19523 | 57 pre_remove() |
al@19523 | 58 { |
al@19523 | 59 killall -q yandex-disk |
al@19523 | 60 } |