1 # PKGBUILD generated by pacpan
2 #Modified by Jonathas Rodrigues
7 pkgdesc="Extremely light weight SQLite-specific ORM"
10 url="http://search.cpan.org/~adamk/ORLite"
13 depends=('perl-file-remove' 'perl>=5.10.1' 'perl-params-util' 'perl-dbd-sqlite' 'perl-dbi')
14 makedepends=('perl' 'perl-test-script')
17 provides=('orlite=1.51' 'ORLite=1.51' 'perl-orlite=1.51')
19 source=(http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/ORLite-1.51.tar.gz)
20 md5sums=('8be9e304f0a214017cba4f6273ec6cb1')
23 _expected_dir="${srcdir}/${_realname}-${pkgver}"
24 if [ -d "$_expected_dir" ]; then
27 _expected_dir="${srcdir}/$(bsdtar -t -f $(basename $source) | head -n1)"
28 if [ -d "$_expected_dir" ]; then
31 _makefile=$(find $srcdir -iname Makefile.PL)
32 if [ ! -z "$_makefile" ]; then
33 _expected_dir=$(dirname $_makefile)
34 if [ -d "$_expected_dir" ]; then
37 echo "
\e[1;31mERROR
\e[0m unable to detect source directory"
38 echo "
\e[1;34m-->
\e[0m this is often due to CPAN's lack of standard naming conventions"
39 echo "
\e[1;34m-->
\e[0m it may be possible to fix this by adjusting the build function in the PKGBUILD"
44 # install module in vendor directories.
45 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
47 make install DESTDIR=${pkgdir} || return 1
49 # remove perllocal.pod and .packlist
50 find ${pkgdir} -name perllocal.pod -delete
51 find ${pkgdir} -name .packlist -delete
54 # vim:set ts=2 sw=2 et: