1 # PKGBUILD generated by pacpan
2 pkgname=perl-memcached-libmemcached
3 _realname=Memcached-libmemcached
6 pkgdesc="Thin fast full interface to the libmemcached client API"
9 url="http://search.cpan.org/~timb/Memcached-libmemcached"
14 #provides=('Memcached-libmemcached')
15 provides=('memcached-libmemcached=0.2101' 'Memcached::libmemcached::memcached_servers=undef' 'perl-memcached-libmemcached-memcached_servers=undef' 'Memcached::libmemcached::memcached_set=undef' 'perl-memcached-libmemcached-memcached_set=undef' 'Memcached::libmemcached::memcached_flush=undef' 'perl-memcached-libmemcached-memcached_flush=undef' 'Memcached::libmemcached::memcached_version=undef' 'perl-memcached-libmemcached-memcached_version=undef' 'Memcached::libmemcached::memcached_get=undef' 'perl-memcached-libmemcached-memcached_get=undef' 'Memcached::libmemcached=0.2101' 'perl-memcached-libmemcached=0.2101' 'Memcached::libmemcached::memcached_callback=undef' 'perl-memcached-libmemcached-memcached_callback=undef' 'Memcached::libmemcached::memcached_server_st=undef' 'perl-memcached-libmemcached-memcached_server_st=undef' 'Memcached::libmemcached::memcached_stats=undef' 'perl-memcached-libmemcached-memcached_stats=undef' 'Memcached::libmemcached::memcached_auto=undef' 'perl-memcached-libmemcached-memcached_auto=undef' 'Memcached::libmemcached::API=undef' 'perl-memcached-libmemcached-api=undef' 'Memcached::libmemcached::memcached_verbosity=undef' 'perl-memcached-libmemcached-memcached_verbosity=undef' 'Memcached::libmemcached::memcached_create=undef' 'perl-memcached-libmemcached-memcached_create=undef' 'Memcached::libmemcached::memcached_quit=undef' 'perl-memcached-libmemcached-memcached_quit=undef' 'Memcached::libmemcached::memcached_behavior=undef' 'perl-memcached-libmemcached-memcached_behavior=undef' 'Memcached::libmemcached::memcached_delete=undef' 'perl-memcached-libmemcached-memcached_delete=undef' 'Memcached::libmemcached::memcached_strerror=undef' 'perl-memcached-libmemcached-memcached_strerror=undef')
17 source=(http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/Memcached-libmemcached-0.2101.tar.gz)
18 md5sums=('9d588d1119d2bfd0f33768bccc263198')
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