From 8f2f9e579281255738f0ea2316926c586e1e883d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sun, 25 Mar 2018 17:54:14 +0200 Subject: [PATCH] New package: android-file-transfer-linux-3.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: #11484 Signed-off-by: Jürgen Buchmüller --- .../patches/musl.patch | 29 +++++++++++++++++++ srcpkgs/android-file-transfer-linux/template | 17 +++++++++++ 2 files changed, 46 insertions(+) create mode 100644 srcpkgs/android-file-transfer-linux/patches/musl.patch create mode 100644 srcpkgs/android-file-transfer-linux/template diff --git a/srcpkgs/android-file-transfer-linux/patches/musl.patch b/srcpkgs/android-file-transfer-linux/patches/musl.patch new file mode 100644 index 0000000000..7d26a12cca --- /dev/null +++ b/srcpkgs/android-file-transfer-linux/patches/musl.patch @@ -0,0 +1,29 @@ +--- mtp/backend/posix/Exception.cpp 2017-06-23 12:08:10.000000000 +0200 ++++ mtp/backend/posix/Exception.cpp 2018-03-25 17:53:15.359371456 +0200 +@@ -35,7 +35,7 @@ + std::string Exception::GetErrorMessage(int returnCode) + { + char buf[1024]; +-#ifdef _GNU_SOURCE ++#if defined(_GNU_SOURCE) && defined(__GLIBC__) + std::string text(strerror_r(returnCode, buf, sizeof(buf))); + #else + int r = strerror_r(returnCode, buf, sizeof(buf)); +@@ -44,4 +44,4 @@ + return text; + } + +-}} +\ Kein Zeilenumbruch am Dateiende. ++}} +--- fuse/Exception.h 2017-06-23 12:08:10.000000000 +0200 ++++ fuse/Exception.h 2018-03-25 17:57:06.478366801 +0200 +@@ -36,7 +36,7 @@ + static std::string GetErrorMessage(int returnCode) + { + char buf[1024]; +-#ifdef _GNU_SOURCE ++#if defined(_GNU_SOURCE) && defined(__GLIBC__) + std::string text(strerror_r(returnCode, buf, sizeof(buf))); + #else + int r = strerror_r(returnCode, buf, sizeof(buf)); diff --git a/srcpkgs/android-file-transfer-linux/template b/srcpkgs/android-file-transfer-linux/template new file mode 100644 index 0000000000..1a5738d414 --- /dev/null +++ b/srcpkgs/android-file-transfer-linux/template @@ -0,0 +1,17 @@ +# Template file for 'android-file-transfer-linux' +pkgname=android-file-transfer-linux +version=3.2 +revision=1 +build_style=cmake +hostmakedepends="ninja pkg-config" +makedepends="fuse-devel qt5-devel readline-devel file-devel" +short_desc="Android File Transfer for Linux" +maintainer="Toyam Cox " +license="GPL-3" +homepage="https://github.com/whoozle/android-file-transfer-linux" +distfiles="https://github.com/whoozle/android-file-transfer-linux/archive/v${version}.tar.gz" +checksum=56d0ff8b5197a9089dd30533006fafb9a1b1c7a1e310a78d359ff00145107bcf + +if [ -n "$CROSS_BUILD" ]; then + hostmakedepends+=" qt5-qmake qt5-host-tools" +fi