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

# source: james
TARBALL=xpad-4.2.tar.bz2
MD5SUM=85583f8f68ad61ec282ea1332fe76480
SRC_URL=https://launchpad.net/xpad/trunk/4.2/+download/$TARBALL
BUNDLE=

SLACKREQ='gtk2' # 
SLACKDESC='xpad: xpad 4.2 (Sticky Note application)  
xpad:  
xpad: Xpad is a sticky note application for jotting down things to remember. 
xpad: This is the last version that works with GTK2.  
xpad: 
xpad: 
xpad: 
xpad: 
xpad: 
xpad: 
xpad: https://launchpad.net/xpad
'

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/xpad* &&
	patch -Np1 -i $CHROOT_DIR/tmp/pkg/xpad-crash-on-close.patch
}

### default pkg_package
### build
pkg_build() {
	pkg_build_autoconf &&
	pkg_build_slackdesc &&
	rm -f /usr/share/icons/hicolor/icon-theme.cache &&
	
	# make startup file
	mkdir -p /etc/xdg/Startup && cd /etc/xdg/Startup &&
	cat << "EOF" > xpad &&
#!/bin/dash
exec xpad -N
EOF
	chmod +x xpad
}
