contrib/p5-locale-gettext/Pkgfile
2014-12-13 23:33:07 +11:00

33 lines
820 B
Plaintext

# Description: Locale::gettext - Interface to C library functions for internatialization.
# URL: http://search.cpan.org/dist/gettext/
# Maintainer: Danny Rawlins, crux at romster dot me
# Packager: bashy, ronny kornexl at online de
# Depends on:
name=p5-locale-gettext
version=1.05
release=3
source=(http://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/gettext-$version.tar.gz
compatibility-with-POSIX-module.patch)
build() {
cd gettext-$version
patch -p1 -i $SRC/compatibility-with-POSIX-module.patch
perl Makefile.PL
make OPTIMIZE="$CFLAGS"
make DESTDIR=$PKG install
# Remove perlcrap
find $PKG \
-name '.packlist' -delete -or \
-name '*.bs' -delete -or \
-name 'autosplit.ix' -delete -or \
-name 'perllocal.pod' -delete
# Remove empty directories
find $PKG -depth -empty -exec rm -rf {} \;
}