wok-6.x view steadyflow/receipt @ rev 24780
transmission: autoconf 2.70+ bug workaround
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 19 20:17:02 2022 +0000 (2022-03-19) |
parents | 165f2965ff38 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="steadyflow"
4 VERSION="0.2.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Simple download manager for GNOME"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="https://launchpad.net/steadyflow"
10 TARBALL="$PACKAGE-$VERSION.tar.xz"
11 WGET_URL="https://launchpad.net/$PACKAGE/trunk/$VERSION/+download/$TARBALL"
12 TAGS="gtk3"
14 DEPENDS="gtk+3 libgee libnotify-gtk3"
15 BUILD_DEPENDS="wget cmake vala gtk+3-dev glib-dev libgee-dev libnotify-gtk3-dev"
17 BUGS="Not able to download anything. Gnome-VFS error?"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - $WEB_SITE 2>/dev/null | \
23 sed '/Latest version is/!d;s|.*is ||'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i 's|ListStore| Gtk.&|' Steadyflow/FileListController.vala
30 mkdir -p $DESTDIR/usr/share/man/man1
31 # gee-1.0 is old while gee-0.8 is latest ;)
32 sed -i 's|gee-1.0|gee-0.8|g; s|Gee-1.0|Gee-0.8|g' \
33 $(grep -li gee-1.0 $(find . -type f))
34 sed -i 's/exit(/GLib.Process.&/' Steadyflow/Services.vala
36 mkdir build
37 cd build
38 cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&
39 make
40 make install 2>&1 | grep -v gzip:
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p \
47 $fs/usr/share/applications \
48 $fs/usr/share/pixmaps \
49 $fs/usr/share/locale
50 cp -a $install/usr/bin $fs/usr
51 cp -a $install/usr/share/glib* $fs/usr/share
52 cp -a $install/usr/share/steadyflow $fs/usr/share
54 # localization
55 . $WOK/slitaz-i18n/stuff/locale-pack.conf
56 for lang in $LOCALE_PACK; do
57 langf=$install/usr/share/locale/$lang
58 [ -d $langf ] && cp -a $langf $fs/usr/share/locale && echo -n "$lang "
59 done
60 echo
61 }