From 3fc4fb0ad9467111cb248c58fa3808f644a1877c Mon Sep 17 00:00:00 2001 From: Eric Lay Date: Thu, 11 Jun 2020 18:33:32 -0500 Subject: [PATCH] added post-install script --- PKGBUILD | 2 +- fuzzy-pkg-finder.install | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 fuzzy-pkg-finder.install diff --git a/PKGBUILD b/PKGBUILD index 00c0c3d..f4717d4 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -10,7 +10,7 @@ depends=('pacman' 'yay' 'fzf') makedepends=('git') -#install= TODO add post install script to sync pacman file database. +install=$pkgname.install source=("git://github.com/ericlay/$pkgname") md5sums=('SKIP') diff --git a/fuzzy-pkg-finder.install b/fuzzy-pkg-finder.install new file mode 100644 index 0000000..61a9a3a --- /dev/null +++ b/fuzzy-pkg-finder.install @@ -0,0 +1,4 @@ +## arg 1: the new package version +post_install() { + sudo pacman -Fy && yay -Fy +}