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

# source: james
# we don't get source directly from risujin.org because it always
# gives the latest instead of specific versions.
#
TARBALL=cellwriter-$PKGVER.tar.gz
MD5SUM=16db87415c3c669e0489f9c4d795ec7d
SRC_URL=http://distro.ibiblio.org/fatdog/source/700/$TARBALL
BUNDLE=

SLACKREQ='gtk2' # 
SLACKDESC="cellwriter: cellwriter $PKGVER (Handwriting input)  
cellwriter:  
cellwriter: CellWriter is a grid-entry natural handwriting input panel. As you 
cellwriter: write characters into the cells, your writing is instantly 
cellwriter: recognized at the character level. When you press Enter on the 
cellwriter: panel, the input you entered is sent to the currently focused 
cellwriter: application as if typed on the keyboard.  
cellwriter: 
cellwriter: Patched with altgr patch from SFR.
cellwriter: 
cellwriter: http://risujin.org/cellwriter/
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	mkdir -p usr/share/pixmaps &&
	install -m644 $CHROOT_DIR/tmp/pkg/cellwriter-keyboard.png usr/share/pixmaps/keyboard.png &&	
	cd tmp/cellwriter* &&
	patch -Np1 -i $CHROOT_DIR/tmp/pkg/cellwriter-unneeded-shift.patch &&
	patch -Np1 -i $CHROOT_DIR/tmp/pkg/cellwriter-altgr.patch
}

### default pkg_package
### build
pkg_build() {
	pkg_build_autoconf &&
	pkg_build_slackdesc &&
	rm -f usr/share/icons/hicolor/icon-theme.cache
}
