summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cf8efa293ccaba69e80a25fa333745bc8c7ba750 (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
34
35
# Maintainer: Sebastian Reuße <seb@wirrsal.net>
pkgname=fzf-marks-git
_gitname=fzf-marks
pkgver=r11.5cf67a2
pkgrel=1
pkgdesc="Create, navigate and delete bookmarks in Bash and Zsh, using the fuzzy finder fzf"
arch=(any)
url=https://github.com/urbainvaes/fzf-marks
license=(GPL)
depends=(fzf)
makedepends=(git)
optdepends=(
    "zsh: to use with zsh"
    "bash: to use with bash"
)
provides=(fzf-marks)
conflicts=(fzf-marks)
source=(git+https://github.com/urbainvaes/fzf-marks)
md5sums=(SKIP)
install=fzf-marks.install

pkgver() {
    cd "$_gitname"
    # No tagged commits. ヽ(´ー`)ノ
    commit=$(git rev-list --count master)
    hash=$(git rev-parse --short HEAD)
    echo "r$commit.$hash"
}

package() {
  cd "$_gitname"
  install -Dm644 README.md "$pkgdir"/usr/share/doc/fzf-marks/README.md
  install -Dm644 fzf-marks.plugin.bash "$pkgdir"/usr/share/fzf-marks/fzf-marks.bash
  install -Dm644 fzf-marks.plugin.zsh "$pkgdir"/usr/share/fzf-marks/fzf-marks.zsh
}