Robin Candau pushed to branch main at Arch Linux / Packaging / Packages / 
mousepad


Commits:
17cbd386 by Robin Candau at 2024-09-18T08:57:00+02:00
upgpkg: 0.6.2-4 Overall rework of the PKGBUILD

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

- Use SPDX identifier for the license
- Switch to a more transparent source (git sources)

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,20 +1,23 @@
 pkgbase = mousepad
        pkgdesc = Simple text editor for Xfce
        pkgver = 0.6.2
-       pkgrel = 3
+       pkgrel = 4
        url = https://docs.xfce.org/apps/mousepad/start
        arch = x86_64
        groups = xfce4-goodies
-       license = GPL2
+       license = GPL-2.0-or-later
+       makedepends = git
+       makedepends = glib2-devel
        makedepends = gspell
        makedepends = libxfce4ui
        makedepends = polkit
+       makedepends = xfce4-dev-tools
        depends = gtksourceview4
        depends = desktop-file-utils
        depends = hicolor-icon-theme
        optdepends = gspell: spell checking plugin
        optdepends = libxfce4ui: shortcuts editor plugin
-       source = 
https://archive.xfce.org/src/apps/mousepad/0.6/mousepad-0.6.2.tar.bz2
-       sha256sums = 
e7cacb3b8cb1cd689e6341484691069e73032810ca51fc747536fc36eb18d19d
+       source = 
git+https://gitlab.xfce.org/apps/mousepad.git#tag=mousepad-0.6.2
+       sha256sums = 
8905ae09035419dcfaa689d72dd4f5776800eb7c0189f6f92b06e1c7a72ac4d7
 
 pkgname = mousepad


=====================================
PKGBUILD
=====================================
@@ -5,32 +5,35 @@
 
 pkgname=mousepad
 pkgver=0.6.2
-pkgrel=3
+pkgrel=4
 pkgdesc="Simple text editor for Xfce"
 arch=('x86_64')
 url="https://docs.xfce.org/apps/mousepad/start";
-license=('GPL2')
+license=('GPL-2.0-or-later')
 groups=('xfce4-goodies')
 depends=('gtksourceview4' 'desktop-file-utils' 'hicolor-icon-theme')
-makedepends=('gspell' 'libxfce4ui' 'polkit')
+makedepends=('git' 'glib2-devel' 'gspell' 'libxfce4ui' 'polkit' 
'xfce4-dev-tools')
 optdepends=('gspell: spell checking plugin'
             'libxfce4ui: shortcuts editor plugin')
-source=(https://archive.xfce.org/src/apps/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2)
-sha256sums=('e7cacb3b8cb1cd689e6341484691069e73032810ca51fc747536fc36eb18d19d')
+source=("git+https://gitlab.xfce.org/apps/mousepad.git#tag=$pkgname-$pkgver";)
+sha256sums=('8905ae09035419dcfaa689d72dd4f5776800eb7c0189f6f92b06e1c7a72ac4d7')
 
-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/mousepad/-/commit/17cbd386f448fc32468a2dc65c1765dde505684b

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/mousepad/-/commit/17cbd386f448fc32468a2dc65c1765dde505684b
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to