Here is a patch for ark.
The package compiles with libretools (x86_64, armv7h)
It works (tested on x86_64)
Changes:
- reorganized package lists
- patching is done using sed
From 6132964bf8035ce4560f79b0b47660616b44f970 Mon Sep 17 00:00:00 2001
From: SolveFinder <[email protected]>
Date: Mon, 11 Mar 2024 21:37:36 +0300
Subject: [PATCH] ark: upgrade to v24.02.0
---
libre/ark/PKGBUILD | 56 ++++++++++++++++++++++++++++++-------------
libre/ark/libre.patch | 23 ------------------
2 files changed, 39 insertions(+), 40 deletions(-)
delete mode 100644 libre/ark/libre.patch
diff --git a/libre/ark/PKGBUILD b/libre/ark/PKGBUILD
index 303a8f9fd..818ab6271 100644
--- a/libre/ark/PKGBUILD
+++ b/libre/ark/PKGBUILD
@@ -5,41 +5,63 @@
# Contributor: André Silva <[email protected]>
# Contributor: jc_gargma <[email protected]>
-
pkgname=ark
-pkgver=23.08.4
+pkgver=24.02.0
pkgrel=1
pkgrel+=.parabola1
pkgdesc='Archiving Tool'
arch=(x86_64)
arch+=(armv7h i686)
url='https://apps.kde.org/ark/'
-license=(GPL)
-depends=(kparts5 kpty5 libarchive libzip hicolor-icon-theme)
-makedepends=(extra-cmake-modules kdoctools5)
-[[ "${CARCH}" == i686 ]] && depends=( ${depends[*]%5} ) # k*5 things n/a i686
-[[ "${CARCH}" == i686 ]] && makedepends=( ${makedepends[*]%5} ) # k*5 things n/a i686
-optdepends=('p7zip: 7Z format support' 'unarchiver: RAR format support'
- 'lzop: LZO format support' 'lrzip: LRZ format support' 'arj: ARJ format support')
-groups=(kde-applications kde-utilities)
+license=(GPL-2.0-or-later)
+depends=(gcc-libs
+ glibc
+ kcolorscheme
+ kcompletion
+ kconfig
+ kconfigwidgets
+ kcoreaddons
+ kcrash
+ kdbusaddons
+ kfilemetadata
+ ki18n
+ kio
+ kjobwidgets
+ kparts
+ kpty
+ kservice
+ kwidgetsaddons
+ kwindowsystem
+ kxmlgui
+ libarchive
+ libzip
+ qt6-base
+ sh
+ zlib)
+makedepends=(extra-cmake-modules
+ kdoctools)
+optdepends=('arj: ARJ format support'
+ 'lrzip: LRZ format support'
+ 'lzop: LZO format support'
+ 'p7zip: 7Z format support'
+ 'unarchiver: RAR format support')
+groups=(kde-applications
+ kde-utilities)
source=(https://download.kde.org/stable/release-service/$pkgver/src/$pkgname-$pkgver.tar.xz{,.sig})
-source+=(libre.patch)
-sha256sums=('222426ca788b3ba286c619ee6f9228e5f256d5e013d45ea7ef5d322fdb9eaa9e'
+sha256sums=('ff11fe9352d8aa80207a21f3e024e18b4035cbbe689abaad20a91fe36c455469'
'SKIP')
-sha256sums+=('624bd7cd221db2a80b21cd5f71c447d86091e52276f2bdb609c8916755c7d602')
validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 # Albert Astals Cid <[email protected]>
F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87 # Christoph Feck <[email protected]>
D81C0CB38EB725EF6691C385BB463350D6EF31EF) # Heiko Becker <[email protected]>
-
prepare() {
# Remove unrar plugin
- echo "applying libre.patch"
- patch -d $pkgname-$pkgver -p1 < libre.patch
+ sed -i '/clirarplugin/d' "$pkgname-$pkgver/plugins/CMakeLists.txt"
+ sed -i 's/unar or unrar/unar/' "$pkgname-$pkgver/plugins/cliunarchiverplugin/CMakeLists.txt"
rm -rv $pkgname-$pkgver/plugins/clirarplugin
}
-build() {
+build() {
cmake -B build -S $pkgname-$pkgver \
-DBUILD_TESTING=OFF
cmake --build build
diff --git a/libre/ark/libre.patch b/libre/ark/libre.patch
deleted file mode 100644
index 2dea56e67..000000000
--- a/libre/ark/libre.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt
-index d821217..a41142b 100644
---- a/plugins/CMakeLists.txt
-+++ b/plugins/CMakeLists.txt
-@@ -6,7 +6,6 @@ function(kerfuffle_add_plugin plugin)
- endfunction()
-
- add_subdirectory( libarchive )
--add_subdirectory( clirarplugin )
- add_subdirectory( cli7zplugin )
- add_subdirectory( clizipplugin )
- add_subdirectory( libsinglefileplugin )
-diff --git a/plugins/cliunarchiverplugin/CMakeLists.txt b/plugins/cliunarchiverplugin/CMakeLists.txt
-index df7a2b7..cc64313 100644
---- a/plugins/cliunarchiverplugin/CMakeLists.txt
-+++ b/plugins/cliunarchiverplugin/CMakeLists.txt
-@@ -33,5 +33,5 @@ find_program(UNAR unar)
- if(UNAR)
- message(STATUS "Found unar executable: ${UNAR}")
- else()
-- message(WARNING "Could not find the unar executable. Ark requires unar or unrar to extract RAR archives.")
-+ message(WARNING "Could not find the unar executable. Ark requires unar to extract RAR archives.")
- endif()
--
2.44.0
_______________________________________________
Dev mailing list
[email protected]
https://lists.parabola.nu/mailman/listinfo/dev