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


Commits:
730fed31 by Robin Candau at 2024-09-18T13:29:03+02:00
upgpkg: 1.2.8-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-cpufreq-plugin
        pkgdesc = CPU frequency and governor plugin for the Xfce4 panel
        pkgver = 1.2.8
-       pkgrel = 2
-       url = https://docs.xfce.org/panel-plugins/xfce4-cpufreq-plugin
+       pkgrel = 3
+       url = https://docs.xfce.org/panel-plugins/xfce4-cpufreq-plugin/start
        arch = x86_64
        groups = xfce4-goodies
-       license = GPL2
+       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-cpufreq-plugin/1.2/xfce4-cpufreq-plugin-1.2.8.tar.bz2
-       sha256sums = 
07e458d9f4725e572001fb7eb66b9e931792311146e0f75ad5d87b9ae19573e9
+       source = 
git+https://gitlab.xfce.org/panel-plugins/xfce4-cpufreq-plugin.git#tag=xfce4-cpufreq-plugin-1.2.8
+       sha256sums = 
53ffd3c122342feb9d9db097cfecf9cd6746bc52d1a3aef5a55c23e78113aaaa
 
 pkgname = xfce4-cpufreq-plugin


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


=====================================
PKGBUILD
=====================================
@@ -1,33 +1,37 @@
 # Maintainer: Evangelos Foutras <[email protected]>
+# Maintainer: Robin Candau <[email protected]>
 # Contributor: AndyRTR <[email protected]>
 # Contributor: tobias <tobias funnychar archlinux.org>
 
 pkgname=xfce4-cpufreq-plugin
 pkgver=1.2.8
-pkgrel=2
+pkgrel=3
 pkgdesc="CPU frequency and governor plugin for the Xfce4 panel"
 arch=('x86_64')
-license=('GPL2')
-url="https://docs.xfce.org/panel-plugins/xfce4-cpufreq-plugin";
+license=('GPL-2.0-or-later')
+url="https://docs.xfce.org/panel-plugins/xfce4-cpufreq-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=('07e458d9f4725e572001fb7eb66b9e931792311146e0f75ad5d87b9ae19573e9')
+makedepends=('git' 'intltool' 'xfce4-dev-tools')
+source=("git+https://gitlab.xfce.org/panel-plugins/xfce4-cpufreq-plugin.git#tag=$pkgname-$pkgver";)
+sha256sums=('53ffd3c122342feb9d9db097cfecf9cd6746bc52d1a3aef5a55c23e78113aaaa')
 
-build() {
-  cd "$srcdir/$pkgname-$pkgver"
-
-  ./configure \
+prepare() {
+  cd $pkgname
+  ./autogen.sh \
     --prefix=/usr \
     --sysconfdir=/etc \
     --localstatedir=/var \
     --disable-debug
+}
+
+build() {
+  cd $pkgname
   make
 }
 
 package() {
-  cd "$srcdir/$pkgname-$pkgver"
+  cd $pkgname
   make DESTDIR="$pkgdir" install
 }
 



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/xfce4-cpufreq-plugin/-/commit/730fed3178d8a6cd337cf5ccf54dad68303bf957

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


Reply via email to