initial import
This commit is contained in:
41
grsync/PKGBUILD
Normal file
41
grsync/PKGBUILD
Normal file
@@ -0,0 +1,41 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=grsync
|
||||
pkgver=1.3.1
|
||||
pkgrel=1
|
||||
pkgdesc="GTK+ GUI for rsync to synchronize folders, files and make backups"
|
||||
arch=('i686' 'x86_64')
|
||||
url='https://www.opbyte.it/grsync/'
|
||||
license=('GPL-2')
|
||||
depends=('gtk' 'rsync')
|
||||
makedepends=('intltool' 'gettext-tiny')
|
||||
source=(https://www.opbyte.it/release/$pkgname-$pkgver.tar.gz
|
||||
grsync.appdata.xml
|
||||
use-themed-icon.patch)
|
||||
sha512sums=('af3e70108085ad240b8f692f4fd389e7df42448291b721e923fb7e7309e52a673a034583e68684820b47e520386c382efe56820da7b0e7146407bd3d09f2dc72'
|
||||
'501b9fd5d5a5033adf222116ff739f0b2743b53d988580a5a75581f7620ed5763be1cff1dc7bb885d51653454b84985b6f182c2e41ff3863812a5626068bff35'
|
||||
'00f349b07756ec85f7dac5ad6a8463ca68485b2d9a697942e944421f4e1c8e0765c3a7ae64d793a049de099b0046ad4525f9db45dfd2a97d892b2739da76a8c5')
|
||||
|
||||
prepare() {
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
# use themed icon
|
||||
patch -Np1 -i $srcdir/use-themed-icon.patch
|
||||
|
||||
autoreconf -fi
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--disable-unity
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -Dm644 ../$pkgname.appdata.xml "$pkgdir/usr/share/metainfo/$pkgname.appdata.xml"
|
||||
install -Dm0644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
}
|
||||
19
grsync/grsync.appdata.xml
Normal file
19
grsync/grsync.appdata.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>it.opbyte.grsync</id>
|
||||
<launchable type="desktop-id">grsync.desktop</launchable>
|
||||
<name>Grsync</name>
|
||||
<summary>Synchronize files and folders (a GTK GUI for rsync)</summary>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<project_license>GPL-2.0</project_license>
|
||||
<description>
|
||||
<p>Grsync is a rsync GUI (Graphical User Interface). Rsync is the well-known and powerful command line directory and file synchronization tool. It can be effectively used to synchronize local directories and it supports remote targets as well (even though it doesn't support browsing the remote folder). Sample uses of grsync include: synchronize a music collection with removable devices, backup personal files to a networked drive, replication of a partition to another one, mirroring of files, etc.</p>
|
||||
</description>
|
||||
<screenshots>
|
||||
<screenshot type="default">
|
||||
<image>http://www.opbyte.it/grsync/grsync-1.0.0.png</image>
|
||||
</screenshot>
|
||||
</screenshots>
|
||||
<url type="bugtracker">https://sourceforge.net/p/grsync/bugs/</url>
|
||||
<url type="homepage">http://www.opbyte.it/grsync/</url>
|
||||
</component>
|
||||
76
grsync/use-themed-icon.patch
Normal file
76
grsync/use-themed-icon.patch
Normal file
@@ -0,0 +1,76 @@
|
||||
diff -Naur grsync-1.2.6.orig/Makefile.am grsync-1.2.6/Makefile.am
|
||||
--- grsync-1.2.6.orig/Makefile.am 2013-04-30 13:48:54.000000000 +0200
|
||||
+++ grsync-1.2.6/Makefile.am 2018-12-30 11:37:36.995541833 +0100
|
||||
@@ -61,10 +61,10 @@
|
||||
mimepackagesdir = $(mimedir)/packages
|
||||
dist_mimepackages_DATA = grsync.xml
|
||||
|
||||
-pixmapdir = $(datadir)/pixmaps
|
||||
+pixmapdir = $(datadir)/icons/hicolor/128x128/apps
|
||||
pixmap_DATA = pixmaps/grsync.png
|
||||
|
||||
-pixmapbusydir = $(datadir)/pixmaps
|
||||
+pixmapbusydir = $(datadir)/icons/hicolor/128x128/apps
|
||||
pixmapbusy_DATA = pixmaps/grsync-busy.png
|
||||
|
||||
mimeicondir = $(datadir)/icons/hicolor/48x48/mimetypes/
|
||||
diff -Naur grsync-1.2.6.orig/src/callbacks.c grsync-1.2.6/src/callbacks.c
|
||||
--- grsync-1.2.6.orig/src/callbacks.c 2015-12-23 16:38:40.000000000 +0100
|
||||
+++ grsync-1.2.6/src/callbacks.c 2018-12-30 11:41:43.179172285 +0100
|
||||
@@ -57,7 +57,7 @@
|
||||
void set_trayicon(gboolean flag) {
|
||||
if (flag) {
|
||||
if (trayIcon == NULL) {
|
||||
- trayIcon = gtk_status_icon_new_from_file(icon);
|
||||
+ trayIcon = gtk_status_icon_new_from_icon_name(ICON);
|
||||
g_signal_connect(GTK_STATUS_ICON(trayIcon), "activate", G_CALLBACK(on_trayicon_activate), main_window);
|
||||
}
|
||||
} else {
|
||||
@@ -71,7 +71,7 @@
|
||||
|
||||
|
||||
void set_trayicon_icon(gboolean busy) {
|
||||
- if (trayIcon != NULL) gtk_status_icon_set_from_file(trayIcon, busy ? icon_busy : icon);
|
||||
+ if (trayIcon != NULL) gtk_status_icon_set_from_icon_name(trayIcon, busy ? ICON_BUSY : ICON);
|
||||
}
|
||||
|
||||
gboolean get_checkbox(gchar* name) {
|
||||
@@ -1341,7 +1341,7 @@
|
||||
|
||||
gtk_show_about_dialog((GtkWindow*) main_window, "name", PACKAGE, "version", VERSION, "comments", _("Synchronize files and folders (a GTK GUI for rsync)."),
|
||||
"copyright", _("(C) Piero Orsoni and others. Released under the GPL.\nSee COPYING for details"),
|
||||
- "website", "http://www.opbyte.it/grsync/", "artists", artists, "authors", authors, NULL);
|
||||
+ "website", "http://www.opbyte.it/grsync/", "artists", artists, "authors", authors, "logo-icon-name", ICON, NULL);
|
||||
}
|
||||
|
||||
|
||||
diff -Naur grsync-1.2.6.orig/src/callbacks.h grsync-1.2.6/src/callbacks.h
|
||||
--- grsync-1.2.6.orig/src/callbacks.h 2013-04-30 13:48:54.000000000 +0200
|
||||
+++ grsync-1.2.6/src/callbacks.h 2018-12-30 11:41:13.194991363 +0100
|
||||
@@ -2,10 +2,8 @@
|
||||
#define MAXOPT 100
|
||||
#define CONFIG_GROUP "__CONFIG"
|
||||
|
||||
-#define ICON_SOURCE "pixmaps/grsync.png"
|
||||
-#define ICON_SOURCE_BUSY "pixmaps/grsync-busy.png"
|
||||
-#define ICON_PACKAGE PACKAGE_DATA_DIR "/" ICON_SOURCE
|
||||
-#define ICON_PACKAGE_BUSY PACKAGE_DATA_DIR "/" ICON_SOURCE_BUSY
|
||||
+#define ICON "grsync"
|
||||
+#define ICON_BUSY "grsync-busy"
|
||||
|
||||
GtkBuilder *builder;
|
||||
GtkWidget *main_window;
|
||||
diff -Naur grsync-1.2.6.orig/src/main.c grsync-1.2.6/src/main.c
|
||||
--- grsync-1.2.6.orig/src/main.c 2013-04-30 13:48:54.000000000 +0200
|
||||
+++ grsync-1.2.6/src/main.c 2018-12-30 11:41:45.745911502 +0100
|
||||
@@ -68,9 +68,7 @@
|
||||
cmdline_import = FALSE;
|
||||
}
|
||||
|
||||
- icon = g_file_test(ICON_SOURCE, G_FILE_TEST_EXISTS) ? ICON_SOURCE : ICON_PACKAGE;
|
||||
- icon_busy = g_file_test(ICON_SOURCE_BUSY, G_FILE_TEST_EXISTS) ? ICON_SOURCE_BUSY : ICON_PACKAGE_BUSY;
|
||||
- gtk_window_set_default_icon_from_file(icon, NULL);
|
||||
+ gtk_window_set_default_icon_name(ICON);
|
||||
|
||||
builder = gtk_builder_new();
|
||||
result = gtk_builder_add_from_file(builder, XMLFILE, &gerror) || gtk_builder_add_from_file(builder, PACKAGE_DATA_DIR "/" PACKAGE "/" XMLFILE, NULL);
|
||||
Reference in New Issue
Block a user