summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 44ee43c038edf61d8719b00819d3bce4ac88701c (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
# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dor com>
# Contributor: Moritz Luedecke <ritze@skweez.net>

pkgname=dfp
pkgver=20160409
pkgrel=2
pkgdesc="df with progress bar in pacman style"
url="https://github.com/ritze/dfp"
license=('GPL')
arch=('any')
makedepends=('git')
depends=('bash' 'pbar')
conflicts=("${pkgname}")
provides=("${pkgname}")
source=("${pkgname}::git+https://github.com/ritze/dfp.git#branch=master")
md5sums=('SKIP')

pkgver() {
	cd "$pkgname"

	git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//'
}

package() {
	install -Dm755 "$srcdir/$pkgname/dfp" "$pkgdir/usr/bin/dfp"

	install -Dm644 "$srcdir/$pkgname/README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
}