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

# source: james
TARBALL=mtcelledit-$PKGVER.tar.xz
MD5SUM=5a71773059a3f405f58aa22a5a28988e
SRC_URL=http://downloads.sourceforge.net/project/mtcelledit/mtCellEdit/$PKGVER/$TARBALL
BUNDLE=

SLACKREQ='gtk2' # 
SLACKDESC="mtcelledit: mtcelledit $PKGVER (Simple utilitarian spreadsheet)
mtcelledit: 
mtcelledit: mtcelledit is the spreadsheet from Mark Tyler, the original author of 
mtcelledit: mtpaint. In his words: mtCellEdit is a lightweight spreadsheet 
mtcelledit: program that I created from scratch. It is a small, no frills program 
mtcelledit: which is designed to handle simple day to day spreadsheet tasks. I 
mtcelledit: have put the most important facilities I want into a small customized 
mtcelledit: program which means I can avoid the problems of larger programs such 
mtcelledit: as slow operating speeds and overcomplicated user interfaces.
mtcelledit: 
mtcelledit: http://mtcelledit.sourceforge.net/
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/mtcell*/pkg
	
	# build install
	sed -i -e 's|\[ "$(whoami)" = "root" \]|false|' _build_global.txt &&
	sed -i -e 's|sudo||' build_install.sh &&
	yes | ./build_install.sh --conf "--libdir=/usr/$LIBDIR" &&
	
	# sample data
	install -m644 ../data/* /usr/share/doc/mtcelledit &&
	
	# cleanup
	rm -r /var/cache/fontconfig &&
	pkg_build_slackdesc
}
