diff options
author | int | 2017-10-18 11:17:55 +0200 |
---|---|---|
committer | int | 2017-10-18 11:17:55 +0200 |
commit | 9d072045904f1f4b6dc69e64a2279f4e45d8da56 (patch) | |
tree | 413887e22ee79ff185601f73581d6438bbedfe7a | |
download | aur-9d072045904f1f4b6dc69e64a2279f4e45d8da56.tar.gz |
Perl/CPAN Module SMS::Send
This is one of the (optional) perl-dependencies of Koha: https://koha-community.org/
Start "./koha_perl_deps.pl -a" after downloading and unpacking
the koha-tarball for a list of all packages (required and optional).
Fixed "Can't locate inc/Module/Install.pm in @INC" compile-error,
see https://rt.cpan.org/Public/Bug/Display.html?id=120825 for details.
Different Perl/CPAN-module, but same problem.
This is also with the cpan2aur-bugfix,
see https://rt.cpan.org/Public/Bug/Display.html?id=123153 for details.
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 65 |
2 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..42b915c9d408 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = perl-sms-send + pkgdesc = Perl/CPAN Module SMS::Send: Driver-based API for sending SMS messages + pkgver = 1.06 + pkgrel = 1 + url = https://metacpan.org/release/SMS-Send + arch = any + license = PerlArtistic + license = GPL + depends = perl-class-adapter>=1.05 + depends = perl-module-pluggable>=3.7 + depends = perl-params-util>=1.00 + depends = perl>=5.6.0 + options = !emptydirs + source = http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/SMS-Send-1.06.tar.gz + md5sums = bf8c79fb145883c3cd475e5687201151 + sha512sums = 7e4fd12d9a8fd1f9a2b77ea441c146becd03b4cacd84d167ded3d569889c797ef8def3293b8996786a6d577274c12c4c8d8a2724a2365012c0f35966d85b313d + +pkgname = perl-sms-send + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..86d2f83160c3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,65 @@ +# Maintainer : int <int [ate] arcor [dot] de> +# Generator : CPANPLUS::Dist::Arch 1.32 + +pkgname='perl-sms-send' +pkgver='1.06' +pkgrel='1' +pkgdesc="Perl/CPAN Module SMS::Send: Driver-based API for sending SMS messages" +arch=('any') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl-class-adapter>=1.05' 'perl-module-pluggable>=3.7' 'perl-params-util>=1.00' 'perl>=5.6.0') +makedepends=() +url='https://metacpan.org/release/SMS-Send' +source=("http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/SMS-Send-$pkgver.tar.gz") +md5sums=('bf8c79fb145883c3cd475e5687201151') +sha512sums=('7e4fd12d9a8fd1f9a2b77ea441c146becd03b4cacd84d167ded3d569889c797ef8def3293b8996786a6d577274c12c4c8d8a2724a2365012c0f35966d85b313d') +_distdir="SMS-Send-$pkgver" + +prepare() { + cd "$srcdir/$_distdir" + + # Patch Makefile.PL + # by adding "use lib '.';" before "use inc::Module::Install". + # Maybe a real patch-file would be better. + # + # This fixes the "Can't locate inc/Module/Install.pm in @INC"-error, + # which isn't upstream yet, when doing "make". + # See https://rt.cpan.org/Public/Bug/Display.html?id=120825 + # for details on this problem (but for a different Perl/CPAN-module). + # + sed -i "s/use inc::Module::Install/use lib '.';\nuse inc::Module::Install/" Makefile.PL +} + +build() { + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ + MODULEBUILDRC=/dev/null + + cd "$srcdir/$_distdir" + /usr/bin/perl Makefile.PL + make + ) +} + +check() { + cd "$srcdir/$_distdir" + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + make test + ) +} + +package() { + cd "$srcdir/$_distdir" + make install + + find "$pkgdir" "(" -name .packlist -o -name perllocal.pod ")" -delete +} + +# Local Variables: +# mode: shell-script +# sh-basic-offset: 2 +# End: +# vim:set ts=2 sw=2 et: |