Remove seafile
Release Alpine apk for ARM64v8 / compilation-arm64v8 (push) Failing after 53s Details

This commit is contained in:
ITmodulo 2024-02-21 01:16:16 +01:00
parent b6d0b11a9c
commit e78face62b
6 changed files with 7 additions and 199 deletions

View File

@ -40,13 +40,16 @@ jobs:
mv srcpkgs /home/runner && chown -R runner:runner /home/runner/srcpkgs mv srcpkgs /home/runner && chown -R runner:runner /home/runner/srcpkgs
- name: Determine packages to build - name: Determine packages to build
run: | run: |
su - runner -c "curl --silent https://static.itmodulo.eu/dl/repo/alpine/latest-stable/main/aarch64/ | pup 'a text{}' | grep \.apk > repo.txt" su - runner -c "curl --silent https://static.itmodulo.eu/dl/repo/alpine/latest-stable/main/aarch64/ | pup 'a text{}' | grep \.apk > ~/repo.txt"
su - runner -c "touch ~/local.txt" su - runner -c "touch ~/local.txt"
su - runner -c 'cd ~/srcpkgs; for i in ./* ; do printf "%s-%s-r%s.apk\n" "$(echo $i | cut -d '/' -f 2)" "$(cat $i/APKBUILD | grep pkgver | grep -v '\$' | cut -d '=' -f 2 )" "$(cat $i/APKBUILD | grep pkgrel | grep -v '\$' | cut -d '=' -f 2 )" >> ~/local.txt; done' su - runner -c 'cd ~/srcpkgs; for i in ./* ; do printf "%s-%s-r%s.apk\n" "$(echo $i | cut -d '/' -f 2)" "$(cat $i/APKBUILD | grep pkgver | grep -v '\$' | cut -d '=' -f 2 )" "$(cat $i/APKBUILD | grep pkgrel | grep -v '\$' | cut -d '=' -f 2 )" >> ~/local.txt; done'
su - runner -c "grep -Fvxf repo.txt local.txt > missing.txt" su - runner -c 'echo "LOCAL:"; cat ~/local.txt'
su - runner -c "grep -Fvxf ~/repo.txt ~/local.txt > ~/missing.txt"
su - runner -c 'echo "MISSING:"; cat ~/missing.txt'
su - runner -c "sed -i -E 's/-[0-9a-z.]+-r[0-9]+\.apk//g' missing.txt" su - runner -c "sed -i -E 's/-[0-9a-z.]+-r[0-9]+\.apk//g' missing.txt"
su - runner -c "for i in $(cat missing.txt | tac ); do sed -i -E 's/'"${i}"-[0-9a-z.]+-r[0-9]+\.apk'//g' repo.txt; done;" su - runner -c "for i in $(cat missing.txt); do sed -i -E 's/'"${i}"-[0-9a-z.]+-r[0-9]+\.apk'//g' ~/repo.txt; done;"
su - runner -c 'echo "WILL BUILD:"; cat missing.txt' su - runner -c 'echo "REPO:"; cat ~/repo.txt'
su - runner -c 'echo "WILL BUILD:"; cat ~/missing.txt'
- name: Compile missing in sequence - name: Compile missing in sequence
run: | run: |

View File

@ -1,41 +0,0 @@
# Contributor: ITmodulo <itmodulo@disroot.org>
# Maintainer: ITmodulo <itmodulo@disroot.org>
pkgname="libsearpc"
pkgver=3.3.0
pkgrel=0
pkgdesc="A simple C language RPC framework (including both server side & client side)"
arch="all"
url="https://github.com/haiwen/libsearpc"
license="Apache-2.0"
depends="py3-gobject3 py3-simplejson"
makedepends="musl-dev jansson-dev py3-gobject3-dev glib-dev autoconf automake libtool pkgconf"
subpackages="$pkgname-pyc"
_pkgver="${pkgver%.*}-latest"
source="libsearpc-$_pkgver.tar.gz::$url/archive/v$_pkgver.tar.gz"
prepare () {
default_prepare
cd "$srcdir/$pkgname-$_pkgver"
sed -i 's|(DESTDIR)@prefix@|@prefix@|' './libsearpc.pc.in'
}
build () {
cd "$srcdir/$pkgname-$_pkgver"
./autogen.sh
./configure --prefix=/usr PYTHON='/usr/bin/python3'
make
}
check () {
cd "$srcdir/$pkgname-$_pkgver"
make check
}
package () {
cd "$srcdir/$pkgname-$_pkgver"
make DESTDIR="$pkgdir" install
}
sha512sums="
94213219d5fccec83f7fbbce72403430ca183b8b8e915b9b488e395966e4b3745e06cdfca627118e551b190f094fed2cb5d90ee46e8435dcf184c48a2bc301be libsearpc-3.3-latest.tar.gz
"

View File

@ -1,41 +0,0 @@
# 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"
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
562bebf57c9077fd3a8810c191d0473252625152d8d336c0afdcadd4fa83e3fcf30c826a2c980056a3f828860e0c46b7b660d4fa014e873599de233cc8078e2e fix_build_with_QT6.diff
ceab7e0e0248edf23aec59d9e7e7b11bf3ad96f26b91622fc55e8bf7e804a0432ce9b51f23169404412f91e59be608a991cdf34377abb1e5b9175bf5bb44c13d fix_fts_musl.diff
"

View File

@ -1,21 +0,0 @@
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}")

View File

@ -1,55 +0,0 @@
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

View File

@ -1,37 +0,0 @@
# Contributor: ITmodulo <itmodulo@disroot.org>
# Maintainer: ITmodulo <itmodulo@disroot.org>
pkgname=seafile
pkgver=9.0.4
pkgrel=1
pkgdesc="An online file storage and collaboration tool"
arch="all"
url="https://github.com/haiwen/$pkgname"
license="GPL-2.0-only"
depends="libsearpc py3-future fuse"
makedepends="vala intltool libevent-dev fuse-dev libwebsockets-dev sqlite-dev py3-future libsearpc libtool automake autoconf pkgconf curl-dev"
subpackages="$pkgname-doc $pkgname-pyc"
source="seafile-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
prepare() {
default_prepare
cd "$srcdir/seafile-$pkgver"
sed -i 's|(DESTDIR)@prefix@|@prefix@|' './lib/libseafile.pc.in'
}
build() {
cd "$srcdir/seafile-$pkgver"
./autogen.sh
./configure \
--enable-console \
--prefix='/usr' \
PYTHON='/usr/bin/python3'
make
}
package() {
cd "$srcdir/seafile-$pkgver"
make DESTDIR="$pkgdir" install
}
sha512sums="
b0aece4330054d5d0b417370ed2160f4c4ef0c67e41335a2cad7f68e745302aa7fab5d46de411e9d24135ab67b782872d7b771bdcd5c5c1e14978086fc7e4d3e seafile-9.0.4.tar.gz
"