summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 496b924b0491271eb6c00a413bdd7e053f103539 (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: James Pike <github@chilon.net>
pkgname=fzu-git
pkgver=r393.27d9655
pkgrel=1
pkgdesc="A fuzzy text selector menu for the terminal"
arch=('i686' 'x86_64')
url="https://github.com/ohjames/fzu"
license=('custom:MIT')
depends=('glibc' 'libconfig' 'libxdg-basedir')
makedepends=('git')
provides=('fzu')
conflicts=('fzu')
source=("git+https://github.com/ohjames/fzu.git")
md5sums=('SKIP')
_gitname="fzu"

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
}