Subject: [Git][archlinux/packaging/packages/pkgfile][main] 6 commits: Cosmetic changes

From: "Daniel Bermond (@dbermond)" <[email-masked]>
Date: Sat, 01 Mar 2025 14:14:13 +0000

Daniel Bermond pushed to branch main at Arch Linux / Packaging / Packages / pkgfile

Commits:
1483ea97 by Daniel Bermond at 2025-03-01T10:48:22-03:00
Cosmetic changes

- - - - -
4c893765 by Daniel Bermond at 2025-03-01T10:54:10-03:00
Update meson commands

- - - - -
638fc67d by Daniel Bermond at 2025-03-01T10:59:35-03:00
Update dependencies

- - - - -
b4200314 by Daniel Bermond at 2025-03-01T11:05:19-03:00
Change pkgdesc

- - - - -
8572f133 by Daniel Bermond at 2025-03-01T11:06:29-03:00
Update package maintainer tag

- - - - -
22be7024 by Daniel Bermond at 2025-03-01T11:14:02-03:00
upgpkg: 24-1

- - - - -

3 changed files:

- .SRCINFO
- PKGBUILD
- pkgfile.install

Changes:

=====================================
.SRCINFO
=====================================
@@ -1,21 +1,22 @@
 pkgbase = pkgfile
-	pkgdesc = alpm .files metadata explorer
-	pkgver = 22
+	pkgdesc = A tool to search for files in official repository packages
+	pkgver = 24
 	pkgrel = 1
-	url = https://github.com/falconindy/pkgfile
+	url = https://github.com/falconindy/pkgfile/
 	install = pkgfile.install
 	arch = x86_64
 	license = MIT
-	makedepends = clang
 	makedepends = git
 	makedepends = meson
-	makedepends = systemd
 	depends = curl
+	depends = gcc-libs
+	depends = glibc
 	depends = libarchive
 	depends = pacman
 	depends = pcre
-	source = git+https://github.com/falconindy/pkgfile.git#tag=v22?signed
+	depends = systemd-libs
+	source = git+https://github.com/falconindy/pkgfile.git#tag=v24?signed
 	validpgpkeys = 487EACC08557AD082088DABA1EB2638FF56C0C53
-	b2sums = 2332b2b7f198f4e0021f24b0f2ad44e253dcf711d97d60e14f246993b42fd38079ba1117bebea2441572379847af0526fdf58ed20cb601f37eea3d4d79734ab1
+	sha256sums = 0a02f98d7b4fd516065757e4942c7d2490104a044e31306f7f4b259db8ba36b3
 
 pkgname = pkgfile

=====================================
PKGBUILD
=====================================
@@ -1,38 +1,34 @@
+# Maintainer : Daniel Bermond <[email-masked]>
 # Contributor: Dave Reisner <[email-masked]>
 
 pkgname=pkgfile
-pkgver=22
+pkgver=24
 pkgrel=1
-pkgdesc='alpm .files metadata explorer'
-arch=(x86_64)
-url=https://github.com/falconindy/pkgfile
-license=(MIT)
+pkgdesc='A tool to search for files in official repository packages'
+arch=('x86_64')
+url='https://github.com/falconindy/pkgfile/'
+license=('MIT')
 depends=(
-  curl
-  libarchive
-  pacman
-  pcre
-)
+    'curl'
+    'gcc-libs'
+    'glibc'
+    'libarchive'
+    'pacman'
+    'pcre'
+    'systemd-libs')
 makedepends=(
-  clang
-  git
-  meson
-  systemd
-)
+    'git'
+    'meson')
 install=pkgfile.install
-source=("git+$url.git#tag=v$pkgver?signed")
-b2sums=('2332b2b7f198f4e0021f24b0f2ad44e253dcf711d97d60e14f246993b42fd38079ba1117bebea2441572379847af0526fdf58ed20cb601f37eea3d4d79734ab1')
-validpgpkeys=(487EACC08557AD082088DABA1EB2638FF56C0C53) # Dave Reisner <[email-masked]>
+source=("git+https://github.com/falconindy/pkgfile.git#tag=v${pkgver}?signed")
+sha256sums=('0a02f98d7b4fd516065757e4942c7d2490104a044e31306f7f4b259db8ba36b3')
+validpgpkeys=('487EACC08557AD082088DABA1EB2638FF56C0C53') # Dave Reisner <[email-masked]>
 
 build() {
-  cd $pkgname
-
-  arch-meson build
-  ninja -v -C build
+    arch-meson "$pkgname" build
+    meson compile -C build
 }
 
 package() {
-  cd $pkgname
-
-  DESTDIR="$pkgdir" ninja -C build install
+    meson install -C build --destdir "$pkgdir"
 }

=====================================
pkgfile.install
=====================================
@@ -1,19 +1,24 @@
 #!/bin/sh
 
 post_install() {
-  printf "==> Run 'pkgfile --update' to initialize the database\n"
+    printf '%s\n' "==> Run 'pkgfile --update' to initialize the database"
 }
 
 post_remove() {
-  # the cache dir might not be removed, notify the user
-  if [ -d var/cache/pkgfile ]; then
-    printf "==> /var/cache/pkgfile has not been removed\n"
-  fi
+    # the cache dir might not be removed, notify the user
+    if [ -d 'var/cache/pkgfile' ]
+    then
+        printf '%s\n' '==> /var/cache/pkgfile has not been removed'
+    fi
 }
 
 post_upgrade() {
-  if [ "$(vercmp 19-1 "$2")" -eq 1 ]; then
-    printf "==> Changing permissions on /var/cache/pkgfile from 775 to 755\n"
-    chmod 755 /var/cache/pkgfile
-  fi
+    if [ "$(vercmp 19-1 "$2")" -eq '1' ]
+    then
+        printf '%s\n' '==> Changing permissions on /var/cache/pkgfile from 775 to 755'
+        chmod 755 /var/cache/pkgfile
+    elif [ "$(vercmp 24-1 "$2")" -eq '1' ]
+    then
+        printf '%s\n' "==> Database format has changed, run 'pkgfile --update' to refresh it"
+    fi
 }

View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/pkgfile/-/compare/87fcf898c0e80a114aad387caff69de8d2ff50f8...22be7024d45b92b0f00a3a5fa1cf13b75aaf9295

-- 
View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/pkgfile/-/compare/87fcf898c0e80a114aad387caff69de8d2ff50f8...22be7024d45b92b0f00a3a5fa1cf13b75aaf9295
You're receiving this email because of your account on gitlab.archlinux.org.