30 lines
908 B
Plaintext
30 lines
908 B
Plaintext
# Description: perl I/O on in-core objects like strings and arrays
|
|
# URL: http://search.cpan.org/~janpaz/TeX-Hyphen-0.140/
|
|
# Maintainer: Han Boetes <han@mijncomputer.nl>
|
|
# Packager: Han Boetes <han@mijncomputer.nl>
|
|
# Depends on: perl
|
|
|
|
name=p5-tex-hyphen
|
|
capsname=TeX-Hyphen
|
|
version=0.140
|
|
release=2
|
|
source="http://www.cpan.org/modules/by-module/${capsname%%-*}/$capsname-$version.tar.gz"
|
|
|
|
build() {
|
|
cd $capsname-$version
|
|
perl Makefile.PL
|
|
make OPTIMIZE="$CFLAGS"
|
|
make install DESTDIR=$PKG
|
|
sed -i \
|
|
"s|'hyphen.tex')|'/usr/share/texmf/tex/generic/hyphen/hyphen.tex')|" \
|
|
$PKG/usr/lib/perl?/site_perl/*/TeX/Hyphen.pm
|
|
# Remove perlcrap
|
|
find $PKG \
|
|
-name .packlist -or \
|
|
-name '*.bs' -or \
|
|
-name autosplit.ix -or \
|
|
-name perllocal.pod | xargs rm
|
|
# Remove empty directories
|
|
find $PKG -depth -empty -exec rm -rf {} \;
|
|
}
|