#Maintainer: Dimitris Tzemos  <djemos~at~slackel~dot~gr>

pkgname=fbpanel
pkgver=7.0
pkgrel=3dj
source=("https://github.com/akozlins/fbpanel/archive/refs/heads/master.zip" "fbpanel-addon.tar.gz" "disable-scroll.patch")
url=https://github.com/akozlins/fbpanel
docs=('README' 'CHANGELOG' 'COPYING' 'CREDITS' 'NOTES')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"fbpanel (panel application)"
"fbpanel is a lightweight GTK2-based panel for UNIX desktop, which" 
"provides graphical information and feedback about desktop activity"
"and allows interaction with the window manager. It features a" 
"taskbar, pager, launchbar, show desktop, image viewer, clock, and" 
"system tray."
""
"https://github.com/akozlins/fbpanel"
)

build() {
	
cd $SRC/$pkgname-master
patch -p1 < $SRC/disable-scroll.patch || return 1

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
 
make || return 1
make install DESTDIR=$PKG || return 1

tar xvf $SRC/fbpanel-addon.tar.gz -C $PKG/usr/lib/fbpanel/ || return 1

chmod 755 $PKG/usr/lib/fbpanel/* || return 1

}
