blob: 687ae7092871a1dabc72288d12ad9a7d9c3b70ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: Librewish <librewish@gmail.com>
# Contributor: Mark Wagie <mark dot wagie at tutanota dot com>
# Contributor: Paul Kasemir <paul.kasemir@gmail.com>
pkgname=find-the-command-git
pkgver=2.0.r0.g05157f6
pkgrel=1
pkgdesc="Advanced command-not-found hook for bash, fish and zsh using the power of pacman"
arch=('any')
url="https://github.com/pkasemir/find-the-command"
license=('WTFPL')
depends=('pacman' 'systemd')
optdepends=('fzf: highly recommended for package selection and previews'
'pkgfile: provides faster searches than pacman')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
install="${pkgname%-git}.install"
source=('git+https://github.com/pkasemir/find-the-command.git')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
cd "$srcdir/${pkgname%-git}"
install -Dm644 usr/lib/systemd/system/pacman-files{.service,.timer} -t \
"$pkgdir/usr/lib/systemd/system"
install -Dm644 README.md usr/share/doc/"${pkgname%-git}"/ftc.* -t \
"$pkgdir/usr/share/doc/${pkgname%-git}"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/${pkgname%-git}"
}
|