Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages / vifm


Commits:
4b67c20c by Carl Smedstad at 2024-08-27T07:52:45+02:00
upgpkg: 0.13-3: Apply patch to fix bash completion

Additionally:

- Use SPDX license identifier.
- Remove unneeded dependency desktop-file-utils and add missing file & 
glibc.
- Add check() function.

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,18 +1,21 @@
 pkgbase = vifm
        pkgdesc = A file manager with curses interface, which provides 
Vi[m]-like environment
        pkgver = 0.13
-       pkgrel = 2
+       pkgrel = 3
        url = https://vifm.info/
        changelog = vifm.changelog
        arch = x86_64
-       license = GPL
+       license = GPL-2.0-or-later
        makedepends = perl
+       depends = file
+       depends = glibc
        depends = ncurses
-       depends = desktop-file-utils
-       source = https://prdownloads.sourceforge.net/vifm/vifm-0.13.tar.bz2
-       source = https://prdownloads.sourceforge.net/vifm/vifm-0.13.tar.bz2.asc
+       source = 
https://github.com/vifm/vifm/releases/download/v0.13/vifm-0.13.tar.bz2
+       source = 
https://github.com/vifm/vifm/releases/download/v0.13/vifm-0.13.tar.bz2.asc
+       source = 
fix-bash-completion.patch::https://github.com/vifm/vifm/commit/efbf106a095c1163eafdc144be1f1c8fecb91e72.patch
        validpgpkeys = 22349CDBE5227D2108A5667799DC5E4DB05F6BE2
        sha256sums = 
0d9293749a794076ade967ecdc47d141d85e450370594765391bdf1a9bd45075
        sha256sums = SKIP
+       sha256sums = 
57dd10a82e87f446d45b09ccd875006c268b33fff5a1583de3a2670eddbd2b71
 
 pkgname = vifm


=====================================
PKGBUILD
=====================================
@@ -1,31 +1,46 @@
 # Maintainer: Jaroslav Lichtblau <[email protected]>
+# Maintainer: Carl Smedstad <[email protected]>
 
 pkgname=vifm
 pkgver=0.13
-pkgrel=2
+pkgrel=3
 pkgdesc="A file manager with curses interface, which provides Vi[m]-like 
environment"
 arch=('x86_64')
 url="https://vifm.info/";
-license=('GPL')
-depends=('ncurses' 'desktop-file-utils')
+license=('GPL-2.0-or-later')
+depends=(
+  'file'
+  'glibc'
+  'ncurses'
+)
 makedepends=('perl')
 changelog=$pkgname.changelog
-source=(https://prdownloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2{,.asc})
-validpgpkeys=('22349CDBE5227D2108A5667799DC5E4DB05F6BE2') # xaizek 
<[email protected]>
+source=(
+  
"https://github.com/vifm/vifm/releases/download/v$pkgver/$pkgname-$pkgver.tar.bz2"{,.asc}
+  
"fix-bash-completion.patch::https://github.com/vifm/vifm/commit/efbf106a095c1163eafdc144be1f1c8fecb91e72.patch";
+)
 sha256sums=('0d9293749a794076ade967ecdc47d141d85e450370594765391bdf1a9bd45075'
-            'SKIP')
-
-build() {
-  cd "${srcdir}"/$pkgname-$pkgver
+            'SKIP'
+            '57dd10a82e87f446d45b09ccd875006c268b33fff5a1583de3a2670eddbd2b71')
+validpgpkeys=('22349CDBE5227D2108A5667799DC5E4DB05F6BE2') # xaizek 
<[email protected]>
 
-  CFLAGS+=' -fcommon' # 
https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
+prepare() {
+  cd $pkgname-$pkgver
+  patch -Np1 -i "$srcdir/fix-bash-completion.patch"
+}
 
+build() {
+  cd $pkgname-$pkgver
   ./configure --prefix=/usr --sysconfdir=/etc
   make
 }
 
-package() {
-  cd "${srcdir}"/$pkgname-$pkgver
+check() {
+  cd $pkgname-$pkgver
+  make check
+}
 
-  make DESTDIR="${pkgdir}" install
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/vifm/-/commit/4b67c20ce50672ff3af7a04479af612fde1e84f7

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


Reply via email to