summaryrefslogtreecommitdiff
path: root/community/gdmap/PKGBUILD
blob: ea5be993f136acae20c2afc6a4aabf387109371f (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
# $Id: PKGBUILD 67645 2012-03-13 15:14:31Z lcarlier $
# Maintainer: Roman Kyrylych <Roman.Kyrylych@gmail.com>

pkgname=gdmap
pkgver=0.8.1
pkgrel=3
pkgdesc="Tool to inspect the used space of folders."
arch=('i686' 'x86_64')
url="http://gdmap.sourceforge.net"
license=('GPL')
depends=('gtk2' 'glib2' 'libxml2')
makedepends=('gettext' 'intltool')
source=(http://downloads.sourceforge.net/sourceforge/gdmap/$pkgname-$pkgver.tar.gz \
	gtk-fix.patch)
md5sums=('54b43354dbe774810104607ad1eaaed3'
         'a5488ae69fa778cd35398b99bb1d6c94')

build() {
  cd ${srcdir}/gdmap-$pkgver

  cd src
  # fix deprecated gtk macros call
  patch -Np0 -i ../../gtk-fix.patch
  # fix linking
  sed -i -e 's/@LIBXML_LIBS@/@LIBXML_LIBS@ -lm/g' Makefile.in
  cd ..

  ./configure --prefix=/usr
  make
}

package() {
  cd ${srcdir}/gdmap-$pkgver

  make DESTDIR=${pkgdir} install
}