summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 538dd7022a5ef1cca21d1fe58f9efc9fda67cbfa (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
# Maintainer: lmartinez-mirror
pkgname=fish-pisces-git
pkgver=v0.7.0.r0.ge45e086
pkgrel=1
pkgdesc="Fish plugin for matching paired symbols"
arch=('any')
url="https://github.com/laughedelic/pisces"
license=('LGPL3')
groups=('fish-plugins')
depends=('fish>=2.3')
provides=('fish-pisces')
conflicts=('fish-pisces')
source=("$pkgname::git+$url")
sha512sums=('SKIP')

pkgver()  {
  cd "$pkgname"
  git describe --long --tags | sed 's/-/.r/;s/-/./'
}

package() {
  cd "$pkgname"
  install -Dm644 conf.d/pisces.fish -t "$pkgdir/etc/fish/conf.d/"
  find functions -type f -exec install -Dm644 '{}' "$pkgdir/usr/share/fish/{}" \;
}