diff options
author | xiota | 2024-04-17 13:30:46 +0000 |
---|---|---|
committer | xiota | 2024-04-17 13:30:46 +0000 |
commit | 10d1b33cda7ea28c0ea015c83b79cda530b89540 (patch) | |
tree | ad7d638f215a2ad471e011ffe7d6088f6643b49f | |
parent | ccf709b65348b2ce101da6bb81e40cddda0a5b60 (diff) | |
download | aur-filelight-git.tar.gz |
24.02.2.r89
-rw-r--r-- | .SRCINFO | 35 | ||||
-rw-r--r-- | PKGBUILD | 62 |
2 files changed, 45 insertions, 52 deletions
@@ -1,30 +1,31 @@ pkgbase = filelight-git pkgdesc = View disk usage information - pkgver = 23.08.3.r5.g4241f24 + pkgver = 24.02.2.r89.g45478b2 pkgrel = 1 url = https://invent.kde.org/utilities/filelight arch = i686 arch = x86_64 - license = GPL - license = LGPL - license = FDL - makedepends = extra-cmake-modules>=5.240.0 + license = GPL-2.0-or-later + license = LGPL-2.0-or-later + makedepends = extra-cmake-modules makedepends = git - makedepends = kdoctools>=5.240.0 - depends = kdeclarative>=5.240.0 - depends = kio>=5.240.0 - depends = kirigami-addons>=0.11.75 - depends = kquickcharts>=5.240.0 - depends = qqc2-desktop-style>=5.240.0 - provides = filelight + makedepends = kdoctools + depends = kdeclarative + depends = kio + depends = kirigami-addons + depends = kquickcharts + depends = kxmlgui + depends = qqc2-desktop-style + provides = filelight=24.02.2 conflicts = filelight source = filelight::git+https://invent.kde.org/utilities/filelight.git sha256sums = SKIP pkgname = filelight-git - depends = kdeclarative>=5.240.0 - depends = kio>=5.240.0 - depends = kirigami-addons>=0.11.75 - depends = kquickcharts>=5.240.0 - depends = qqc2-desktop-style>=5.240.0 + depends = kdeclarative + depends = kio + depends = kirigami-addons + depends = kquickcharts + depends = kxmlgui + depends = qqc2-desktop-style depends = hicolor-icon-theme @@ -3,27 +3,37 @@ _pkgname="filelight" pkgname="$_pkgname-git" -pkgver=23.08.3.r5.g4241f24 +pkgver=24.02.2.r89.g45478b2 pkgrel=1 pkgdesc="View disk usage information" -arch=('i686' 'x86_64') url='https://invent.kde.org/utilities/filelight' -license=('GPL' 'LGPL' 'FDL') +license=('GPL-2.0-or-later' 'LGPL-2.0-or-later') +arch=('i686' 'x86_64') depends=( - 'kdeclarative>=5.240.0' - 'kio>=5.240.0' - 'kirigami-addons>=0.11.75' - 'kquickcharts>=5.240.0' - 'qqc2-desktop-style>=5.240.0' + 'kdeclarative' + 'kio' + 'kirigami-addons' + 'kquickcharts' + 'kxmlgui' + 'qqc2-desktop-style' + + ## implicit + #kconfig + #kcoreaddons + #ki18n + #kirigami + #kwidgetsaddons + #qt6-base + #qt6-declarative ) makedepends=( - 'extra-cmake-modules>=5.240.0' + 'extra-cmake-modules' 'git' - 'kdoctools>=5.240.0' + 'kdoctools' ) -provides=("$_pkgname") +provides=("$_pkgname=${pkgver%%.r*}") conflicts=("$_pkgname") _pkgsrc="$_pkgname" @@ -33,30 +43,12 @@ sha256sums=('SKIP') pkgver() { cd "$_pkgsrc" - local _regex='^\s+<release version="([0-9]+\.[0-9]+(\.[0-9]+)?)".*>$' - local _file='misc/org.kde.filelight.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 _tag=$(git tag | grep -Ev '\.[0-9]{2}$' | sort -rV | head -1) + local _version="${_tag#v}" + local _revision=$(git rev-list --count --cherry-pick "$_tag"...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() { @@ -79,5 +71,5 @@ package() { 'hicolor-icon-theme' ) - DESTDIR="${pkgdir:?}" cmake --install build + DESTDIR="$pkgdir" cmake --install build } |