mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
Added new app: Graphviz, version 2.26.3
This commit is contained in:
parent
78efef6130
commit
1e4c29d4d9
43
graphviz/PKGBUILD
Normal file
43
graphviz/PKGBUILD
Normal file
@ -0,0 +1,43 @@
|
||||
#
|
||||
# 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.26.3
|
||||
pkgrel=1
|
||||
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)
|
||||
install=graphviz.install
|
||||
md5sums=('6f45946fa622770c45609778c0a982ee')
|
||||
|
||||
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
|
||||
|
||||
#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
|
||||
}
|
17
graphviz/graphviz.install
Normal file
17
graphviz/graphviz.install
Normal file
@ -0,0 +1,17 @@
|
||||
# arg 1: the new package version
|
||||
post_install() {
|
||||
# Create plugin config /usr/lib/graphviz/config6
|
||||
rm -f usr/lib/graphviz/config{,6}
|
||||
usr/bin/dot -c
|
||||
}
|
||||
|
||||
# arg 1: the new package version
|
||||
# arg 2: the old package version
|
||||
post_upgrade() {
|
||||
post_install $1
|
||||
}
|
||||
|
||||
# arg 1: the old package version
|
||||
pre_remove() {
|
||||
rm -f usr/lib/graphviz/config{,6}
|
||||
}
|
Loading…
Reference in New Issue
Block a user