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

# source: james
TARBALL=xfe-$PKGVER.tar.gz
MD5SUM=cd4978240decbf0449f07c5061b9c4b8
SRC_URL=http://downloads.sourceforge.net/xfe/$TARBALL
BUNDLE=

SLACKREQ='fox-toolkit'
SLACKDESC="xfe: xfe $PKGVER (File Manager)  
xfe:  
xfe: X File Explorer (Xfe) is an MS-Explorer or Commander like file manager 
xfe: for X. Xfe is small and very fast, and depends only on fox-toolkit.
xfe: 
xfe: 
xfe: 
xfe: 
xfe: 
xfe: 
xfe: http://roland65.free.fr/xfe/ 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --enable-minimalflags"
	cd /tmp/xfe*
	
	# patch for newer freetype2
	sed -i -e 's|freetype/config/ftheader.h|config/ftheader.h|' configure.ac &&
	
	# disable root_warn by default
	sed -i -e 's|"OPTIONS","root_warn",TRUE|"OPTIONS","root_warn",FALSE|' \
		src/Preferences.cpp src/XFileExplorer.cpp &&
	
	autoreconf -fi &&
	pkg_build_autoconf &&
	pkg_build_slackdesc
}


