contrib/p5-locale-gettext/Pkgfile

27 lines
707 B
Plaintext
Raw Normal View History

2007-02-17 03:19:35 +01:00
# Description: Locale::gettext - Interface to C library functions for internatialization.
2019-09-08 13:47:03 +02:00
# URL: https://metacpan.org/release/gettext
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
2007-02-17 03:19:35 +01:00
name=p5-locale-gettext
2016-03-08 12:49:43 +01:00
version=1.07
2019-09-08 13:47:03 +02:00
release=2
source=(https://cpan.metacpan.org/authors/id/P/PV/PVANDRY/gettext-$version.tar.gz)
2007-02-17 03:19:35 +01:00
build() {
2016-03-08 12:49:43 +01:00
cd Locale-gettext-$version
2019-09-08 13:47:03 +02:00
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
2007-02-17 03:19:35 +01:00
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 {} \;
}