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

# source: james
TARBALL=jwm-$PKGVER.tar.xz
MD5SUM=d798a7641aa45c10ae3b821c85494711
SRC_URL=https://github.com/joewing/jwm/releases/download/v$PKGVER/$TARBALL
BUNDLE=

SLACKREQ='libpng libjpeg-turbo libX11 cairo libfribidi librsvg' 
SLACKDESC="jwm: jwm $PKGVER (X11 Window manager)  
jwm:  
jwm: JWM is a light-weight window manager for the X11 Window System. JWM is 
jwm: written in C and uses only Xlib at a minimum. Because of its small 
jwm: footprint, JWM makes a good window manager for older computers and less 
jwm: powerful systems, such as the Raspberry Pi, though it is perfectly 
jwm: capable of running on modern systems. JWM is included in small Linux 
jwm: distributions such as Puppy Linux and Damn Small Linux, and it is 
jwm: available as a separate package in many other distributions.  
jwm: 
jwm: http://joewing.net/projects/jwm/
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### buikd
pkg_build() {
	##CONFFLAGS="$CONFFLAGS --disable-cairo --disable-fribidi --disable-rsvg"
	cd /tmp/jwm* &&
	./autogen.sh &&
	pkg_build_autoconf &&
	pkg_build_slackdesc &&

	# install xdg menu generator
	install -m755 /tmp/pkg/jwm_menu_create /usr/bin &&
	install -dm755 /root/.jwm &&
	install -m644 /tmp/pkg/JWMRC /root/.jwm &&
	install -m644 /tmp/pkg/jwmrc-tray /root/.jwmrc-tray &&
	
	# install icon and xsession desktop
	install -dm755 /usr/share/pixmaps &&
	install -m644 /tmp/pkg/jwm.png /usr/share/pixmaps &&
	mkdir -p /usr/share/xsessions &&
	install -m644 /tmp/pkg/2-jwm.desktop /usr/share/xsessions
}
    
