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

pkgname=grsync
pkgver=1.2.6
pkgrel=1gv
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 \
		--disable-unity \
		--build=$arch-slackware-linux
	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/128x128/apps
	mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps
	(
	 cd $startdir/pkg/usr/share/icons/hicolor/128x128/apps/
	 ln -sf ../../../../pixmaps/grsync.png grsync.png
	)
	convert -resize 48 $startdir/pkg/usr/share/pixmaps/grsync.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/grsync.png || exit 1
}