# SliTaz package receipt for lxtaz-logout.

PACKAGE="lxtaz-logout"
VERSION="1.0"
CATEGORY="x-window"
SHORT_DESC="Central logout/reboot/shutdown dialog for SliTaz LXDE."
MAINTAINER="pankso@slitaz.org"
LICENSE="BSD"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://www.slitaz.org/"
WGET_URL="https://www.slitaz.org/sources/packages/l/$TARBALL"

DEPENDS="gtk+3"
BUILD_DEPENDS="gtk+3-dev pkg-config gettext-tools"

HOST_ARCH="i486 x86_64"

# Rules to configure and make the package.
compile_rules()
{
	cd $src/src
	make
	cd ../po
	make
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/bin $fs/usr/share/applications
	cp -a $src/src/lxtaz-logout			$fs/usr/bin
	cp -a $src/data/lxtaz-logout.desktop		$fs/usr/share/applications
	# Compiled translations (po/LINGUAS drives the language list)
	make -C $src/po install DESTDIR=$fs PREFIX=/usr
}
