diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/xdiskusage/PKGBUILD |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/xdiskusage/PKGBUILD')
-rw-r--r-- | community/xdiskusage/PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/community/xdiskusage/PKGBUILD b/community/xdiskusage/PKGBUILD new file mode 100644 index 000000000..f73231f15 --- /dev/null +++ b/community/xdiskusage/PKGBUILD @@ -0,0 +1,42 @@ +# $Id: PKGBUILD 2038 2009-09-07 16:25:48Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Tom Newsom <Jeepster@gmx.co.uk> +# Contributor: Jason Chu <jason@archlinux.org> + +pkgname=xdiskusage +pkgver=1.48 +pkgrel=5 +pkgdesc="xdiskusage is a user-friendly program to show you what is using up all your disk space" +arch=('i686' 'x86_64') +depends=('fltk') +license=('GPL') +url="http://xdiskusage.sourceforge.net" +options=(!emptydirs) +source=(http://xdiskusage.sourceforge.net/$pkgname-$pkgver.tgz + 'stdin-is-null.patch') +md5sums=('a902aa9d73761ade98256c3cd5c1f533' + '0181b66b44e382e44c91602d8de9a7b6') + +build() { + cd "$srcdir/$pkgname-$pkgver" + sed -i 's/-lGL -lGLU/-lXft/' makeinclude.in + + patch -Np1 -i "$srcdir/stdin-is-null.patch" + + [ $CARCH == "x86_64" ] && patch xdiskusage.C <<EOF +991c991 +< switch ((int)v) { +--- +> switch ((long long)v) { +1004c1004 +< int n = (int)v; +--- +> int n = (long long)v; +EOF + + ./configure --prefix=/usr + install -d "$pkgdir/usr/bin" "$pkgdir/usr/share/man/man1" + LDFLAGS=-lXi make || return 1 + make prefix="$pkgdir/usr" mandir="$pkgdir/usr/share/man" install || return 1 + chmod 0644 $pkgdir/usr/share/man/man1/* +} |