wok annotate yandex-disk/receipt @ rev 19615

Up: mpfr (3.1.5)
author Alexander Medvedev <devl547@gmail.com>
date Mon Jan 09 19:50:23 2017 +0000 (2017-01-09)
parents
children 98ec0fc5e9e9
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@19523 14
al@19523 15 # Rules to configure and make the package.
al@19523 16 compile_rules()
al@19523 17 {
al@19523 18 # Get current (and the one) version
al@19523 19 repo='http://repo.yandex.ru/yandex-disk/deb/pool/main/y/yandex-disk/'
al@19523 20 url=$(wget -q -T10 -O- $repo | fgrep i386 | cut -d'"' -f2)
al@19523 21 # for example, url='yandex-disk_0.1.5.978_i386.deb'
al@19523 22
al@19523 23 version=$(echo $url | cut -d'_' -f2)
al@19523 24 # for example, version='0.1.5.978'
al@19523 25 [ -n "$version" ] || exit 1
al@19523 26
al@19523 27 # Hot changing VERSION in this receipt
al@19523 28 sed -i "/^VERSION=/s/.*$/VERSION=\"$version\"/" $WOK/$PACKAGE/receipt
al@19523 29
al@19523 30 TARBALL="$PACKAGE-$version.deb"
al@19523 31
al@19523 32 # Get current package
al@19523 33 [ -s $SRC/$TARBALL ] || wget -O $SRC/$TARBALL "$repo$url"
al@19523 34
al@19523 35 # Extract filesystem from package
al@19523 36 mkdir -p $install
al@19523 37 dpkg-deb -x $SRC/$TARBALL $install
al@19523 38
al@19523 39 # Add SliTaz desktop integration
al@19523 40 cp -a $stuff/usr $install
al@19523 41
al@19523 42 # Add translations for desktop integration
al@19523 43 cd $stuff/po
al@19523 44 make DESTDIR=$install install
al@19523 45 make clean
al@19523 46 }
al@19523 47
al@19523 48 # Rules to gen a SliTaz package suitable for Tazpkg.
al@19523 49 genpkg_rules()
al@19523 50 {
al@19523 51 cook_copy_files yandex-disk copyright *.mo \
al@19523 52 publish unpublish test status *.desktop yandex-disk-helper
al@19523 53 cook_copy_icons
al@19523 54 }
al@19523 55
al@19523 56 pre_remove()
al@19523 57 {
al@19523 58 killall -q yandex-disk
al@19523 59 }