wok-next rev 19883
Up geeqie, lxterminal, xcursor-aero, xcursor-comix, xcursor-human, xcursor-obsidian.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Oct 06 17:00:35 2017 +0300 (2017-10-06) |
parents | dbe191849b85 |
children | dd2a2e1ab4d9 |
files | geeqie/receipt geeqie/stuff/patches/0001-Work-around-changed-c-11-std-string-implementation.patch geeqie/stuff/patches/geeqie-desktop.patch geeqie/stuff/patches/series lxterminal-locales/receipt lxterminal/receipt lxterminal/stuff/patches/lxterminal-icon.patch lxterminal/stuff/patches/series xcursor-aero/receipt xcursor-comix/receipt xcursor-comix/stuff/symdup.sh xcursor-human/receipt xcursor-obsidian/receipt |
line diff
1.1 --- a/geeqie/receipt Fri Oct 06 03:22:11 2017 +0300 1.2 +++ b/geeqie/receipt Fri Oct 06 17:00:35 2017 +0300 1.3 @@ -1,34 +1,26 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="geeqie" 1.8 -VERSION="1.0" 1.9 +VERSION="1.3" 1.10 CATEGORY="utilities" 1.11 -SHORT_DESC="Application designed to test GTK+ performance. based on gqview" 1.12 +SHORT_DESC="A lightweight image browser and viewer" 1.13 MAINTAINER="devl547@gmail.com" 1.14 LICENSE="GPL2" 1.15 -TARBALL="$PACKAGE-$VERSION.tar.gz" 1.16 -WEB_SITE="http://geeqie.sourceforge.net/" 1.17 -WGET_URL="https://gitorious.org/$PACKAGE/$PACKAGE/archive/v$VERSION.tar.gz" 1.18 +WEB_SITE="http://www.geeqie.org/" 1.19 1.20 -DEPENDS="gtk+ lcms" 1.21 -BUILD_DEPENDS="gettext intltool gtk+-dev lcms-dev wget automake" 1.22 +TARBALL="$PACKAGE-$VERSION.tar.xz" 1.23 +WGET_URL="http://www.geeqie.org/$TARBALL" 1.24 1.25 -# Rules to configure and make the package. 1.26 -compile_rules() 1.27 -{ 1.28 - cd $src 1.29 - ./autogen.sh 1.30 - ./configure --prefix=/usr --infodir=/usr/share/info \ 1.31 - --mandir=/usr/share/man $CONFIGURE_ARGS && 1.32 - make && 1.33 - make install 1.34 +BUILD_DEPENDS="automake gettext intltool lcms2-dev gtk+-dev" 1.35 + 1.36 +compile_rules() { 1.37 + ./autogen.sh \ 1.38 + $CONFIGURE_ARGS && 1.39 + make && make install 1.40 } 1.41 1.42 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.43 -genpkg_rules() 1.44 -{ 1.45 - mkdir -p $fs/usr/ 1.46 - cp -a $install/usr/bin $fs/usr 1.47 - cp -a $install/usr/lib $fs/usr 1.48 - cp -a $install/usr/share/ $fs/usr 1.49 +genpkg_rules() { 1.50 + copy @std 1.51 + DEPENDS="atk cairo fontconfig freetype gdk-pixbuf glib gtk+ lcms2 \ 1.52 + libjpeg-turbo pango tiff" 1.53 }
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/geeqie/stuff/patches/0001-Work-around-changed-c-11-std-string-implementation.patch Fri Oct 06 17:00:35 2017 +0300 2.3 @@ -0,0 +1,66 @@ 2.4 +From 0b044d1d685307e5755917e31d56a1a3104cd505 Mon Sep 17 00:00:00 2001 2.5 +From: David Kalnischkies <david@kalnischkies.de> 2.6 +Date: Fri, 27 May 2016 12:04:40 +0100 2.7 +Subject: [PATCH] Work around changed c++11 std::string implementation 2.8 + 2.9 +Bug was already partly fixed by 96db62d but there was even more 2.10 +positions that was unseen by Solomon. 2.11 + 2.12 +The patch is originally from Debian bug report #800350. 2.13 + 2.14 +Signed-off-by: Klaus Ethgen <Klaus@Ethgen.de> 2.15 +--- 2.16 + src/exiv2.cc | 12 +++++++----- 2.17 + 1 file changed, 7 insertions(+), 5 deletions(-) 2.18 + 2.19 +diff --git a/src/exiv2.cc b/src/exiv2.cc 2.20 +index 1dbe1182..49b8e07c 100644 2.21 +--- a/src/exiv2.cc 2.22 ++++ b/src/exiv2.cc 2.23 +@@ -25,6 +25,7 @@ 2.24 + #include <exiv2/image.hpp> 2.25 + #include <exiv2/exif.hpp> 2.26 + #include <iostream> 2.27 ++#include <string> 2.28 + 2.29 + // EXIV2_TEST_VERSION is defined in Exiv2 0.15 and newer. 2.30 + #ifndef EXIV2_TEST_VERSION 2.31 +@@ -1140,8 +1141,9 @@ guchar *exif_get_preview(ExifData *exif, guint *data_len, gint requested_width, 2.32 + 2.33 + if (!exif->image()) return NULL; 2.34 + 2.35 ++ std::string const path = exif->image()->io().path(); 2.36 + /* given image pathname, first do simple (and fast) file extension test */ 2.37 +- gboolean is_raw = filter_file_class(exif->image()->io().path().c_str(), FORMAT_CLASS_RAWIMAGE); 2.38 ++ gboolean is_raw = filter_file_class(path.c_str(), FORMAT_CLASS_RAWIMAGE); 2.39 + 2.40 + if (!is_raw && requested_width == 0) return NULL; 2.41 + 2.42 +@@ -1241,10 +1243,10 @@ extern "C" guchar *exif_get_preview(ExifData *exif, guint *data_len, gint reques 2.43 + if (!exif) return NULL; 2.44 + if (!exif->image()) return NULL; 2.45 + 2.46 +- const char* path = exif->image()->io().path().c_str(); 2.47 ++ std::string const path = exif->image()->io().path(); 2.48 + 2.49 + /* given image pathname, first do simple (and fast) file extension test */ 2.50 +- if (!filter_file_class(path, FORMAT_CLASS_RAWIMAGE)) return NULL; 2.51 ++ if (!filter_file_class(path.c_str(), FORMAT_CLASS_RAWIMAGE)) return NULL; 2.52 + 2.53 + try { 2.54 + struct stat st; 2.55 +@@ -1255,9 +1257,9 @@ extern "C" guchar *exif_get_preview(ExifData *exif, guint *data_len, gint reques 2.56 + 2.57 + RawFile rf(exif->image()->io()); 2.58 + offset = rf.preview_offset(); 2.59 +- DEBUG_1("%s: offset %lu", path, offset); 2.60 ++ DEBUG_1("%s: offset %lu", path.c_str(), offset); 2.61 + 2.62 +- fd = open(path, O_RDONLY); 2.63 ++ fd = open(path.c_str(), O_RDONLY); 2.64 + if (fd == -1) 2.65 + { 2.66 + return NULL; 2.67 +-- 2.68 +2.13.2 2.69 +
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/geeqie/stuff/patches/geeqie-desktop.patch Fri Oct 06 17:00:35 2017 +0300 3.3 @@ -0,0 +1,12 @@ 3.4 +--- a/geeqie.desktop.in 3.5 ++++ b/geeqie.desktop.in 3.6 +@@ -6,9 +6,5 @@ 3.7 + Icon=geeqie 3.8 + Type=Application 3.9 + Terminal=false 3.10 +-# Startup notification disabled, since the remote -r switch may not open a new window... 3.11 +-#StartupNotify=false 3.12 +-#StartupWMClass=geeqie 3.13 +-NotShowIn=X-Geeqie; 3.14 + Categories=Graphics;Viewer; 3.15 + MimeType=application/x-navi-animation;image/bmp;image/x-bmp;image/x-MS-bmp;image/gif;image/x-icon;image/jpeg;image/png;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-cmu-raster;image/x-sun-raster;image/x-tga;image/tiff;image/vnd.wap.wbmp;image/x-xbitmap;image/x-xpixmap;image/svg;image/svg+xml;image/x-png;image/xpm;image/x-ico;image/x-pcx;
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/geeqie/stuff/patches/series Fri Oct 06 17:00:35 2017 +0300 4.3 @@ -0,0 +1,2 @@ 4.4 +0001-Work-around-changed-c-11-std-string-implementation.patch 4.5 +geeqie-desktop.patch
5.1 --- a/lxterminal-locales/receipt Fri Oct 06 03:22:11 2017 +0300 5.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 5.3 @@ -1,21 +0,0 @@ 5.4 -# SliTaz package receipt. 5.5 - 5.6 -PACKAGE="lxterminal-locales" 5.7 -VERSION="0.2.0" 5.8 -CATEGORY="localization" 5.9 -SHORT_DESC="LXDE terminal emulator locale files" 5.10 -MAINTAINER="gokhlayeh@slitaz.org" 5.11 -LICENSE="GPL2" 5.12 -WANTED="lxterminal" 5.13 -WEB_SITE="http://lxde.org" 5.14 -TAGS="LXDE locale" 5.15 - 5.16 -DEPENDS="lxterminal" 5.17 - 5.18 -# Rules to gen a SliTaz package suitable for Tazpkg. 5.19 -genpkg_rules() 5.20 -{ 5.21 - mkdir -p $fs/usr/share 5.22 - cp -a $install/usr/share/locale $fs/usr/share 5.23 -} 5.24 -
6.1 --- a/lxterminal/receipt Fri Oct 06 03:22:11 2017 +0300 6.2 +++ b/lxterminal/receipt Fri Oct 06 17:00:35 2017 +0300 6.3 @@ -1,39 +1,39 @@ 6.4 -# SliTaz package receipt. 6.5 +# SliTaz package receipt v2. 6.6 6.7 PACKAGE="lxterminal" 6.8 -VERSION="0.2.0" 6.9 -CATEGORY="utilities" 6.10 +VERSION="0.3.0" 6.11 +CATEGORY="system-tools" 6.12 SHORT_DESC="LXDE terminal emulator" 6.13 MAINTAINER="gokhlayeh@slitaz.org" 6.14 LICENSE="GPL2" 6.15 -SUGGESTED="lxterminal-locales" 6.16 -TARBALL="$PACKAGE-$VERSION.tar.gz" 6.17 -WEB_SITE="http://lxde.org" 6.18 +WEB_SITE="https://wiki.lxde.org/en/LXTerminal" 6.19 + 6.20 +TARBALL="$PACKAGE-$VERSION.tar.xz" 6.21 WGET_URL="$SF_MIRROR/lxde/$TARBALL" 6.22 -TAGS="LXDE terminal" 6.23 6.24 -DEPENDS="vte gtk+" 6.25 -BUILD_DEPENDS="intltool vte-dev vte-terminal gtk+-dev" 6.26 +BUILD_DEPENDS="intltool gtk+-dev vte-gtk2-dev" 6.27 +SPLIT="lxterminal-locales" 6.28 6.29 -# Rules to configure and make the package. 6.30 -compile_rules() 6.31 -{ 6.32 - ./configure \ 6.33 - --prefix=/usr \ 6.34 - --infodir=/usr/share/info \ 6.35 - --mandir=/usr/share/man \ 6.36 - $CONFIGURE_ARGS && 6.37 - make && make DESTDIR=$DESTDIR install 6.38 +compile_rules() { 6.39 + sed -i '/_Keywords=/d; /TryExec=/d' $src/data/lxterminal.desktop.in 6.40 + 6.41 + ./configure $CONFIGURE_ARGS && make && make install 6.42 } 6.43 6.44 -# Rules to gen a SliTaz package suitable for Tazpkg. 6.45 -genpkg_rules() 6.46 -{ 6.47 - mkdir -p $fs/usr 6.48 - cp -a $install/usr/bin $fs/usr 6.49 - cp -a $install/usr/share $fs/usr 6.50 - 6.51 - # Remove man & locales 6.52 - rm -rf $fs/usr/share/man 6.53 - rm -rf $fs/usr/share/locale 6.54 +genpkg_rules() { 6.55 + case $PACKAGE in 6.56 + lxterminal) 6.57 + copy @std 6.58 + rm -r $fs/usr/share/icons 6.59 + DEPENDS="atk cairo fontconfig freetype gdk-pixbuf glib gtk+ pango \ 6.60 + vte-gtk2 xorg-libX11 xorg-libXext" 6.61 + SUGGESTED="lxterminal-locales" 6.62 + TAGS="LXDE terminal" 6.63 + ;; 6.64 + *-locales) 6.65 + copy *.mo 6.66 + CAT="localization|locale files" 6.67 + DEPENDS="lxterminal" 6.68 + ;; 6.69 + esac 6.70 }
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 7.2 +++ b/lxterminal/stuff/patches/lxterminal-icon.patch Fri Oct 06 17:00:35 2017 +0300 7.3 @@ -0,0 +1,68 @@ 7.4 +Set Freedesktop standard icon 7.5 + 7.6 +--- a/src/lxterminal.c 7.7 ++++ b/src/lxterminal.c 7.8 +@@ -577,14 +577,7 @@ 7.9 + NULL, GTK_RESPONSE_OK, 7.10 + NULL); 7.11 + gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_OK); 7.12 +- if (gtk_icon_theme_has_icon(gtk_icon_theme_get_default(), "lxterminal")) 7.13 +- { 7.14 +- gtk_window_set_icon_name(GTK_WINDOW(dialog), "lxterminal"); 7.15 +- } 7.16 +- else 7.17 +- { 7.18 +- gtk_window_set_icon_from_file(GTK_WINDOW(dialog), PACKAGE_DATA_DIR "/icons/hicolor/128x128/apps/lxterminal.png", NULL); 7.19 +- } 7.20 ++ gtk_window_set_icon_name(GTK_WINDOW(dialog), "utilities-terminal"); 7.21 + g_signal_connect(G_OBJECT(dialog), "response", G_CALLBACK(terminal_name_tab_response_event), term); 7.22 + GtkWidget * dialog_item = gtk_entry_new(); 7.23 + g_object_set_data(G_OBJECT(dialog), "entry", (gpointer) dialog_item); 7.24 +@@ -746,7 +739,7 @@ 7.25 + gtk_container_set_border_width(GTK_CONTAINER(about_dlg), 2); 7.26 + gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(about_dlg), VERSION); 7.27 + gtk_about_dialog_set_program_name (GTK_ABOUT_DIALOG(about_dlg), _("LXTerminal")); 7.28 +- gtk_about_dialog_set_logo(GTK_ABOUT_DIALOG(about_dlg), gdk_pixbuf_new_from_file(PACKAGE_DATA_DIR "/icons/hicolor/128x128/apps/lxterminal.png", NULL)); 7.29 ++ gtk_about_dialog_set_logo_icon_name(GTK_ABOUT_DIALOG(about_dlg), "utilities-terminal"); 7.30 + gtk_about_dialog_set_copyright(GTK_ABOUT_DIALOG(about_dlg), _("Copyright (C) 2008-2017")); 7.31 + gtk_about_dialog_set_comments(GTK_ABOUT_DIALOG(about_dlg), _("Terminal emulator for LXDE project")); 7.32 + gtk_about_dialog_set_license(GTK_ABOUT_DIALOG(about_dlg), "This program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU General Public License\nas published by the Free Software Foundation; either version 2\nof the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program; if not, write to the Free Software\nFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA."); 7.33 +@@ -1490,15 +1483,7 @@ 7.34 + #endif 7.35 + 7.36 + /* Set window icon. */ 7.37 +- if (gtk_icon_theme_has_icon(gtk_icon_theme_get_default(), "lxterminal")) 7.38 +- { 7.39 +- gtk_window_set_icon_name(GTK_WINDOW(terminal->window), "lxterminal"); 7.40 +- } 7.41 +- else 7.42 +- { 7.43 +- gtk_window_set_icon_from_file(GTK_WINDOW(terminal->window), 7.44 +- PACKAGE_DATA_DIR "/icons/hicolor/128x128/apps/lxterminal.png", NULL); 7.45 +- } 7.46 ++ gtk_window_set_icon_name(GTK_WINDOW(terminal->window), "utilities-terminal"); 7.47 + g_object_weak_ref(G_OBJECT(terminal->window), (GWeakNotify) terminal_window_exit, terminal); 7.48 + 7.49 + /* Create a vertical box as the child of the toplevel window. */ 7.50 +--- a/src/preferences.c 7.51 ++++ b/src/preferences.c 7.52 +@@ -272,7 +272,7 @@ 7.53 + 7.54 + GtkDialog * dialog = GTK_DIALOG(gtk_builder_get_object(builder, "lxterminal_preferences")); 7.55 + gtk_window_set_title(GTK_WINDOW(dialog), _("LXTerminal")); 7.56 +- gtk_window_set_icon_from_file(GTK_WINDOW(dialog), PACKAGE_DATA_DIR "/icons/hicolor/128x128/apps/lxterminal.png", NULL); 7.57 ++ gtk_window_set_icon_name(GTK_WINDOW(dialog), "utilities-terminal"); 7.58 + 7.59 + GtkWidget * w = GTK_WIDGET(gtk_builder_get_object(builder, "terminal_font")); 7.60 + gtk_font_button_set_font_name(GTK_FONT_BUTTON(w), setting->font_name); 7.61 +--- a/data/lxterminal.desktop.in 7.62 ++++ b/data/lxterminal.desktop.in 7.63 +@@ -4,7 +4,7 @@ 7.64 + _Comment=Use the command line 7.65 + TryExec=lxterminal 7.66 + Exec=lxterminal 7.67 +-Icon=lxterminal 7.68 ++Icon=utilities-terminal 7.69 + Type=Application 7.70 + Categories=GTK;System;TerminalEmulator; 7.71 + _Keywords=console;command line;execute;
8.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 8.2 +++ b/lxterminal/stuff/patches/series Fri Oct 06 17:00:35 2017 +0300 8.3 @@ -0,0 +1,1 @@ 8.4 +lxterminal-icon.patch
9.1 --- a/xcursor-aero/receipt Fri Oct 06 03:22:11 2017 +0300 9.2 +++ b/xcursor-aero/receipt Fri Oct 06 17:00:35 2017 +0300 9.3 @@ -1,4 +1,4 @@ 9.4 -# SliTaz package receipt. 9.5 +# SliTaz package receipt v2. 9.6 9.7 PACKAGE="xcursor-aero" 9.8 VERSION="0.2" 9.9 @@ -6,17 +6,19 @@ 9.10 SHORT_DESC="Aero cursor theme" 9.11 MAINTAINER="al.bobylev@gmail.com" 9.12 LICENSE="GPL" 9.13 -WEB_SITE="http://www.xfce-look.org/content/show.php/Aero+Mouse+Cursors+with+Drop+Shadow?content=67833" 9.14 +WEB_SITE="https://www.gnome-look.org/p/999972/" 9.15 + 9.16 TARBALL="$PACKAGE-$VERSION.tar.gz" 9.17 -WGET_URL="http://www.infinality.net/files/aero.tar.gz" 9.18 -TAGS="cursor-theme" 9.19 +WGET_URL="http://www.infinality.net/files/aero.tar.gz" # web site is dead :( 9.20 9.21 -DEPENDS="xorg-libXcursor" 9.22 -BUILD_DEPENDS="" 9.23 +compile_rules() { 9.24 + icodir="$install/usr/share/icons/aero" 9.25 + mkdir -p $icodir 9.26 + cp -r $src/* $icodir 9.27 +} 9.28 9.29 -# Rules to gen a SliTaz package suitable for Tazpkg. 9.30 -genpkg_rules() 9.31 -{ 9.32 - mkdir -p $fs/usr/share/icons/aero 9.33 - cp -a $src/* $fs/usr/share/icons/aero 9.34 +genpkg_rules() { 9.35 + copy @std 9.36 + DEPENDS="xorg-libXcursor" 9.37 + TAGS="cursor-theme" 9.38 }
10.1 --- a/xcursor-comix/receipt Fri Oct 06 03:22:11 2017 +0300 10.2 +++ b/xcursor-comix/receipt Fri Oct 06 17:00:35 2017 +0300 10.3 @@ -1,22 +1,38 @@ 10.4 -# SliTaz package receipt. 10.5 +# SliTaz package receipt v2. 10.6 10.7 PACKAGE="xcursor-comix" 10.8 -VERSION="0.8.2" 10.9 +VERSION="0.9.0.5" # 5 commits after the 0.9 release; author use 2-3 digits (0.8.2, 0.9) 10.10 +COMMIT="2b025c3c" 10.11 CATEGORY="customization" 10.12 SHORT_DESC="Comix cursor theme" 10.13 MAINTAINER="al.bobylev@gmail.com" 10.14 LICENSE="GPL" 10.15 -WEB_SITE="http://www.kde-look.org/content/show.php/ComixCursors?content=32627" 10.16 +WEB_SITE="http://www.limitland.de/comixcursors" 10.17 + 10.18 TARBALL="ComixCursors-$VERSION.tar.bz2" 10.19 -WGET_URL="http://www.limitland.de/downloads/comixcursors/$TARBALL" 10.20 -TAGS="cursor-theme" 10.21 +WGET_URL="https://gitlab.com/limitland/comixcursors/repository/${COMMIT:-$VERSION}/archive.tar.bz2" 10.22 10.23 -DEPENDS="xorg-libXcursor" 10.24 -BUILD_DEPENDS="" 10.25 +BUILD_DEPENDS="bc rsvg-convert coreutils-numeric xorg-xcursorgen symlinks" 10.26 +SPLIT="xcursor-comix-opaque-white xcursor-comix" 10.27 10.28 -# Rules to gen a SliTaz package suitable for Tazpkg. 10.29 -genpkg_rules() 10.30 -{ 10.31 - mkdir -p $fs/usr/share/icons 10.32 - cp -a $src/* $fs/usr/share/icons 10.33 +compile_rules() { 10.34 + export MULTISIZE=true 10.35 + export ICONSDIR=$install/usr/share/icons 10.36 + ./install-all 10.37 + . $stuff/symdup.sh 10.38 } 10.39 + 10.40 +genpkg_rules() { 10.41 + case $PACKAGE in 10.42 + xcursor-comix-opaque-white) 10.43 + copy ComixCursors-Opaque-White/ 10.44 + CAT="customization|opaque white set only" 10.45 + ;; 10.46 + xcursor-comix) 10.47 + copy @std 10.48 + remove_already_packed 10.49 + ;; 10.50 + esac 10.51 + DEPENDS="xorg-libXcursor" 10.52 + TAGS="cursor-theme" 10.53 +}
11.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 11.2 +++ b/xcursor-comix/stuff/symdup.sh Fri Oct 06 17:00:35 2017 +0300 11.3 @@ -0,0 +1,27 @@ 11.4 +# substitute repeated files by symlinks 11.5 +for path in $install/usr/share/icons/*; do 11.6 + # make symlinks separately for every cursor theme 11.7 + 11.8 + md5file=$(mktemp) 11.9 + find $path -type f -exec md5sum '{}' \; | sort > $md5file 11.10 + 11.11 + for md in $(uniq -d -w32 $md5file | cut -c1-32); do 11.12 + # group of similar files 11.13 + similar="$(grep $md $md5file | cut -c35-)" 11.14 + 11.15 + # find shortest filename 11.16 + shortest=$(echo "$similar" | cut -d' ' -f1) 11.17 + for line in $(echo $similar); do 11.18 + [ "${#line}" -lt "${#shortest}" ] && shortest="$line" 11.19 + done 11.20 + 11.21 + # make symlinks to the file with shortest filename 11.22 + for file in $similar; do 11.23 + [ "$shortest" != "$file" ] && ln -sf $shortest $file 11.24 + done 11.25 + done 11.26 + rm "$md5file" 11.27 +done 11.28 + 11.29 +# make all symlinks relative 11.30 +symlinks -crs $install
12.1 --- a/xcursor-human/receipt Fri Oct 06 03:22:11 2017 +0300 12.2 +++ b/xcursor-human/receipt Fri Oct 06 17:00:35 2017 +0300 12.3 @@ -1,4 +1,4 @@ 12.4 -# SliTaz package receipt. 12.5 +# SliTaz package receipt v2. 12.6 12.7 PACKAGE="xcursor-human" 12.8 VERSION="0.6" 12.9 @@ -7,25 +7,21 @@ 12.10 MAINTAINER="al.bobylev@gmail.com" 12.11 LICENSE="CC-ASA" 12.12 WEB_SITE="https://launchpad.net/human-cursors-theme/" 12.13 + 12.14 TARBALL="human-cursors-theme_$VERSION.tar.gz" 12.15 WGET_URL="https://launchpad.net/ubuntu/+archive/primary/+files/$TARBALL" 12.16 -TAGS="cursor-theme" 12.17 12.18 -DEPENDS="xorg-libXcursor" 12.19 -BUILD_DEPENDS="wget cacerts python symlinks" 12.20 +BUILD_DEPENDS="python symlinks" 12.21 12.22 -# Rules to configure and make the package. 12.23 -compile_rules() 12.24 -{ 12.25 +compile_rules() { 12.26 python setup.py install --prefix=/usr --root="$install" --optimize=1 12.27 rm -rf "$install/usr/lib" 12.28 . $stuff/symdup.sh 12.29 + cp $stuff/index.theme $install/usr/share/icons/Human 12.30 } 12.31 12.32 -# Rules to gen a SliTaz package suitable for Tazpkg. 12.33 -genpkg_rules() 12.34 -{ 12.35 - cp -a $install/* $fs 12.36 - rm -r $fs/usr/share/themes 12.37 - cp $stuff/index.theme $fs/usr/share/icons/Human 12.38 +genpkg_rules() { 12.39 + copy @std 12.40 + DEPENDS="xorg-libXcursor" 12.41 + TAGS="cursor-theme" 12.42 }
13.1 --- a/xcursor-obsidian/receipt Fri Oct 06 03:22:11 2017 +0300 13.2 +++ b/xcursor-obsidian/receipt Fri Oct 06 17:00:35 2017 +0300 13.3 @@ -7,23 +7,21 @@ 13.4 MAINTAINER="al.bobylev@gmail.com" 13.5 LICENSE="GPL" 13.6 WEB_SITE="http://www.gnome-look.org/content/show.php/Obsidian+Cursors?content=73135" 13.7 + 13.8 TARBALL="$PACKAGE-$VERSION.tar.bz2" 13.9 -WGET_URL="http://www.gnome-look.org/CONTENT/content-files/73135-Obsidian.tar.bz2" 13.10 -TAGS="cursor-theme" 13.11 +WGET_URL="https://dl.opendesktop.org/api/files/download/id/1460735403/73135-Obsidian.tar.bz2" 13.12 13.13 -DEPENDS="xorg-libXcursor" 13.14 BUILD_DEPENDS="symlinks" 13.15 13.16 -# Rules to configure and make the package. 13.17 -compile_rules() 13.18 -{ 13.19 - mkdir -p $install/usr/share/icons/Obsidian 13.20 - cp -a $src/cursors $src/index.theme $install/usr/share/icons/Obsidian 13.21 +compile_rules() { 13.22 + icodir="$install/usr/share/icons/Obsidian" 13.23 + mkdir -p $icodir 13.24 + cp -r $src/cursors $src/index.theme $icodir 13.25 . $stuff/symdup.sh 13.26 } 13.27 13.28 -# Rules to gen a SliTaz package suitable for Tazpkg. 13.29 -genpkg_rules() 13.30 -{ 13.31 - cp -a $install/* $fs 13.32 +genpkg_rules() { 13.33 + copy @std 13.34 + DEPENDS="xorg-libXcursor" 13.35 + TAGS="cursor-theme" 13.36 }