diff options
author | xiota | 2024-03-28 20:32:34 +0000 |
---|---|---|
committer | xiota | 2024-03-28 20:32:34 +0000 |
commit | 4328a4146c7cae9f38e1293a0fc0d68714d0cdd8 (patch) | |
tree | c7200b49f5439a4186b653cecfeace9a91f2b6d3 | |
parent | 280a4e1def2a7c15c6757e742d42bf4733d0762a (diff) | |
download | aur-spectacle-git.tar.gz |
24.02.1.r23
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 71 |
2 files changed, 51 insertions, 32 deletions
@@ -1,20 +1,22 @@ pkgbase = spectacle-git pkgdesc = KDE screenshot capture utility - pkgver = 23.08.3.r49.gfecb81ef + pkgver = 24.02.1.r23.gb4c8502 pkgrel = 1 url = https://invent.kde.org/graphics/spectacle arch = x86_64 - license = GPL + license = GPL-2.0-or-later makedepends = extra-cmake-modules makedepends = git makedepends = kdoctools + makedepends = ninja makedepends = plasma-wayland-protocols - depends = knewstuff depends = kpipewire + depends = layer-shell-qt depends = purpose - depends = qt6-tools + depends = qt6-multimedia depends = xcb-util-cursor - provides = spectacle=23.08.3 + depends = zxing-cpp + provides = spectacle=24.02.1 conflicts = spectacle source = git+https://invent.kde.org/graphics/spectacle.git sha256sums = SKIP @@ -5,31 +5,58 @@ _pkgname="spectacle" pkgname="$_pkgname-git" -pkgver=23.08.3.r49.gfecb81ef +pkgver=24.02.1.r23.gb4c8502 pkgrel=1 pkgdesc='KDE screenshot capture utility' url='https://invent.kde.org/graphics/spectacle' -license=(GPL) -arch=(x86_64) +license=('GPL-2.0-or-later') +arch=('x86_64') depends=( - 'knewstuff' 'kpipewire' + 'layer-shell-qt' 'purpose' - 'qt6-tools' + 'qt6-multimedia' 'xcb-util-cursor' + 'zxing-cpp' + + ## implicit + #hicolor-icon-theme + #kconfig + #kconfigwidgets + #kcoreaddons + #kdbusaddons + #kglobalaccel + #kguiaddons + #ki18n + #kio + #kirigami + #kjobwidgets + #knotifications + #kservice + #kwidgetsaddons + #kwindowsystem + #kxmlgui + #libxcb + #qt6-base + #qt6-declarative + #qt6-wayland + #wayland + #xcb-util + #xcb-util-image ) makedepends=( 'extra-cmake-modules' 'git' 'kdoctools' + 'ninja' 'plasma-wayland-protocols' ) -_pkgsrc="$_pkgname" provides=("$_pkgname=${pkgver%%.r*}") conflicts=("$_pkgname") +_pkgsrc="$_pkgname" source=("git+https://invent.kde.org/graphics/spectacle.git") sha256sums=('SKIP') @@ -39,33 +66,23 @@ pkgver() { local _regex='^\s+<release version="([0-9]+\.[0-9]+(\.[0-9]+)?)".*>$' local _file='desktop/org.kde.spectacle.appdata.xml' - local _line=$( - grep -E "$_regex" "$_file" | head -1 - ) - local _version=$( - printf '%s' "$_line" | sed -E "s@$_regex@\1@" - ) - local _commit=$( - git log -G "$_line" -1 --pretty=oneline --no-color -- "$_file" \ - | sed 's@\ .*$@@' - ) - local _revision=$( - git rev-list --count $_commit..HEAD - ) - local _hash=$( - git rev-parse --short HEAD - ) + local _line=$(grep -E "$_regex" "$_file" | head -1) + local _line_num=$(grep -Ensm1 "$_regex" "$_file" | cut -d':' -f1) + + local _version=$(sed -E "s@$_regex@\1@" <<< "$_line") + local _commit=$(git blame -L $_line_num,+1 -- "$_file" | awk '{print $1;}') + local _revision=$(git rev-list --count --cherry-pick "$_commit"...HEAD) + local _hash=$(git rev-parse --short=7 HEAD) - printf '%s.r%s.g%s' \ - "$_version" \ - "$_revision" \ - "$_hash" + printf '%s.r%s.g%s' "${_version:?}" "${_revision:?}" "${_hash:?}" } build() { local _cmake_options=( -B "build" -S "$_pkgsrc" + -G Ninja + -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF -Wno-dev @@ -76,6 +93,6 @@ build() { } package() { - DESTDIR="${pkgdir:?}" cmake --install "build" + DESTDIR="$pkgdir" cmake --install "build" } |