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

# source: james / jake
TARBALL=galculator-$PKGVER.tar.gz
MD5SUM=179dbce433ca79f0662ec6a02b4ddb56
SRC_URL=https://github.com/galculator/galculator/archive/v2.1.4.tar.gz
BUNDLE=

SLACKREQ=gtk2
SLACKDESC="galculator: galculator $PKGVER (Calculator)
galculator: 
galculator: galculator is a GTK 2 / GTK 3 based calculator with ordinary 
galculator: notation/reverse polish notation (RPN), a formula entry mode, 
galculator: different number bases (DEC, HEX, OCT, BIN) and different units of 
galculator: angular measure (DEG, RAD, GRAD). It supports quad-precision floating 
galculator: point and 112-bit binary arithmetic.
galculator: 
galculator: http://galculator.mnim.org/index.html
galculator: 
galculator:
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/galculator* &&
	# fix category
	sed -i 's/Categories=.*/Categories=Calculator;/' galculator.desktop.in &&
	# reduce the size of result font
	sed -i 's/#define DEFAULT_RESULT_FONT.*/#define DEFAULT_RESULT_FONT			"Sans Bold 16"/' src/config_file.h &&
	autoreconf -fi &&
	CONFFLAGS="$CONFFLAGS --disable-gtk3 --disable-static" &&
	pkg_build_autoconf && pkg_build_slackdesc	
}


