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


Commits:
f2755dcf by Robin Candau at 2024-09-19T13:43:30+02:00
upgpkg: 1.1.3-3 Overall rework of the PKGBUILD

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

- Update URL (point to upstream doc webpage for the package)
- 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,14 +1,16 @@
 pkgbase = xfce4-fsguard-plugin
        pkgdesc = File system usage monitor plugin for the Xfce4 panel
        pkgver = 1.1.3
-       pkgrel = 2
-       url = https://docs.xfce.org/panel-plugins/xfce4-fsguard-plugin
+       pkgrel = 3
+       url = https://docs.xfce.org/panel-plugins/xfce4-fsguard-plugin/start
        arch = x86_64
        groups = xfce4-goodies
-       license = GPL2
+       license = BSD-2-Clause
+       makedepends = git
        makedepends = intltool
+       makedepends = xfce4-dev-tools
        depends = xfce4-panel
-       source = 
https://archive.xfce.org/src/panel-plugins/xfce4-fsguard-plugin/1.1/xfce4-fsguard-plugin-1.1.3.tar.bz2
-       sha256sums = 
84ef8bb4752292d64c0ef101badf7b14448790bfa0a85de644dbfa22986ec258
+       source = 
git+https://gitlab.xfce.org/panel-plugins/xfce4-fsguard-plugin.git#tag=xfce4-fsguard-plugin-1.1.3
+       sha256sums = 
081825d0babd8709b0c69a586662989887d193c32b16745480bddac38270a6fb
 
 pkgname = xfce4-fsguard-plugin


=====================================
.nvchecker.toml
=====================================
@@ -0,0 +1,5 @@
+[xfce4-fsguard-plugin]
+source = "git"
+git = "https://gitlab.xfce.org/panel-plugins/xfce4-fsguard-plugin.git";
+prefix = "xfce4-fsguard-plugin-"
+exclude_regex = "start.*|0.*|1.*"


=====================================
PKGBUILD
=====================================
@@ -1,34 +1,39 @@
 # Maintainer: Evangelos Foutras <[email protected]>
+# Maintainer: Robin Candau <[email protected]>
 # Contributor: AndyRTR <[email protected]>
 # Contributor: Ben <[email protected]>
 
 pkgname=xfce4-fsguard-plugin
 pkgver=1.1.3
-pkgrel=2
+pkgrel=3
 pkgdesc="File system usage monitor plugin for the Xfce4 panel"
 arch=('x86_64')
-license=('GPL2')
-url="https://docs.xfce.org/panel-plugins/xfce4-fsguard-plugin";
+license=('BSD-2-Clause')
+url="https://docs.xfce.org/panel-plugins/xfce4-fsguard-plugin/start";
 groups=('xfce4-goodies')
 depends=('xfce4-panel')
-makedepends=('intltool')
-source=(https://archive.xfce.org/src/panel-plugins/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2)
-sha256sums=('84ef8bb4752292d64c0ef101badf7b14448790bfa0a85de644dbfa22986ec258')
+makedepends=('git' 'intltool' 'xfce4-dev-tools')
+source=("git+https://gitlab.xfce.org/panel-plugins/xfce4-fsguard-plugin.git#tag=$pkgname-$pkgver";)
+sha256sums=('081825d0babd8709b0c69a586662989887d193c32b16745480bddac38270a6fb')
 
-build() {
-  cd $pkgname-$pkgver
-
-  ./configure \
+prepare() {
+  cd $pkgname
+  ./autogen.sh \
     --prefix=/usr \
     --sysconfdir=/etc \
     --localstatedir=/var \
     --disable-debug
+}
+
+build() {
+  cd $pkgname
   make
 }
 
 package() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   make DESTDIR="$pkgdir" install
+  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
 }
 
 # vim:set ts=2 sw=2 et:



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/xfce4-fsguard-plugin/-/commit/f2755dcfda8425e5c7468c801af7ee4788b944f8

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


Reply via email to