desktop/graphviz/PKGBUILD
2011-05-11 16:51:19 +00:00

46 lines
1.4 KiB
Bash

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=graphviz
pkgver=2.28.0
pkgrel=2
pkgdesc="Creates acircular graph images"
arch=('i686' 'x86_64')
license=('CPL')
depends=('gd>=2.0.35' 'librsvg>=2.22.3' 'libxaw>=1.0.5' 'ghostscript>=9.00')
url="http://www.graphviz.org/"
options=('!libtool')
source=(${url}/pub/${pkgname}/stable/SOURCES/${pkgname}-${pkgver}.tar.gz
'LICENSE')
install=graphviz.install
sha1sums=('4725d88a13e071ee22e632de551d4a55ca08ee7d'
'5a83febc0974e17d6b2356a4b1be9a834b715378')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr --without-gnomeui --docdir=/usr/share/doc/gvkp \
--disable-tcl --disable-sharp --disable-ruby --disable-python \
--disable-lua --disable-guile --disable-perl || return 1
#--bindir=/bindir --libdir=/libdir --includedir=/includedir --mandir=/mandir \
#--infodir=/infodir \
#--docdir=/docdir --htmldir=/htmldir --dvidir=/dvidir \
#--pdfdir=/pdfdir --psdir=/psdir
make || return 1
make DESTDIR="${pkgdir}" install || return 1
install -Dm644 ../LICENSE "${pkgdir}"/usr/share/licenses/graphviz/LICENSE
#Fix a wrong file location for x86_64
rm -rf ${pkgdir}/usr/lib64
# Fix non-fhs doc files.
cd ${pkgdir}/usr/share
mkdir doc
mv graphviz/doc doc/graphviz
}