#!/bin/sh
#
# Copyright 2010 Tiago Salvador Souza
# Available under the terms of the GNU GPL.
#

NAME="perl-gettext"
VERSION="1.05"
REVISION="1"

PKG_SOURCEURL='http://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/gettext-$VERSION.tar.gz'

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

# This makes sure our 32bit builds get the right ARCH tag.  The main reason
# for doing this is to avoid a naming collision with the x86-64 builds.
if [ "${PKG_ARCH%86}" != "$PKG_ARCH" ]; then
  PKG_ARCH=i486
fi

cflags
cxxflags
prepare
analyzesource
loggedcommand configure "cd $PKG_SRCROOT ; perl Makefile.PL"
make
makeinstall
tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
