summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b18b1d97caccaeea828c2002644628db06b2f421 (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: j605

_gitname=duviz
pkgname=$_gitname-git
pkgver=r48.3ae1f98
pkgrel=1
pkgdesc='Command line disk space usage visualization utility'
arch=('any')
url="http://soxofaan.github.com/duviz/"
license=('GPL')
depends=('python')
makedepends=('git')
source=('git+https://github.com/soxofaan/duviz.git')
md5sums=('SKIP')

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

prepare() {
  cd "$_gitname"
  sed -i -e '1s:#!/usr/bin/env python:#!/usr/bin/python:' duviz.py
}
package() {
  cd "$_gitname"
  install -Dm 755 duviz.py ${pkgdir}/usr/bin/duviz
}