[arch-commits] Commit in pkgfile/trunk (PKGBUILD pkgfile.install)

Dave Reisner dreisner at archlinux.org
Sat Aug 11 15:10:20 UTC 2018


    Date: Saturday, August 11, 2018 @ 15:10:19
  Author: dreisner
Revision: 331382

upgpkg: pkgfile 18-2

- use arch-meson wrapper (fixes missing optimizations/hardening)
- chmod pkgfile cache to 755

Modified:
  pkgfile/trunk/PKGBUILD
  pkgfile/trunk/pkgfile.install

-----------------+
 PKGBUILD        |   11 +++--------
 pkgfile.install |    5 +++--
 2 files changed, 6 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-11 11:32:13 UTC (rev 331381)
+++ PKGBUILD	2018-08-11 15:10:19 UTC (rev 331382)
@@ -3,7 +3,7 @@
 
 pkgname=pkgfile
 pkgver=18
-pkgrel=1
+pkgrel=2
 pkgdesc="a pacman .files metadata explorer"
 arch=('x86_64')
 url="http://github.com/falconindy/pkgfile"
@@ -15,16 +15,11 @@
 install=pkgfile.install
 md5sums=('SKIP')
 
-prepare() {
-  cd "$pkgname"
-
-  meson build -D buildtype=release
-}
-
 build() {
   cd "$pkgname"
 
-  ninja -C build
+  arch-meson build
+  ninja -v -C build
 }
 
 package() {

Modified: pkgfile.install
===================================================================
--- pkgfile.install	2018-08-11 11:32:13 UTC (rev 331381)
+++ pkgfile.install	2018-08-11 15:10:19 UTC (rev 331382)
@@ -12,7 +12,8 @@
 }
 
 post_upgrade() {
-  if [ "$(vercmp 5 "$2")" -eq 1 ]; then
-    printf "==> DB format has changed. Please run pkgfile -uu\n"
+  if [ "$(vercmp "$1" 18-1)" -eq 1 ]; then
+    printf "==> Changing permissions on /var/cache/pkgfile from 775 to 755\n"
+    chmod 755 /var/cache/pkgfile
   fi
 }



More information about the arch-commits mailing list