summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbesc2020-08-22 18:26:15 +0200
committerbesc2020-08-22 18:26:15 +0200
commite4344c24ade300cf8d1230a36384e26213946f7b (patch)
treee1a706df79a05747e3911f3e1d9059f4172d10fa
parentff1bea67b19e208e75d8707e42b4ef782ea37222 (diff)
downloadaur-photivo-git.tar.gz
add convenience script for preparing an AUR update
-rwxr-xr-xprepare-aur-update16
1 files changed, 16 insertions, 0 deletions
diff --git a/prepare-aur-update b/prepare-aur-update
new file mode 100755
index 00000000000..9972b8b9298
--- /dev/null
+++ b/prepare-aur-update
@@ -0,0 +1,16 @@
+#!/bin/bash
+#
+# Run after makepkg -i
+#
+
+source PKGBUILD
+
+echo "--- Updating .SRCINFO"
+makepkg --printsrcinfo > .SRCINFO
+
+echo "--- Checking PKGBUILD"
+namcap PKGBUILD
+
+echo "--- Checking "
+_pkgarch="$(grep 'arch = ' .SRCINFO | cut -d ' ' -f 3)"
+namcap "$pkgname-$epoch:$pkgver-$pkgrel-$_pkgarch.pkg.tar"