summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6115a65e76f03a8e69b89d645c55a774364ce893 (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
# Maintainer: Lucas Sampaio <lucas@lsmagalhaes.com>
# Maintainer: Quan Guo <guotsuan@gmail.com>

pkgname=fpp-git
pkgver=0.7.0.r443
pkgrel=1
pkgdesc='Facebook PathPicker is a simple command line tool that solves the perpetual problem of selecting files out of bash output.'
url='https://github.com/facebook/PathPicker'
license=('BSD')
source=('git+https://github.com/facebook/PathPicker.git')
sha256sums=('SKIP')
arch=('any')
makedepends=('git' 'python2')
depends=('ruby')
conflicts=('fpp')
provides=('fpp')

pkgver() {
  cd "${srcdir}/PathPicker"
  printf "%s.r%s" "$(git describe --abbrev=0 --tags)" "$(git rev-list --count HEAD)"
}

package() {
  mkdir -p $pkgdir/opt/PathPicker
  cp -r $srcdir/PathPicker $pkgdir/opt

  mkdir -p $pkgdir/usr/bin
  ln -s "/opt/PathPicker/fpp" "$pkgdir/usr/bin/fpp"
}