### this file is sourced not run
PKGVER=0.97.3debian1
PKGBUILD=1
PKGARCH=x86_64

# source: james with debian patches
TARBALL=dia_0.97.3.orig.tar.xz
MD5SUM=0e744a0f6a6c4cb6a089e4d955392c3c 
SRC_URL=http://ftp.de.debian.org/debian/pool/main/d/dia/$TARBALL
BUNDLE=

SLACKREQ='gtk2 libart' 
SLACKDESC='dia: dia 0.97.3debian1 (Diagram editor)  
dia:  
dia: Dia is an editor for diagrams, graphs, charts etc. There is support for 
dia: UML static structure diagrams (class diagrams), Entity-Relationship 
dia: diagrams, network diagrams and much more. Diagrams can be exported to 
dia: postscript and many other formats.  
dia: 
dia: 
dia: 
dia: 
dia:
'

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/dia* &&
	tar -xf $CHROOT_DIR/tmp/pkg/dia_0.97.3-1.debian.tar.xz &&
	for p in $(cat debian/patches/series); do
		patch -Np1 -i debian/patches/$p
	done
}

### default pkg_package
### build
pkg_build() {
	cd /tmp/dia*
	pkg_build_autoconf &&
	pkg_build_slackdesc
}


