# Tanım: Hafif bir GTK2 tabanlı sistem çekmecesi
# URL: http://home.gna.org/fvwm-crystal/
# Paketçi: milisarge@gmail.com
# Gerekler: xorg-libxmu gtk2
# Grup: masaüstü

isim=trayer
surum=1.0
devir=1
kaynak=(http://download.gna.org/fvwm-crystal/trayer/${surum}/${isim}-${surum}.tar.gz
		trayer.diff manpage.diff )

derle() {
	cd $isim-$surum
	patch -p0 -i ../trayer.diff
	patch -p1 -i ../manpage.diff
	sed -i 's/$(LIBS) $(OBJ) $(SYSTRAYOBJ)/$(OBJ) $(SYSTRAYOBJ) $(LIBS) -lX11/' Makefile
	make CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
	make PREFIX="$PKG/usr" install
	install -D -m644 trayer.1 "$PKG/usr/share/man/man1/trayer.1"
	install -D -m644 COPYING "$PKG/usr/share/licenses/$PKG/LICENSE"
}