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