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

# source: james
TARBALL=peasyscale_source-1.4.tar.gz
MD5SUM=6b625408eb0aea7b23dcc7d730182c43
SRC_URL=http://distro.ibiblio.org/fatdog/source/700/$TARBALL
BUNDLE=

SLACKREQ='gtk2' # 
SLACKDESC='peasyscale-cli: peasyscale-cli 1.4 (Simple image resizer)  
peasyscale-cli:  
/usr/bin/slackdesc: line 187: printf: -c: invalid option
printf: usage: printf [-v var] format [arguments]
peasyscale-cli: This is a simple image resizer. This package contains the 
peasyscale-cli: command line tool only, for GUI look for peasyscale package 
peasyscale-cli: (without -cli).  
peasyscale-cli: 
peasyscale-cli: 
peasyscale-cli: 
peasyscale-cli: 
peasyscale-cli: 
peasyscale-cli: http://murga-linux.com/puppy/viewtopic.php?p=617584 
'

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/peasyscale* &&
	
	gcc  -o peasyscale-cli peasyscale.c \
	$(pkg-config --libs gdk-pixbuf-2.0 gdk-2.0) $(pkg-config --cflags gdk-pixbuf-2.0 gdk-2.0) \
	-lm -fomit-frame-pointer &&
	
	cp peasyscale-cli /usr/bin &&
	ln -sfv peasyscale-cli /usr/bin/peasyscale.bin &&
	pkg_build_slackdesc
}
