git » xfce4-dev-tools.git » commit 75617c6

Overall rework of the PKGBUILD

author Robin Candau
2024-09-13 07:54:02 UTC
committer Robin Candau
2024-09-13 07:54:02 UTC
parent 2b5958f1941c1112e4cc6695b733046ea948ab66

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 check()
- Add nvchecker integration (.nvchecker.toml)

.SRCINFO +6 -5
.nvchecker.toml +5 -0
PKGBUILD +20 -10

diff --git a/.SRCINFO b/.SRCINFO
index 699605d..01d46b5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,16 @@
 pkgbase = xfce4-dev-tools
 	pkgdesc = Xfce developer tools
 	pkgver = 4.18.1
-	pkgrel = 1
-	url = https://www.xfce.org/
+	pkgrel = 2
+	url = https://docs.xfce.org/xfce/xfce4-dev-tools/start
 	arch = x86_64
-	license = GPL2
+	license = GPL-2.0-or-later
+	makedepends = git
 	depends = glib2
 	depends = intltool
 	depends = gtk-doc
 	optdepends = docker: xfce-build helper script
-	source = https://archive.xfce.org/src/xfce/xfce4-dev-tools/4.18/xfce4-dev-tools-4.18.1.tar.bz2
-	sha256sums = 812cabe7048922ebc176564b73c3e427e467c9566365ee3e54c0487d305a7681
+	source = git+https://gitlab.xfce.org/xfce/xfce4-dev-tools.git#tag=xfce4-dev-tools-4.18.1
+	sha256sums = 29a978213b54fd02e532ee955513a6775be3652aa192893fe20c9da333843927
 
 pkgname = xfce4-dev-tools
diff --git a/.nvchecker.toml b/.nvchecker.toml
new file mode 100644
index 0000000..661ed4e
--- /dev/null
+++ b/.nvchecker.toml
@@ -0,0 +1,5 @@
+[xfce4-dev-tools]
+source = "git"
+git = "https://gitlab.xfce.org/xfce/xfce4-dev-tools.git"
+prefix = "xfce4-dev-tools-"
+exclude_regex = 'xfce4-dev-tools-4\.[12][13579]\.[0-9]+' # 4.19.x, 4.21.x, etc.
diff --git a/PKGBUILD b/PKGBUILD
index ce2a5b7..e81b92a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,31 +1,41 @@
 # Maintainer: Evangelos Foutras <foutrelis@archlinux.org>
+# Maintainer: Robin Candau <antiz@archlinux.org>
 # Contributor: Andreas Radke <andyrtr@archlinux.org>
 # Contributor: Tobias Kieslich <tobias funnychar archlinux.org>
 
 pkgname=xfce4-dev-tools
 pkgver=4.18.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Xfce developer tools"
 arch=('x86_64')
-url="https://www.xfce.org/"
-license=('GPL2')
+url="https://docs.xfce.org/xfce/xfce4-dev-tools/start"
+license=('GPL-2.0-or-later')
 depends=('glib2' 'intltool' 'gtk-doc')
+makedepends=('git')
 optdepends=('docker: xfce-build helper script')
-source=(https://archive.xfce.org/src/xfce/xfce4-dev-tools/${pkgver%.*}/$pkgname-$pkgver.tar.bz2)
-sha256sums=('812cabe7048922ebc176564b73c3e427e467c9566365ee3e54c0487d305a7681')
+source=("git+https://gitlab.xfce.org/xfce/xfce4-dev-tools.git#tag=$pkgname-$pkgver")
+sha256sums=('29a978213b54fd02e532ee955513a6775be3652aa192893fe20c9da333843927')
 
-build() {
-  cd $pkgname-$pkgver
-
-  ./configure \
+prepare() {
+  cd $pkgname
+  ./autogen.sh \
     --prefix=/usr \
     --sysconfdir=/etc \
     --localstatedir=/var
+}
+
+build() {
+  cd $pkgname
   make
 }
 
+check() {
+  cd $pkgname
+  make check
+}
+
 package() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   make DESTDIR="$pkgdir" install
 }