changed post install to hook
This commit is contained in:
parent
3fc4fb0ad9
commit
62fbe197fe
3
PKGBUILD
3
PKGBUILD
|
@ -10,7 +10,6 @@ depends=('pacman'
|
||||||
'yay'
|
'yay'
|
||||||
'fzf')
|
'fzf')
|
||||||
makedepends=('git')
|
makedepends=('git')
|
||||||
install=$pkgname.install
|
|
||||||
source=("git://github.com/ericlay/$pkgname")
|
source=("git://github.com/ericlay/$pkgname")
|
||||||
md5sums=('SKIP')
|
md5sums=('SKIP')
|
||||||
|
|
||||||
|
@ -19,4 +18,6 @@ package() {
|
||||||
install -dm755 $pkgdir/usr/bin
|
install -dm755 $pkgdir/usr/bin
|
||||||
cp -r $srcdir/$pkgname/bin $pkgdir/usr
|
cp -r $srcdir/$pkgname/bin $pkgdir/usr
|
||||||
chmod a+x $pkgdir/usr/bin/*
|
chmod a+x $pkgdir/usr/bin/*
|
||||||
|
install -dm755 "$pkgdir"/usr/share/libalpm/hooks/
|
||||||
|
install -m644 fuzzy-pkg-finder.hook "$pkgdir"/usr/share/libalpm/hooks/
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
[Trigger]
|
||||||
|
Type = Path
|
||||||
|
Operation = Install
|
||||||
|
Operation = Upgrade
|
||||||
|
Target = fuzzy-pkg-finder
|
||||||
|
|
||||||
|
[Action]
|
||||||
|
Description = Syncing file database...
|
||||||
|
When = PostTransaction
|
||||||
|
Exec = /bin/sh -c 'pacman -Fy && yay -Fy'
|
|
@ -1,4 +0,0 @@
|
||||||
## arg 1: the new package version
|
|
||||||
post_install() {
|
|
||||||
sudo pacman -Fy && yay -Fy
|
|
||||||
}
|
|
Loading…
Reference in New Issue