diff options
author | Hanabishi | 2023-03-18 23:36:34 +0500 |
---|---|---|
committer | Hanabishi | 2023-03-18 23:36:34 +0500 |
commit | 47d2ce844129642c26784a378ce18cb4a2bade0c (patch) | |
tree | 34f2b97e3c18402430c186ce85b2666bbaa9b931 | |
parent | f30265f9d773f605c0a009b759771862535700d0 (diff) | |
download | aur-47d2ce844129642c26784a378ce18cb4a2bade0c.tar.gz |
Fix the package
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 38 |
3 files changed, 31 insertions, 24 deletions
@@ -1,25 +1,24 @@ pkgbase = spectacle-git pkgdesc = KDE screenshot capture utility - pkgver = 22.04.0.r21.g8e00fd6 + pkgver = 22.04.0.r311.gca6de42 pkgrel = 1 - url = https://kde.org/applications/utilities/org.kde.spectacle - arch = i686 + url = https://apps.kde.org/spectacle/ arch = x86_64 groups = kde-applications groups = kde-graphics license = GPL + makedepends = git makedepends = extra-cmake-modules makedepends = kdoctools - makedepends = git + makedepends = plasma-wayland-protocols depends = xcb-util-cursor depends = purpose depends = knewstuff - depends = kwayland depends = qt5-tools - depends = kimageannotator + depends = kpipewire provides = spectacle conflicts = spectacle source = git+https://invent.kde.org/graphics/spectacle.git - md5sums = SKIP + sha256sums = SKIP pkgname = spectacle-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..05c6d4d4c97b --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!.SRCINFO +!PKGBUILD @@ -1,32 +1,36 @@ -# Maintainer: katt <magunasu.b97@gmail.com> +# Contributor: katt <magunasu.b97@gmail.com> # Contributor: FadeMind <fademind@gmail.com> # Contributor: Andrea Scarpino <andrea@archlinux.org> -pkgname=spectacle-git -pkgver=22.04.0.r21.g8e00fd6 +_name=spectacle +pkgname=${_name}-git +pkgver=22.04.0.r311.gca6de42 pkgrel=1 pkgdesc='KDE screenshot capture utility' -arch=(i686 x86_64) -url=https://kde.org/applications/utilities/org.kde.spectacle -license=(GPL) -depends=(xcb-util-cursor purpose knewstuff kwayland qt5-tools kimageannotator) -makedepends=(extra-cmake-modules kdoctools git) -conflicts=("${pkgname%-git}") -provides=("${pkgname%-git}") -groups=(kde-applications kde-graphics) -source=(git+https://invent.kde.org/graphics/spectacle.git) -md5sums=('SKIP') +arch=('x86_64') +url='https://apps.kde.org/spectacle/' +license=('GPL') +groups=('kde-applications' 'kde-graphics') +provides=("${_name}") +conflicts=("${_name}") +depends=('xcb-util-cursor' 'purpose' 'knewstuff' 'qt5-tools' 'kpipewire') +makedepends=('git' 'extra-cmake-modules' 'kdoctools' 'plasma-wayland-protocols') +source=("git+https://invent.kde.org/graphics/spectacle.git") +sha256sums=('SKIP') pkgver() { - git -C "${pkgname%-git}" describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' + cd "${_name}" + git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { - cmake -B build -S "${pkgname%-git}" \ + cmake -B "build" -S "${_name}" \ + -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_TESTING=OFF - cmake --build build + + cmake --build "build" } package() { - DESTDIR="$pkgdir" cmake --install build + DESTDIR="${pkgdir}" cmake --install "build" } |