~alpine/aports

1

[alpine-aports]

Details
Message ID
<1462902264-4587-1-git-send-email-developer@it-offshore.co.uk>
Sender timestamp
1462902262
DKIM signature
missing
Download raw message
Firetools is built with qt4 until qt5.60 is in main



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---

[alpine-aports] [PATCH 2/2] testing/firetools: new aport

Details
Message ID
<1462902264-4587-3-git-send-email-developer@it-offshore.co.uk>
In-Reply-To
<1462902264-4587-1-git-send-email-developer@it-offshore.co.uk> (view parent)
Sender timestamp
1462902264
DKIM signature
missing
Download raw message
Patch: +90 -0
firetools is a GUI / systray app for firejail
---
 testing/firetools/APKBUILD               | 44 ++++++++++++++++++++++++++++++
 testing/firetools/fix-qt-configure.patch | 46 ++++++++++++++++++++++++++++++++
 2 files changed, 90 insertions(+)
 create mode 100644 testing/firetools/APKBUILD
 create mode 100644 testing/firetools/fix-qt-configure.patch

diff --git a/testing/firetools/APKBUILD b/testing/firetools/APKBUILD
new file mode 100644
index 0000000..670c137
--- /dev/null
+++ b/testing/firetools/APKBUILD
@@ -0,0 +1,44 @@
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=firetools
pkgver=0.9.30
pkgrel=0
pkgdesc="Firejail sandbox launcher integrated with the system tray"
url="https://l3net.wordpress.com/projects/firejail/#firetools"
arch="all"
license="GPL2"
depends="firejail xterm icu-libs"
#depends="firejail xterm" #building against qt5 requires v.5.60 which is currently in edge
depends_dev=""
#makedepends="$depends_dev qt5-qtbase-dev qt5-qtsvg-dev"
makedepends="$depends_dev qt-dev"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/netblue30/firetools/archive/$pkgver.tar.gz
	fix-qt-configure.patch
	"

builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="11ddf9c6645f2d218e9cc5ad20070277  firetools-0.9.30.tar.gz
2f8c60628d3155c30d988a8b5745916a  fix-qt-configure.patch"
sha256sums="b54e3ae5f619a4e77f9a0044b791ea0cc86ccaf9ad07014898222bc8ae0bd56d  firetools-0.9.30.tar.gz
9788d0b5c3738fe12b41cd9040f1c8b9a3718e57809d76c12b67ff79b818f4e7  fix-qt-configure.patch"
sha512sums="237e1dc0b091874f34a326cca799a9b515861ff8966e319c6b79a6cd717f74d38d39fbd1cbbdaa85563cbfd3eddf61c204d1acf4caf9923c020638080225b199  firetools-0.9.30.tar.gz
3a732d6fbd7e93b9bbd0cdf6484aff339069304333a319273e43d3147a32476d0812a7779187a5874a9d59f2f6bf5307fc2b93acf39f631e68f9d9eb8eddb5b5  fix-qt-configure.patch"
diff --git a/testing/firetools/fix-qt-configure.patch b/testing/firetools/fix-qt-configure.patch
new file mode 100644
index 0000000..c0db8c9
--- /dev/null
+++ b/testing/firetools/fix-qt-configure.patch
@@ -0,0 +1,46 @@
--- firetools-0.9.30/configure
+++ firetools-0.9.30/configure.new
@@ -3811,18 +3811,24 @@
 		as_fn_error $? "*** Please install Qt5 svg support - apt-get install libqt5svg5 ***" "$LINENO" 5
 	fi
 
-# Arch Linux 64bit
+# Arch Linux 64bit & Alpine Linux
 elif test -f /usr/lib/libQt5Core.so
 then
+	if test -d /usr/lib/qt5
+	then
+		qtdir='qt5'
+	else
+		qtdir='qt'
+	fi
         echo "Found qt5 library in /usr/lib directory"
         # check libqt5svg5 library
-        if test -f /usr/lib/qt/plugins/imageformats/libqsvg.so
+        if test -f /usr/lib/$qtdir/plugins/imageformats/libqsvg.so
         then
                 echo "Found qt5 svg library"
         else
                 as_fn_error $? "*** Please install Qt5 svg support - pacman -S qt5-svg ***" "$LINENO" 5
         fi
-        if test -f /usr/lib/qt/plugins/iconengines/libqsvgicon.so
+        if test -f /usr/lib/$qtdir/plugins/iconengines/libqsvgicon.so
         then
                 echo "Found qt5 svg icon library"
         else

--- firetools-0.9.30/configure
+++ firetools-0.9.30/configure.new
@@ -3939,6 +3939,11 @@
 		QMAKE=/usr/lib64/qt4/bin/qmake
 	fi
 
+        # fix for Alpine Linux
+        if test -f /usr/lib/qt5/bin/qmake; then
+                QMAKE=/usr/lib/qt5/bin/qmake
+        fi
+
 	if test -z "$QMAKE"
 	then
 		as_fn_error $? "qmake is missing, please install Qt4 or Qt5 development packages." "$LINENO" 5

-- 
2.8.2



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)