v0.4
This commit is contained in:
parent
6652b70cc8
commit
2d0046b77f
11
PKGBUILD
11
PKGBUILD
|
@ -18,15 +18,4 @@ package() {
|
||||||
install -dm755 $pkgdir/usr/bin
|
install -dm755 $pkgdir/usr/bin
|
||||||
cp -r $srcdir/$pkgname/fpf $pkgdir/usr/bin/
|
cp -r $srcdir/$pkgname/fpf $pkgdir/usr/bin/
|
||||||
chmod a+x $pkgdir/usr/bin/*
|
chmod a+x $pkgdir/usr/bin/*
|
||||||
install -dm755 "$pkgdir"/usr/lib/systemd/system/
|
|
||||||
install -m644 $srcdir/$pkgname/fpf.{service,timer} "$pkgdir"/usr/lib/systemd/system/
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo
|
|
||||||
echo -------------------------------------
|
|
||||||
echo 'Please start/enable fpf service'
|
|
||||||
echo 'See git installation instructions'
|
|
||||||
echo -------------------------------------
|
|
||||||
echo
|
|
||||||
echo
|
|
||||||
}
|
}
|
||||||
|
|
14
fpf
14
fpf
|
@ -1,8 +1,9 @@
|
||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
### Set up package lists
|
||||||
|
pacman -Slq > /tmp/packages &
|
||||||
|
|
||||||
### Help
|
### Help
|
||||||
|
|
||||||
Help() {
|
Help() {
|
||||||
echo
|
echo
|
||||||
echo "Use fzf to search and install with Pacman and Yay"
|
echo "Use fzf to search and install with Pacman and Yay"
|
||||||
|
@ -20,11 +21,14 @@ Help() {
|
||||||
}
|
}
|
||||||
|
|
||||||
### MAIN
|
### MAIN
|
||||||
|
|
||||||
while getopts ":yh" option; do
|
while getopts ":yh" option; do
|
||||||
case $option in
|
case $option in
|
||||||
|
|
||||||
y) yay -Sl | awk '{print $2($4=="" ? "" : " *")}'| fzf -e -m --preview 'cat <(yay -Si {1}) <(yay -Fl {1} | awk "{print \$2}")' --layout=reverse | xargs -ro -n1 yay -S
|
y)
|
||||||
|
wget -P /tmp/aur/ https://aur.archlinux.org/packages.gz >/dev/null 2>&1 && gunzip -f /tmp/aur/packages.gz && cat /tmp/aur/packages >> /tmp/packages
|
||||||
|
yay -Qq > /tmp/local_packages
|
||||||
|
cat /tmp/packages /tmp/local_packages | sort | uniq > /tmp/all_packages
|
||||||
|
cat /tmp/packages | awk '{print $2($4=="" ? "" : " *")}'| fzf -e -m --preview 'cat <(yay -Si {1}) <(yay -Fl {1} | awk "{print \$2}")' --layout=reverse | xargs -ro -n1 yay -S
|
||||||
exit;;
|
exit;;
|
||||||
|
|
||||||
h) Help
|
h) Help
|
||||||
|
@ -36,4 +40,6 @@ while getopts ":yh" option; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
pacman -Sl | awk '{print $2($4=="" ? "" : " *")}'| fzf -e -m --preview 'cat <(pacman -Si {1}) <(pacman -Fl {1} | awk "{print \$2}")' --layout=reverse | xargs -ro -n1 sudo pacman -S
|
pacman -Qq > /tmp/local_packages
|
||||||
|
cat /tmp/packages /tmp/local_packages | sort | uniq > /tmp/all_packages
|
||||||
|
cat /tmp/all_packages | awk '{print $2($4=="" ? "" : " *")}'| fzf -e -m --preview 'cat <(pacman -Si {1}) <(pacman -Fl {1} | awk "{print \$2}")' --layout=reverse | xargs -ro -n1 sudo pacman -S
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Sync files database
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
User=root
|
|
||||||
ExecStart=/usr/bin/sh -c 'pacman -Fy'
|
|
Loading…
Reference in New Issue