New package: android-file-transfer-linux-3.2
Closes: #11484 Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
e3c7e68eb7
commit
8f2f9e5792
2 changed files with 46 additions and 0 deletions
29
srcpkgs/android-file-transfer-linux/patches/musl.patch
Normal file
29
srcpkgs/android-file-transfer-linux/patches/musl.patch
Normal file
|
@ -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));
|
17
srcpkgs/android-file-transfer-linux/template
Normal file
17
srcpkgs/android-file-transfer-linux/template
Normal file
|
@ -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 <Vaelatern@Voidlinux.eu>"
|
||||||
|
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
|
Loading…
Reference in a new issue