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

pkgname=fpp-git
pkgver=0.7.2.r521
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' 'python')
depends=()
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"
  install -d  "$pkgdir/usr/share/man/man1"
  ln -s /opt/PathPicker/debian/usr/share/man/man1/fpp.1 "$pkgdir/usr/share/man/man1/fpp.1"
}