New package: qt5-fsarchiver-0.8.4

This commit is contained in:
Helmut Pozimski 2018-06-22 00:14:22 +02:00 committed by maxice8
parent b5a25f43a1
commit 2ff2c954dd
4 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- qt5-fsarchiver.pro.orig 2018-06-22 00:01:06.101404975 +0200
+++ qt5-fsarchiver.pro 2018-06-22 00:01:45.933869386 +0200
@@ -9,7 +9,7 @@
QT += widgets gui core
DEFINES += HAVE_CONFIG_H _REENTRANT _FILE_OFFSET_BITS=64 _LARGEFILE64_SOURCE _GNU_SOURCE HAVE_QT5
-INCLUDEPATH += . src /usr/include/ext2fs /usr/include/et /usr/include/e2p /usr/include/blkid /usr/include/uuid
+INCLUDEPATH += . src $$(XBPS_CROSS_BASE)/usr/include/ext2fs $$(XBPS_CROSS_BASE)/usr/include/et $$(XBPS_CROSS_BASE)/usr/include/e2p $$(XBPS_CROSS_BASE)/usr/include/blkid $$(XBPS_CROSS_BASE)/usr/include/uuid
LIBS += -L/usr/lib -lQt5Gui -lQt5Core -lpthread -lrt -llzma -lext2fs -lcom_err -le2p -lblkid -luuid -lz -llz4 -lbz2 -llzo2 -lgcrypt -lgpg-error -lzstd
OBJECTS_DIR = build
MOC_DIR = build

View File

@ -0,0 +1,20 @@
--- qt5-fsarchiver.pro.orig 2018-06-21 23:15:21.665117797 +0200
+++ qt5-fsarchiver.pro 2018-06-21 23:15:36.159276907 +0200
@@ -147,7 +147,7 @@
src/writebuf.c
RESOURCES += src/icon.qrc
# install
- target.path = /usr/sbin
+ target.path = /usr/bin
icon.files = src/images/harddrive1.png
icon.path = /usr/share/app-install/icons
autostart.files = starter/gnome-qt5-fsarchiver.desktop
@@ -158,7 +158,7 @@
autostart2.path = /usr/share/applications
doc.files = doc
doc.path = /usr/share/doc/qt5-fsarchiver/doc
- smbfind.files = src/sbin
+ smbfind.files = src/bin
smbfind.path = /usr
TRANSLATIONS += translations/qt5-fsarchiver_ar.ts \
translations/qt5-fsarchiver_ca.ts \

View File

@ -0,0 +1,20 @@
--- src/common.c.orig 2018-06-21 23:29:12.238999543 +0200
+++ src/common.c 2018-06-21 23:30:28.347795214 +0200
@@ -34,7 +34,7 @@
#include <time.h>
#include <limits.h>
-#ifdef HAVE_EXECINFO_H
+#if defined(HAVE_EXECINFO_H) && defined(__GLIBC__)
#include <execinfo.h>
#endif
@@ -567,7 +567,7 @@
int format_stacktrace(char *buffer, int bufsize)
{
-#ifdef HAVE_EXECINFO_H
+#if defined(HAVE_EXECINFO_H) && defined(__GLIBC__)
const int stack_depth=20;
void *temp[stack_depth];
char **strings;

View File

@ -0,0 +1,26 @@
# Template file for 'qt5-fsarchiver'
pkgname=qt5-fsarchiver
version=0.8.4
revision=1
_realversion=0.8.4-6
wrksrc=${pkgname}
build_style=qmake
hostmakedepends="qt5-qmake qt5-host-tools"
makedepends="qt5-devel liblz4-devel liblzma-devel lzo-devel libzstd-devel
libgcrypt-devel e2fsprogs-devel attr-devel"
depends="fsarchiver"
short_desc="Program to save/restore partitions, folders and MBR/GPT"
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
license="GPL-2.0-only"
homepage="https://sourceforge.net/projects/qt4-fsarchiver"
distfiles="${SOURCEFORGE_SITE}/qt4-fsarchiver/${pkgname}-${_realversion}.tar.gz"
checksum=fea22f1847d730c0c28eb2f6c8aee6a17108a4af884546387faba7eea74d30c1
pre_configure() {
if [ "$CROSS_BUILD" ]; then
CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/qt5"
for i in ${XBPS_CROSS_BASE}/usr/include/qt5/*; do
CXXFLAGS+=" -I$i"
done
fi
}