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

# source: james
TARBALL=ddd-$PKGVER.tar.gz
MD5SUM=c50396db7bac3862a6d2555b3b22c34e
SRC_URL=https://ftp.gnu.org/gnu/ddd/$TARBALL
BUNDLE=

SLACKREQ=''
SLACKDESC="ddd: ddd $PKGVER (GUI for gdb debugger)
ddd: 
ddd: GNU DDD is a graphical front-end for command-line debuggers such as 
ddd: GDB, DBX, WDB, Ladebug, JDB, XDB, the Perl debugger, the bash 
ddd: debugger bashdb, the GNU Make debugger remake, or the Python debugger 
ddd: pydb.
ddd: 
ddd: https://www.gnu.org/software/ddd/
ddd: 
ddd: 
ddd: 
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/ddd* &&

	tar -xf ../pkg/ddd*debian.tar.xz &&
	patch -Np1 -i debian/patches/003_data_path.diff &&
	patch -Np1 -i debian/patches/004_userinfo.diff &&
	patch -Np1 -i debian/patches/005_gcc44_fix.diff &&
	patch -Np1 -i debian/patches/006_unumlaut_fix.diff &&
	patch -Np1 -i debian/patches/machine_code_window_fix.diff &&
	patch -Np1 -i debian/patches/tinfo_support.diff &&
	patch -Np1 -i debian/patches/remove_broken_ICE_MOTIF_DIALOGS_OWN_SELECTION_LIST.diff
}

### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --with-userinfo=Fatdog64"
	pkg_build_autoconf && 
	pkg_build_slackdesc
}


