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

# source: james
SLACKREQ=gtk2
SLACKDESC='sit: sit 2013.01 (Simple icon tray)  
sit:  
sit: A simple utility for scripts to display multiple status icons on icon 
sit: tray; and interact with clicks. 
sit: 
sit: This package also contains getcurpos, to get X cursor position from
sit: shell.
sit: 
sit: http://www.murga-linux.com/puppy/viewtopic.php?p=679944#679944
sit: 
sit:
'

### default pkg_download
### prepare
pkg_prepare() {
	: no tarball - all source files in this recipe
}

### default pkg_package
### build
pkg_build() {
	cd /tmp/pkg &&
	
	gcc $(pkg-config gtk+-x11-2.0 --cflags) \
	-DGTK_NO_CHECK_CASTS -DG_DISABLE_CAST_CHECKS \
	-Wall -Wno-char-subscripts -Os -fmerge-all-constants \
	-Wl,-O2,--gc-sections,--as-needed,--sort-common,-s \
	sit.c -o sit -lgtk-x11-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 &&
	strip --strip-all -R .note -R .comment sit &&
	cp sit /usr/bin &&
	gcc -o /usr/bin/getcurpos getcurpos.c -lX11 &&
	strip --strip-all -R .note -R .comment /usr/bin/getcurpos &&

	pkg_build_slackdesc
}
 

