#Packager: Dimitris Tzemos <dijemos(at)gmail.com>

pkgname=lxpanel
pkgver=0.11.1
pkgrel=1dj
source=("https://github.com/lxde/lxpanel/archive/refs/tags/0.11.1.tar.gz" "config" "panel" "lxpanel-fix-variable.patch")
docs=("DOCS")
url=https://sourceforge.net/projects/pcmanfm/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"libfm (PCManFM library)"
"LibFM provides file management functions built on top of Glib/GIO,"
"giving a convenient higher-level API."
)


build() {
	cd $SRC/lxpanel-$pkgver
	patch -p1 < $SRC/lxpanel-fix-variable.patch || return 1
	./autogen.sh || true

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --localstatedir=/var \
  --sysconfdir=/etc \
  --enable-man \
  --mandir=/usr/man \
  --program-prefix= \
  --program-suffix= \
  --with-plugins=all \
  --disable-silent-rules \
  --enable-gtk3 \
  --build=$arch-slackware-linux

	make -j $numjobs  || return 1
	make install DESTDIR=$PKG

	# use some sane defaults
	install -m 0644 $SRC/config \
	$PKG/etc/xdg/lxpanel/default/config
	install -m 0644 $SRC/panel \
	$PKG/etc/xdg/lxpanel/default/panels/panel
} 
