1 # PKGBUILD generated by pacpan
2 pkgname=perl-text-unaccent
3 _realname=Text-Unaccent
6 pkgdesc="no description available"
8 license=('unknown: check http://search.cpan.org/src/LDACHARY/Text-Unaccent-1.08/README.txt')
9 url="http://search.cpan.org/~ldachary/Text-Unaccent"
13 #provides=('Text-Unaccent')
14 provides=('text-unaccent=1.08' 'Text::Unaccent=1.08' 'perl-text-unaccent=1.08')
16 source=(http://search.cpan.org/CPAN/authors/id/L/LD/LDACHARY/Text-Unaccent-1.08.tar.gz)
17 md5sums=('9ac9b28cbb66f4829a50d563ace79cb5')
20 _expected_dir="${srcdir}/${_realname}-${pkgver}"
21 if [ -d "$_expected_dir" ]; then
24 _expected_dir="${srcdir}/$(bsdtar -t -f $(basename $source) | head -n1)"
25 if [ -d "$_expected_dir" ]; then
28 _makefile=$(find $srcdir -iname Makefile.PL)
29 if [ ! -z "$_makefile" ]; then
30 _expected_dir=$(dirname $_makefile)
31 if [ -d "$_expected_dir" ]; then
34 echo "
\e[1;31mERROR
\e[0m unable to detect source directory"
35 echo "
\e[1;34m-->
\e[0m this is often due to CPAN's lack of standard naming conventions"
36 echo "
\e[1;34m-->
\e[0m it may be possible to fix this by adjusting the build function in the PKGBUILD"
41 # install module in vendor directories.
42 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
44 make install DESTDIR=${pkgdir} || return 1
46 # remove perllocal.pod and .packlist
47 find ${pkgdir} -name perllocal.pod -delete
48 find ${pkgdir} -name .packlist -delete
51 # vim:set ts=2 sw=2 et: