#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=grsync
pkgver=1.1.1
pkgrel=1rl
source=(http://www.opbyte.it/release/grsync-$pkgver.tar.gz)
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://www.opbyte.it/grsync/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"grsync (rsync GUI)"
"Grsync is a GUI (Graphical User Interface) for rsync, the commandline"
"directory synchronization tool. It makes use of the GTK libraries"
"and is released under the GPL license."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --build=$arch-slackware-linux LIBS="-lm"
	make || return 1
	make install DESTDIR=$startdir/pkg

	sed -i "s/.png//" $startdir/pkg/usr/share/applications/grsync.desktop
	mkdir -p $startdir/pkg/usr/share/icons/hicolor/64x64/apps
	cp $startdir/pkg/usr/share/pixmaps/grsync.png $startdir/pkg/usr/share/icons/hicolor/64x64/apps/
}