wok-next annotate yandex-disk/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | 270c09f6a958 |
children |
rev | line source |
---|---|
al@20934 | 1 # SliTaz package receipt v2. |
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@20934 | 10 |
al@20934 | 11 case $ARCH in |
al@20934 | 12 i?86) TARBALL="yandex-disk_${VERSION}_i386.deb";; |
al@20934 | 13 x86_64) TARBALL="yandex-disk_${VERSION}_amd64.deb";; |
al@20934 | 14 esac |
al@20934 | 15 WGET_URL="http://repo.yandex.ru/yandex-disk/deb/pool/main/y/yandex-disk/$TARBALL" |
al@20934 | 16 |
al@19523 | 17 COOKOPTS="!extradesktops" |
al@19523 | 18 |
al@21020 | 19 BUILD_DEPENDS="gettext-dev" |
al@19523 | 20 |
al@20934 | 21 compile_rules() { |
al@19523 | 22 # Extract filesystem from package |
al@19523 | 23 mkdir -p $install |
al@19523 | 24 dpkg-deb -x $SRC/$TARBALL $install |
al@19523 | 25 |
al@19523 | 26 # Add SliTaz desktop integration |
al@19523 | 27 cp -a $stuff/usr $install |
al@19523 | 28 |
al@19523 | 29 # Add translations for desktop integration |
al@19523 | 30 cd $stuff/po |
al@19523 | 31 make DESTDIR=$install install |
al@19523 | 32 make clean |
al@19523 | 33 } |
al@19523 | 34 |
al@20934 | 35 genpkg_rules() { |
al@19783 | 36 copy yandex-disk copyright *.mo \ |
al@20604 | 37 publish unpublish test status *.desktop yandex-disk-helper \ |
al@20604 | 38 @ico |
al@21020 | 39 DEPENDS="gcc-lib-base glibc-base zlib" |
al@19523 | 40 } |
al@19523 | 41 |
al@20934 | 42 pre_remove() { |
al@19523 | 43 killall -q yandex-disk |
al@19523 | 44 } |