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

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

SLACKREQ='expat libreadline'
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() {
    export CFLAGS="-Os"
	CONFFLAGS="$CONFFLAGS --with-system-readline"
	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	
}


