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

# source: james
TARBALL=cellwriter-$PKGVER.tar.gz
MD5SUM=826de84d6d9f00a9c25e892986287f58
SRC_URL=https://github.com/risujin/cellwriter/archive/$PKGVER.tar.gz
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: https://github.com/risujin/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 ../pkg/cellwriter-unneeded-shift.patch &&
	patch -Np1 -i ../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 &&

	# install our default profile
	install -dm755 /root/.cellwriter &&
	install -m644 /tmp/pkg/profile /root/.cellwriter
}
