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

# source: james
TARBALL=dosbox-0.74.tar.gz
MD5SUM=b9b240fa87104421962d14eee71351e8
SRC_URL=http://downloads.sourceforge.net/dosbox/$TARBALL
BUNDLE=

SLACKREQ='libSDL libpng'
SLACKDESC='dosbox: dosbox 0.74debian3 (DOS emulator)  
dosbox:  
dosbox: DOSBox emulates an Intel x86 PC, complete with sound, graphics, mouse, 
dosbox: joystick, modem, etc., necessary for running many old MS-DOS games 
dosbox: that simply cannot be run on modern PCs and operating systems, such as 
dosbox: Microsoft Windows XP, Windows Vista, Linux and FreeBSD. However, it is 
dosbox: not restricted to running only games. In theory, any MS-DOS or PC-DOS 
dosbox: (referred to commonly as DOS) application should run in DOSBox.  
dosbox: 
dosbox: 
dosbox: 
'

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	
	mkdir -p usr/share/pixmaps &&
	cp $CHROOT_DIR/tmp/pkg/dosbox16.png usr/share/pixmaps &&
	
	cd tmp/dosbox*
	tar -xf $CHROOT_DIR/tmp/pkg/dosbox_0.74-3.debian.tar.gz &&
	for p in $(cat debian/patches/series); do
		patch -Np1 -i debian/patches/$p
	done
}

### default pkg_package
### build
pkg_build() {
	LDFLAGS="$LDFLAGS -Wl,--as-needed"
	pkg_build_autoconf &&
	pkg_build_slackdesc &&
	mkdir -p /usr/share/applications &&
	install -m644 /tmp/pkg/dosbox.desktop /usr/share/applications
}


