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


Commits:
8ada29df by Robin Candau at 2024-09-19T13:23:36+02:00
upgpkg: 2.7.0-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-diskperf-plugin
        pkgdesc = Displays instant disk/partition performance in the Xfce4 panel
        pkgver = 2.7.0
-       pkgrel = 2
-       url = https://docs.xfce.org/panel-plugins/xfce4-diskperf-plugin
+       pkgrel = 3
+       url = https://docs.xfce.org/panel-plugins/xfce4-diskperf-plugin/start
        arch = x86_64
        groups = xfce4-goodies
-       license = BSD
+       license = BSD-2-Clause
+       makedepends = git
        makedepends = intltool
+       makedepends = xfce4-dev-tools
        depends = xfce4-panel
-       source = 
https://archive.xfce.org/src/panel-plugins/xfce4-diskperf-plugin/2.7/xfce4-diskperf-plugin-2.7.0.tar.bz2
-       sha256sums = 
5909a65341a6af4d7ff3c7bb87aeac91c763f69b43ae9dc4a10668ac226fecc9
+       source = 
git+https://gitlab.xfce.org/panel-plugins/xfce4-diskperf-plugin.git#tag=xfce4-diskperf-plugin-2.7.0
+       sha256sums = 
eeaa0d90c5289c6719f4a6e754899b908ea940be67d1087c12c3f2f8137f4ff6
 
 pkgname = xfce4-diskperf-plugin


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


=====================================
PKGBUILD
=====================================
@@ -1,34 +1,38 @@
 # Maintainer: Evangelos Foutras <[email protected]>
+# Maintainer: Robin Candau <[email protected]>
 # Contributor: Aurelien Foret <[email protected]>
 
 pkgname=xfce4-diskperf-plugin
 pkgver=2.7.0
-pkgrel=2
+pkgrel=3
 pkgdesc="Displays instant disk/partition performance in the Xfce4 panel"
 arch=('x86_64')
-license=('BSD')
-url="https://docs.xfce.org/panel-plugins/xfce4-diskperf-plugin";
+license=('BSD-2-Clause')
+url="https://docs.xfce.org/panel-plugins/xfce4-diskperf-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=('5909a65341a6af4d7ff3c7bb87aeac91c763f69b43ae9dc4a10668ac226fecc9')
+makedepends=('git' 'intltool' 'xfce4-dev-tools')
+source=("git+https://gitlab.xfce.org/panel-plugins/xfce4-diskperf-plugin.git#tag=$pkgname-$pkgver";)
+sha256sums=('eeaa0d90c5289c6719f4a6e754899b908ea940be67d1087c12c3f2f8137f4ff6')
 
-build() {
-  cd "$srcdir/$pkgname-$pkgver"
-
-  ./configure \
+prepare() {
+  cd $pkgname
+  ./autogen.sh \
     --prefix=/usr \
     --sysconfdir=/etc \
     --libexecdir=/usr/lib \
     --localstatedir=/var \
     --disable-static \
     --disable-debug
+}
+
+build() {
+  cd $pkgname
   make
 }
 
 package() {
-  cd "$srcdir/$pkgname-$pkgver"
+  cd $pkgname
   make DESTDIR="$pkgdir" install
   install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/xfce4-diskperf-plugin/-/commit/8ada29dfb3342570e31b31309ab04033205803fe

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


Reply via email to