diff options
author | xiota | 2024-03-31 06:33:39 +0000 |
---|---|---|
committer | xiota | 2024-03-31 06:34:57 +0000 |
commit | fe67f3f2da7e040b9d82c2d5a3e45cd3ba506af3 (patch) | |
tree | fd597b391bfaa7c891880af1753c08620d14ab71 | |
parent | a80b8311edb30e9a57e0f4a3880c6fe3ef54c636 (diff) | |
download | aur-ark-git.tar.gz |
24.02.1.r99
-rw-r--r-- | .SRCINFO | 34 | ||||
-rw-r--r-- | .gitignore | 8 | ||||
-rw-r--r-- | PKGBUILD | 117 |
3 files changed, 81 insertions, 78 deletions
@@ -1,34 +1,32 @@ pkgbase = ark-git - pkgdesc = Compressed archive manager from KDE Gear - pkgver = 22.04.1.r57.g6037bcd0 + pkgdesc = Archiving Tool + pkgver = 24.02.1.r99.g531f976 pkgrel = 1 - url = https://apps.kde.org/ark/ - arch = i686 + url = https://invent.kde.org/utilities/ark arch = x86_64 - groups = kde-applications - groups = kde-utilities - license = GPL - makedepends = cmake + license = GPL-2.0-or-later makedepends = extra-cmake-modules makedepends = git makedepends = kdoctools - makedepends = python - depends = hicolor-icon-theme - depends = kitemmodels + makedepends = ninja + depends = kconfig + depends = kcrash + depends = kdbusaddons + depends = kfilemetadata + depends = ki18n + depends = kio depends = kparts depends = kpty depends = libarchive - depends = libzip + optdepends = arj: ARJ format support optdepends = lrzip: LRZ format support optdepends = lzop: LZO format support optdepends = p7zip: 7Z format support + optdepends = unarchiver: RAR format support optdepends = unrar: RAR decompression support - optdepends = unarchiver: alternative support for RAR and multipart ZIP formats - optdepends = unzip: legacy extraction support for single-part ZIP files - optdepends = zip: legacy compression support for single-part ZIP files - provides = ark=22.04.1.r57.g6037bcd0 + provides = ark=24.02.1 conflicts = ark - source = git+https://invent.kde.org/utilities/ark.git - b2sums = SKIP + source = ark::git+https://invent.kde.org/utilities/ark.git + sha256sums = SKIP pkgname = ark-git diff --git a/.gitignore b/.gitignore index 33f4e24f5b6e..018a3de08144 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,4 @@ * -!.gitignore -!.SRCINFO !PKGBUILD -!*.diff -!*.hook -!*.install -!*.patch +!.SRCINFO +!.gitignore @@ -1,81 +1,90 @@ -# Maintainer: Marcell Meszaros < marcell.meszaros AT runbox.eu > +# Maintainer: +# Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu > # Contributor: Alexey D. <lq07829icatm at rambler.ru> # Contributor: Andrea Scarpino <andrea@archlinux.org> -pkgname='ark-git' -_basename="${pkgname%-git}" -pkgver=22.04.1.r57.g6037bcd0 +_pkgname="ark" +pkgname="$_pkgname-git" +pkgver=24.02.1.r99.g531f976 pkgrel=1 -pkgdesc='Compressed archive manager from KDE Gear' -arch=('i686' 'x86_64') -url="https://apps.kde.org/${_basename}/" -license=('GPL') -groups=('kde-applications' 'kde-utilities') +pkgdesc='Archiving Tool' +url="https://invent.kde.org/utilities/ark" +license=('GPL-2.0-or-later') +arch=('x86_64') + depends=( - 'hicolor-icon-theme' - 'kitemmodels' - 'kparts' - 'kpty' - 'libarchive' - 'libzip' + kconfig + kcrash + kdbusaddons + kfilemetadata + ki18n + kio + kparts + kpty + libarchive + + ## implicit + #bash + #hicolor-icon-theme + #kcolorscheme + #kcompletion + #kconfigwidgets + #kcoreaddons + #kjobwidgets + #kservice + #kwidgetsaddons + #kwindowsystem + #kxmlgui + #libzip + #qt6-base + #zlib ) makedepends=( - 'cmake' - 'extra-cmake-modules' - 'git' - 'kdoctools' - 'python' + extra-cmake-modules + git + kdoctools + ninja ) optdepends=( + 'arj: ARJ format support' 'lrzip: LRZ format support' 'lzop: LZO format support' 'p7zip: 7Z format support' + 'unarchiver: RAR format support' 'unrar: RAR decompression support' - 'unarchiver: alternative support for RAR and multipart ZIP formats' - 'unzip: legacy extraction support for single-part ZIP files' - 'zip: legacy compression support for single-part ZIP files' ) -provides=("${_basename}=${pkgver}") -conflicts=("${_basename}") -source=("git+https://invent.kde.org/utilities/${_basename}.git") -b2sums=('SKIP') - -pkgver() { - cd "${_basename}" - # Generate git tag based version. Count only proper v#.#* [#=number] tags. - local _gitversion=$(git describe --long --tags --match 'v[0-9][0-9.][0-9.]*' | sed -e 's|^v||' | tr '[:upper:]' '[:lower:]') +provides=("$_pkgname=${pkgver%%.r*}") +conflicts=("$_pkgname") - # Format git-based version for pkgver - echo "${_gitversion}" | sed \ - -e 's|^\([0-9][0-9.]*\)-\([a-zA-Z]\+\)|\1\2|' \ - -e 's|\([0-9]\+-g\)|r\1|' \ - -e 's|-|.|g' -} - -prepare() { - printf 'Configuring external build flags for CMake...\n' - printf '# Adding CPPFLAGS to CFLAGS, CXXFLAGS; otherwise CMake might ignore the former.\n' +_pkgsrc="$_pkgname" +source=("$_pkgsrc"::"git+$url.git") +sha256sums=('SKIP') - export CFLAGS+=" ${CPPFLAGS}" # CMake ignores CPPFLAGS - export CXXFLAGS+=" ${CPPFLAGS}" # CMake ignores CPPFLAGS +pkgver() { + cd "$_pkgsrc" - printf '# Adding LDFLAGS to CMake LINKER_FLAGS_INIT vars, otherwise CMake might ignore the former.\n\n' + local _tag=$(git tag | grep -Ev '\.[0-9][0-9]$' | sort -rV | head -1) + local _revision=$(git rev-list --count --cherry-pick "$_tag"...HEAD) + local _hash=$(git rev-parse --short=7 HEAD) - printf 'Configuring CMake build...\n' - cmake -B build -S "${_basename}" \ - -DCMAKE_BUILD_TYPE='RelWithDebInfo' \ - -DCMAKE_EXE_LINKER_FLAGS_INIT="${LDFLAGS}" \ - -DCMAKE_SHARED_LINKER_FLAGS_INIT="${LDFLAGS}" \ - -DCMAKE_MODULE_LINKER_FLAGS_INIT="${LDFLAGS}" \ - -DCMAKE_INSTALL_PREFIX='/usr' \ - -DBUILD_TESTING='OFF' + printf '%s.r%s.g%s' "${_tag#v}" "$_revision" "$_hash" } build() { + local _cmake_options=( + -B build + -S "$_pkgsrc" + -G Ninja + -DCMAKE_BUILD_TYPE=None + -DBUILD_TESTING=OFF + -Wno-dev + ) + + cmake "${_cmake_options[@]}" cmake --build build } package() { - DESTDIR="${pkgdir}" cmake --install build + DESTDIR="$pkgdir" cmake --install build } |