#!/bin/sh
#
# Copyright 2004, 2007-2008 Dagmar d'Surreal <rivyqntzne@tznvy.pbz>
# Copyright 2006 Scott Harmon
# Available under the terms of the GNU GPL.
#

NAME="libxklavier"
VERSION="4.0"
REVISION="2"

PKG_SOURCEURL='http://ftp.gnome.org/pub/GNOME/sources/$NAME/$VERSION/$NAME-$VERSION.tar.bz2'
PKG_PATCH[0]='libxklavier-4.0-pkgconfig-makefile-fix.patch'

. $DLG_ROOT/config
. $DLG_ROOT/SCRIPTS/dropline-functions.sh

cflags
cxxflags
prepare

applypatch 0 1

analyzesource
configure
make
makeinstall install-strip

# Lets not break Slack's xfce4-settings-helper
cd $PKG_STAGEROOT$DLG_LIBDIR
ln -sf libxklavier.so libxklavier.so.12
cd -

tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
