wok-next annotate yandex-disk/receipt @ rev 20934
Updates...
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Aug 23 19:56:09 2018 +0300 (2018-08-23) |
parents | 10df65db91ad |
children | d5aab818505e |
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@19523 | 19 DEPENDS="gcc-lib-base glibc-base zlib" |
al@19655 | 20 BUILD_DEPENDS="gettext" |
al@19523 | 21 |
al@20934 | 22 compile_rules() { |
al@19523 | 23 # Extract filesystem from package |
al@19523 | 24 mkdir -p $install |
al@19523 | 25 dpkg-deb -x $SRC/$TARBALL $install |
al@19523 | 26 |
al@19523 | 27 # Add SliTaz desktop integration |
al@19523 | 28 cp -a $stuff/usr $install |
al@19523 | 29 |
al@19523 | 30 # Add translations for desktop integration |
al@19523 | 31 cd $stuff/po |
al@19523 | 32 make DESTDIR=$install install |
al@19523 | 33 make clean |
al@19523 | 34 } |
al@19523 | 35 |
al@20934 | 36 genpkg_rules() { |
al@19783 | 37 copy yandex-disk copyright *.mo \ |
al@20604 | 38 publish unpublish test status *.desktop yandex-disk-helper \ |
al@20604 | 39 @ico |
al@19523 | 40 } |
al@19523 | 41 |
al@20934 | 42 pre_remove() { |
al@19523 | 43 killall -q yandex-disk |
al@19523 | 44 } |