Added seafile and deps
All checks were successful
Release Alpine apk for ARM64v8 / compilation-arm64v8 (push) Successful in 2h8m12s
All checks were successful
Release Alpine apk for ARM64v8 / compilation-arm64v8 (push) Successful in 2h8m12s
This commit is contained in:
parent
18f296adf5
commit
e1c3f3980f
6 changed files with 205 additions and 1 deletions
42
srcpkgs/seafile-client/APKBUILD
Normal file
42
srcpkgs/seafile-client/APKBUILD
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
# Contributor: ITmodulo <itmodulo@disroot.org>
|
||||
# Maintainer: ITmodulo <itmodulo@disroot.org>
|
||||
pkgname=seafile-client
|
||||
pkgver=9.0.4
|
||||
pkgrel=1
|
||||
pkgdesc="GUI client for synchronizing your local files with seafile server"
|
||||
arch="all"
|
||||
url="https://github.com/haiwen/$pkgname"
|
||||
license="Apache-2.0"
|
||||
depends=""
|
||||
makedepends="cmake extra-cmake-modules qt6-qttools qt6-qt5compat-dev qt6-qtbase-dev qt6-qtwebengine-dev jansson-dev sqlite-dev libsearpc seafile musl-fts-dev musl-dev autoconf automake libtool clang-dev doxygen"
|
||||
|
||||
source="
|
||||
$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz
|
||||
fix_build_with_QT6.diff
|
||||
fix_fts_musl.diff
|
||||
"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
patch -p1 -i "$srcdir/fix_build_with_QT6.diff"
|
||||
patch -p1 -i "$srcdir/fix_fts_musl.diff"
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
cmake -B build -S "$srcdir/$pkgname-$pkgver" \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX='/usr' \
|
||||
-DBUILD_SHIBBOLETH_SUPPORT=ON
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
}
|
||||
sha512sums="
|
||||
163b48200e5244816db13ad1f24c3d8177f4d9f940cb0d9f3a5392146c64e7061859010f72f2bed601540f1300d28cf626f8393806ea292f9b508a9938cfcf11 seafile-client-9.0.4.tar.gz
|
||||
1f4eec4e846c5c5bcce75ba4495738f6d975de22903805ab76f00fb6123c01a5f1b4d3c67cece84d67be1da7656e94353f3ee710846ad90491f4faee83ecc86a fix_build_with_QT6.diff
|
||||
bf7e9dd6e761243e9f3368eb4b3a3cfe0b222c51b3cdd6db552d3295d0fecb7e2b295f55123b926fe116a4cd011d4744bb3c913ae711400014455bcc56e75015 fix_fts_musl.diff
|
||||
"
|
||||
21
srcpkgs/seafile-client/fix_build_with_QT6.diff
Normal file
21
srcpkgs/seafile-client/fix_build_with_QT6.diff
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index fd16f046..5c195178 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -133,14 +133,14 @@ ENDIF()
|
||||
####################
|
||||
###### BEGIN: QT configuration
|
||||
####################
|
||||
-FIND_PROGRAM(qmake_executable NAMES qmake qmake.exe)
|
||||
+FIND_PROGRAM(qmake_executable NAMES qmake6)
|
||||
EXECUTE_PROCESS(COMMAND
|
||||
bash -c "${qmake_executable} --version | grep -iE '^using qt version [0-9.]+' | awk '{print $4}'"
|
||||
OUTPUT_VARIABLE DETECTED_QT_VERSION
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
MESSAGE("Qt version: ${DETECTED_QT_VERSION}")
|
||||
EXECUTE_PROCESS(COMMAND
|
||||
- bash -c "qmake --version|grep -iE '^using qt version [0-9]'|awk '{print $4}'|grep -iE '^[0-9]'|awk -F . '{print $1}'"
|
||||
+ bash -c "${qmake_executable} --version|grep -iE '^using qt version [0-9]'|awk '{print $4}'|grep -iE '^[0-9]'|awk -F . '{print $1}'"
|
||||
OUTPUT_VARIABLE QT_VERSION_MAJOR
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
MESSAGE("QT_VERSION_MAJOR: ${QT_VERSION_MAJOR}")
|
||||
55
srcpkgs/seafile-client/fix_fts_musl.diff
Normal file
55
srcpkgs/seafile-client/fix_fts_musl.diff
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index f4b9e6c8..6f9f957e 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -8,6 +8,9 @@ SET(PROJECT_VERSION "${SEAFILE_CLIENT_VERSION_MAJOR}.${SEAFILE_CLIENT_VERSION_MI
|
||||
ADD_DEFINITIONS(-DSEAFILE_CLIENT_VERSION=${PROJECT_VERSION})
|
||||
ADD_DEFINITIONS(-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26)
|
||||
INCLUDE(FindPkgConfig)
|
||||
+INCLUDE(CheckLibraryExists)
|
||||
+INCLUDE(CheckFunctionExists)
|
||||
+INCLUDE(CheckIncludeFiles)
|
||||
|
||||
## Build crash repoter on release build as default
|
||||
IF (NOT (${CMAKE_BUILD_TYPE} MATCHES Release))
|
||||
@@ -362,6 +365,30 @@ ENDIF()
|
||||
###### END: QT configuration
|
||||
####################
|
||||
|
||||
+####################
|
||||
+##### BEGIN FTS fix
|
||||
+####################
|
||||
+
|
||||
+CHECK_INCLUDE_FILES("sys/types.h;sys/stat.h;fts.h" HAVE_FTS_H)
|
||||
+# fts functions may be in external library
|
||||
+IF(HAVE_FTS_H)
|
||||
+ CHECK_FUNCTION_EXISTS(fts_open HAVE_FTS_OPEN)
|
||||
+ IF(NOT HAVE_FTS_OPEN)
|
||||
+ CHECK_LIBRARY_EXISTS(fts fts_open "" HAVE_LIB_FTS)
|
||||
+ ENDIF(NOT HAVE_FTS_OPEN)
|
||||
+ENDIF(HAVE_FTS_H)
|
||||
+
|
||||
+IF(HAVE_LIB_FTS)
|
||||
+ SET(FTS_LIB fts)
|
||||
+ELSE()
|
||||
+ SET(FTS_LIB "")
|
||||
+ENDIF()
|
||||
+
|
||||
+####################
|
||||
+###### END FTS fix
|
||||
+####################
|
||||
+
|
||||
+
|
||||
####################
|
||||
###### BEGIN: pthread support is required explicitly on linux
|
||||
####################
|
||||
@@ -585,7 +612,8 @@ FUNCTION(ADD_SC_LIBRARY name)
|
||||
|
||||
TARGET_LINK_LIBRARIES(${name} ${QT_LIBRARIES}
|
||||
${SQLITE3_LIBRARIES} ${JANSSON_LIBRARIES}
|
||||
- ${EXTRA_LIBS} -lglib-2.0 ${ARG_LINK_LIBS} ${ZLIB_LIBRARIES})
|
||||
+ ${EXTRA_LIBS} -lglib-2.0 ${ARG_LINK_LIBS} ${ZLIB_LIBRARIES} ${FTS_LIB})
|
||||
+
|
||||
ENDFUNCTION(ADD_SC_LIBRARY)
|
||||
|
||||
# library utils
|
||||
Loading…
Add table
Add a link
Reference in a new issue