1 # PKGBUILD generated by pacpan
2 pkgname=perl-sql-abstract-limit
3 _realname=SQL-Abstract-Limit
6 pkgdesc="no description available"
8 license=('unknown: check http://search.cpan.org/src/DAVEBAIRD/SQL-Abstract-Limit-0.141/README.txt')
9 url="http://search.cpan.org/~davebaird/SQL-Abstract-Limit"
12 depends=('perl' 'perl-test-exception' 'perl-test-deep' 'perl-dbi' 'perl-sql-abstract')
14 #provides=('SQL-Abstract-Limit')
15 provides=('sql-abstract-limit=0.141' 'SQL::Abstract::Limit=0.141' 'perl-sql-abstract-limit=0.141')
17 source=(http://search.cpan.org/CPAN/authors/id/D/DA/DAVEBAIRD/SQL-Abstract-Limit-0.141.tar.gz)
18 md5sums=('d8dde39b1d7910ddf5457108c02be552')
21 _expected_dir="${srcdir}/${_realname}-${pkgver}"
22 if [ -d "$_expected_dir" ]; then
25 _expected_dir="${srcdir}/$(bsdtar -t -f $(basename $source) | head -n1)"
26 if [ -d "$_expected_dir" ]; then
29 _makefile=$(find $srcdir -iname Makefile.PL)
30 if [ ! -z "$_makefile" ]; then
31 _expected_dir=$(dirname $_makefile)
32 if [ -d "$_expected_dir" ]; then
35 echo "
\e[1;31mERROR
\e[0m unable to detect source directory"
36 echo "
\e[1;34m-->
\e[0m this is often due to CPAN's lack of standard naming conventions"
37 echo "
\e[1;34m-->
\e[0m it may be possible to fix this by adjusting the build function in the PKGBUILD"
42 # install module in vendor directories.
43 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
45 make install DESTDIR=${pkgdir} || return 1
47 # remove perllocal.pod and .packlist
48 find ${pkgdir} -name perllocal.pod -delete
49 find ${pkgdir} -name .packlist -delete