summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e5c01c7530f5e409437ee7f84bb8fe34e36a5e5c (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=0.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/^v//;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/{}" \;
}