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

# source: BLFS 8.2
TARBALL=gdb-$PKGVER.tar.xz
MD5SUM=f46487561f9a16916a8102316f7fd105
SRC_URL=http://ftp.gnu.org/gnu/gdb/$TARBALL
BUNDLE=

SLACKREQ='expat libreadline' # doxygen build-time
SLACKDESC="gdb: gdb $PKGVER (GNU Debugger)  
gdb:  
gdb: GDB, the GNU Project debugger, allows you to see what is going on 
gdb: "inside" another program while it executes -- or what another program was 
gdb: doing at the moment it crashed. Note that GDB is most effective when 
gdb: tracing programs and libraries that were built with debugging symbols and 
gdb: not stripped.  
gdb: 
gdb: 
gdb: 
gdb:
"
SLACKSUG=python

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --with-system-readline --without-guile"
	MAKEINSTALLFLAGS="-C gdb"
	pkg_build_autoconf && pkg_build_slackdesc &&
	
	# docs
	make -C gdb/doc doxy &&
	install -d /usr/share/doc/gdb-$PKGVER &&
	rm -rf gdb/doc/doxy/xml &&
	cp -Rv gdb/doc/doxy /usr/share/doc/gdb-$PKGVER	
}


