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


Commits:
54df0234 by Robin Candau at 2024-09-20T12:32:38+02:00
upgpkg: 1.4.1-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-netload-plugin
        pkgdesc = A netload plugin for the Xfce panel
        pkgver = 1.4.1
-       pkgrel = 2
-       url = https://docs.xfce.org/panel-plugins/xfce4-netload-plugin
+       pkgrel = 3
+       url = https://docs.xfce.org/panel-plugins/xfce4-netload-plugin/start
        arch = x86_64
        groups = xfce4-goodies
-       license = GPL
+       license = GPL-2.0-or-later
+       makedepends = git
        makedepends = intltool
+       makedepends = xfce4-dev-tools
        depends = xfce4-panel
-       source = 
https://archive.xfce.org/src/panel-plugins/xfce4-netload-plugin/1.4/xfce4-netload-plugin-1.4.1.tar.bz2
-       sha256sums = 
9fac3a3ad52e18584bfb127cd1721d56de1004b9fdd140915fded89704ccb44e
+       source = 
git+https://gitlab.xfce.org/panel-plugins/xfce4-netload-plugin.git#tag=xfce4-netload-plugin-1.4.1
+       sha256sums = 
d591f14b5438a20d2f6a7a39f1f57b4cbb449db4a952cd02ba1272e1743c6e30
 
 pkgname = xfce4-netload-plugin


=====================================
.nvchecker.toml
=====================================
@@ -0,0 +1,4 @@
+[xfce4-netload-plugin]
+source = "git"
+git = "https://gitlab.xfce.org/panel-plugins/xfce4-netload-plugin.git";
+prefix = "xfce4-netload-plugin-"


=====================================
PKGBUILD
=====================================
@@ -1,32 +1,36 @@
 # Maintainer: Evangelos Foutras <[email protected]>
+# Maintainer: Robin Candau <[email protected]>
 # Contributor: Aurelien Foret <[email protected]>
 
 pkgname=xfce4-netload-plugin
 pkgver=1.4.1
-pkgrel=2
+pkgrel=3
 pkgdesc="A netload plugin for the Xfce panel"
 arch=('x86_64')
-url="https://docs.xfce.org/panel-plugins/xfce4-netload-plugin";
-license=('GPL')
+url="https://docs.xfce.org/panel-plugins/xfce4-netload-plugin/start";
+license=('GPL-2.0-or-later')
 groups=('xfce4-goodies')
 depends=('xfce4-panel')
-makedepends=('intltool')
-source=(https://archive.xfce.org/src/panel-plugins/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2)
-sha256sums=('9fac3a3ad52e18584bfb127cd1721d56de1004b9fdd140915fded89704ccb44e')
+makedepends=('git' 'intltool' 'xfce4-dev-tools')
+source=("git+https://gitlab.xfce.org/panel-plugins/xfce4-netload-plugin.git#tag=$pkgname-$pkgver";)
+sha256sums=('d591f14b5438a20d2f6a7a39f1f57b4cbb449db4a952cd02ba1272e1743c6e30')
 
-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
 }
 



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/xfce4-netload-plugin/-/commit/54df023474a50407b2d6d27ca08d81aed4adee47

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


Reply via email to