summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c263b8e6bac5f27b6136ac798bf223ddc93115b2 (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
32
33
34
35
36
37
38
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=duc-git
pkgver=1.4.4r7.g0e688f9
pkgrel=1
pkgdesc="collection of tools for inspecting and visualizing disk usage (git version)"
arch=('i686' 'x86_64')
url="http://duc.zevv.nl/"
license=('GPL2')
depends=('cairo' 'pango' 'sqlite' 'ncurses')
makedepends=('git')
provides=('duc')
conflicts=('duc')
source=("git+https://github.com/zevv/duc.git")
md5sums=('SKIP')

pkgver() {
  cd ${pkgname%-git}
  git describe --tags | sed 's+-+r+' |tr - .
}

prepare() {
  cd ${pkgname%-git}
  touch config.h.in
  sed -i 's+ncursesw/ncurses.h+ncurses.h+' src/duc/cmd-ui.c
}

build() {
  cd ${pkgname%-git}
  aclocal && autoconf && automake -a -f 
  ./configure --prefix=/usr --with-db-backend=sqlite3 
  make
}

package() {
  cd ${pkgname%-git}
  make DESTDIR="$pkgdir/" install
}