https://bugs.kde.org/show_bug.cgi?id=497747

--- Comment #4 from Ralf <silver.bul...@zoho.com> ---
Excellent! Thank you!

I have now rewritten the PKGBUILD to an almost completely clean PKGBUILD. It
now always automatically builds the latest commit of the branch release/24.12,
and removes the "v" before the version number. Most of it is still retained
from the official PKGBUILD. To upload it to the AUR, however, the package would
have to be renamed to telly-skout-git, which I don't want for myself, so that I
always see the version of the official package when updating. It was not tested
in a clean chroot.

Regards,
Ralf

$ sudo pacman -Syu
[snip]
warning: telly-skout: local (24.12.0.r10.g075e0db-1) is newer than extra
(24.12.0-1)
 there is nothing to do

$ cat /usr/src/telly-skout/PKGBUILD
pkgname=telly-skout
pkgver=24.12.0.r10.g075e0db
pkgrel=1
pkgdesc='Convergent TV guide based on Kirigami'
url='https://apps.kde.org/telly-skout/'
arch=(x86_64)
license=(GPL-2.0-or-later LGPL-2.0-or-later)
depends=(gcc-libs
         glibc
         kconfig
         kcoreaddons
         kcrash
         ki18n
         kirigami-addons
         kirigami
         qqc2-desktop-style
         qt6-base
         qt6-declarative)
makedepends=(git
             extra-cmake-modules)
groups=(kde-applications
        kde-utilities)
source=(telly-skout::git+https://invent.kde.org/utilities/telly-skout#branch=release/24.12)
sha256sums=('SKIP')
validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7  # Albert Astals Cid
<aa...@kde.org>
              F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87  # Christoph Feck
<cf...@kde.org>
              D81C0CB38EB725EF6691C385BB463350D6EF31EF) # Heiko Becker
<heiko.bec...@kde.org>

pkgver() {
  cd "$pkgname"
  git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cmake -B build -S $pkgname \
    -DBUILD_TESTING=OFF
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}$ cat /usr/src/telly-skout/PKGBUILD
pkgname=telly-skout
pkgver=24.12.0.r10.g075e0db
pkgrel=1
pkgdesc='Convergent TV guide based on Kirigami'
url='https://apps.kde.org/telly-skout/'
arch=(x86_64)
license=(GPL-2.0-or-later LGPL-2.0-or-later)
depends=(gcc-libs
         glibc
         kconfig
         kcoreaddons
         kcrash
         ki18n
         kirigami-addons
         kirigami
         qqc2-desktop-style
         qt6-base
         qt6-declarative)
makedepends=(git
             extra-cmake-modules)
groups=(kde-applications
        kde-utilities)
source=(telly-skout::git+https://invent.kde.org/utilities/telly-skout#branch=release/24.12)
sha256sums=('SKIP')
validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7  # Albert Astals Cid
<aa...@kde.org>
              F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87  # Christoph Feck
<cf...@kde.org>
              D81C0CB38EB725EF6691C385BB463350D6EF31EF) # Heiko Becker
<heiko.bec...@kde.org>

pkgver() {
  cd "$pkgname"
  git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cmake -B build -S $pkgname \
    -DBUILD_TESTING=OFF
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to