summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bafa54051e31233e977e4cd61d3836fe80a2d3d8 (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
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=fzy-git
pkgver=r330.919bae5
pkgrel=1
pkgdesc="A fuzzy text selector menu for the terminal"
arch=('i686' 'x86_64')
url="https://github.com/jhawthorn/fzy"
license=('custom:MIT')
depends=('glibc')
makedepends=('git')
provides=('fzy')
conflicts=('fzy')
source=("git+https://github.com/jhawthorn/fzy.git")
md5sums=('SKIP')
_gitname="fzy"

pkgver() {
  cd "$_gitname"
  printf "r%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
}

build() {
  cd "$srcdir"/"$_gitname"
  make PREFIX=/usr
}

package() {
  cd "$srcdir/$_gitname"
  make PREFIX=/usr DESTDIR="$pkgdir/" install
  install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}