Robin Candau pushed to branch main at Arch Linux / Packaging / Packages / 
xfce4-screenshooter


Commits:
b02a3a7a by Robin Candau at 2024-09-20T13:51:18+02:00
upgpkg: 1.11.1-2 Overall rework of the PKGBUILD

Context: https://archlinux.org/todo/general-xfce-packages-rework/

- Use SPDX identifier for the license
- Switch to a more transparent source (git sources)
- Add nvchecker integration (.nvchecker.toml)

- - - - -


3 changed files:

- .SRCINFO
- + .nvchecker.toml
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,19 +1,23 @@
 pkgbase = xfce4-screenshooter
        pkgdesc = An application to take screenshots
        pkgver = 1.11.1
-       pkgrel = 1
+       pkgrel = 2
        url = https://docs.xfce.org/apps/xfce4-screenshooter/start
        arch = x86_64
        groups = xfce4-goodies
-       license = GPL2
+       license = GPL-2.0-or-later
+       makedepends = git
        makedepends = glib2-devel
+       makedepends = xfce4-dev-tools
        depends = xfce4-panel
-       depends = curl
-       depends = jq
-       depends = zenity
-       depends = xclip
        depends = hicolor-icon-theme
-       source = 
https://archive.xfce.org/src/apps/xfce4-screenshooter/1.11/xfce4-screenshooter-1.11.1.tar.bz2
-       sha256sums = 
d94c4a37ac9b26f6d73214bdc254624a4ede4e111bee8d34e689f8f04c37d34d
+       optdepends = curl: upload screenshots to Imgur
+       optdepends = jq: upload screenshots to Imgur
+       optdepends = xclip: upload screenshots to Imgur
+       optdepends = zenity: upload screenshots to Imgur
+       source = 
git+https://gitlab.xfce.org/apps/xfce4-screenshooter.git#tag=xfce4-screenshooter-1.11.1
+       source = git+https://gitlab.freedesktop.org/wlroots/wlr-protocols.git
+       sha256sums = 
46ab89a112f3336af1327a4169159aeb82855ae1340b7d7ec5dd8c35fab267d0
+       sha256sums = SKIP
 
 pkgname = xfce4-screenshooter


=====================================
.nvchecker.toml
=====================================
@@ -0,0 +1,5 @@
+[xfce4-screenshooter]
+source = "git"
+git = "https://gitlab.xfce.org/apps/xfce4-screenshooter.git";
+prefix = "xfce4-screenshooter-"
+exclude_regex = "show.*"


=====================================
PKGBUILD
=====================================
@@ -1,43 +1,48 @@
 # Maintainer: Evangelos Foutras <[email protected]>
+# Maintainer: Evangelos Foutras <[email protected]>
 # Contributor: Tobias Kieslich <tobias (at) archlinux.org>
 
 pkgname=xfce4-screenshooter
 pkgver=1.11.1
-pkgrel=1
+pkgrel=2
 pkgdesc="An application to take screenshots"
 arch=('x86_64')
 url="https://docs.xfce.org/apps/xfce4-screenshooter/start";
-license=('GPL2')
+license=('GPL-2.0-or-later')
 groups=('xfce4-goodies')
 depends=('xfce4-panel' 'hicolor-icon-theme')
-makedepends=('glib2-devel')
+makedepends=('git' 'glib2-devel' 'xfce4-dev-tools')
 optdepends=(
   'curl: upload screenshots to Imgur'
   'jq: upload screenshots to Imgur'
   'xclip: upload screenshots to Imgur' 
   'zenity: upload screenshots to Imgur'
 )
-source=(https://archive.xfce.org/src/apps/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2)
-sha256sums=('d94c4a37ac9b26f6d73214bdc254624a4ede4e111bee8d34e689f8f04c37d34d')
+source=("git+https://gitlab.xfce.org/apps/xfce4-screenshooter.git#tag=$pkgname-$pkgver";
+        git+https://gitlab.freedesktop.org/wlroots/wlr-protocols.git)
+sha256sums=('46ab89a112f3336af1327a4169159aeb82855ae1340b7d7ec5dd8c35fab267d0'
+            'SKIP')
 
 prepare() {
-  cd $pkgname-$pkgver
-}
-
-build() {
-  cd $pkgname-$pkgver
-
-  ./configure \
+  cd $pkgname
+  git submodule init
+  git config submodule.mate-submodules.url "$srcdir/protocols/wlr-protocols"
+  git -c protocol.file.allow=always submodule update
+  ./autogen.sh \
     --prefix=/usr \
     --sysconfdir=/etc \
     --libexecdir=/usr/lib \
     --localstatedir=/var \
     --disable-debug
+}
+
+build() {
+  cd $pkgname
   make
 }
 
 package() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   make DESTDIR="$pkgdir" install
 }
 



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/xfce4-screenshooter/-/commit/b02a3a7a75632ac78bce2c08e255c9a07a7c5c67

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/xfce4-screenshooter/-/commit/b02a3a7a75632ac78bce2c08e255c9a07a7c5c67
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to