summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 92336eddd9dc6c159d219a0e0e24535edf610ea9 (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: Crestwave <crest.wave@yahoo.com>

pkgname=fff-git
pkgver=r124.6e2c29b
pkgrel=1
pkgdesc="A simple file manager written in bash"
arch=('any')
url="https://github.com/dylanaraps/fff"
license=('MIT')
makedepends=('git')
depends=('bash' 'xdg-utils')
source=("git+${url}.git")
sha256sums=('SKIP')

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

package() {
  cd "$srcdir/fff"
  install -Dm755 fff "$pkgdir/usr/bin/fff"
  install -Dm644 fff.1 "$pkgdir/usr/share/man/man1/fff.1"
  install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/${pkgname}/LICENSE.md"
  install -Dm644 {CONTRIBUTING,README}.md -t "$pkgdir/usr/share/doc/$pkgname"
}