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

# source: james/kirk
TARBALL=lxpanel-0.3.8.1p5.tar.xz
MD5SUM=07c894fee0d9e7bf172aa72dcd908276
SRC_URL=http://distro.ibiblio.org/fatdog/source/700/$TARBALL
BUNDLE=

SLACKREQ='gtk2'
SLACKDESC='lxpanel: lxpanel 0.3.8.1p5 (Desktop panel)  
lxpanel:  
lxpanel: LXPanel is the standard panel of LXDE. The desktop panel can generate 
lxpanel: a menu for installed applications automatically from *.desktop files. 
lxpanel: It can be configured from a GUI preferences dialog, so there is no 
lxpanel: need to edit config files. The component provides a "Run" dialog with 
lxpanel: autocompletion.  
lxpanel: 
lxpanel: 
lxpanel: 
lxpanel:
'

### default pkg_download
### default pkg_prepare
### replace the default resource with fatdog's one
pkg_package() {
	rm -rf usr/share/lxpanel
	tar -xf $CHROOT_DIR/tmp/pkg/lxpanel-0.3.8.1-profiles.tar.bz2 -C usr/share
}

### build
pkg_build() {
	#return 1
	cd /tmp/lxpanel*
	sed -i -e '/gtypes.h/d; /gmacros.h/ s|glib/gmacros.h|glib.h|' src/plugins/netstatus/netstatus-sysdeps.h
	CONFFLAGS="$CONFFLAGS \
	--with-plugins=netstatus,volumealsa,cpu,deskno,batt,kbled,xkb"
	pkg_build_autoconf &&
	pkg_build_slackdesc
}


