Date: Thursday, April 9, 2020 @ 00:50:21 Author: felixonmars Revision: 612865
archrelease: copy trunk to community-staging-x86_64 Added: perl-glib-object-introspection/repos/community-staging-x86_64/ perl-glib-object-introspection/repos/community-staging-x86_64/PKGBUILD (from rev 612864, perl-glib-object-introspection/trunk/PKGBUILD) ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Copied: perl-glib-object-introspection/repos/community-staging-x86_64/PKGBUILD (from rev 612864, perl-glib-object-introspection/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-04-09 00:50:21 UTC (rev 612865) @@ -0,0 +1,42 @@ +# Maintainer: Muflone http://www.muflone.com/contacts/english/ +# Contributor: Brian Bidulock <bidul...@openss7.org> +# Contributor: John D Jones III AKA jnbek <jnbek1972 -_AT_- g m a i l -_Dot_- com> + +pkgname=perl-glib-object-introspection +_perl_namespace=Glib +_perl_module=Object-Introspection +pkgver=0.047 +pkgrel=4 +pkgdesc="Dynamically create Perl language bindings" +arch=('x86_64') +url="https://metacpan.org/release/${_perl_namespace}-${_perl_module}" +license=('LGPL') +makedepends=('gobject-introspection' 'perl-extutils-depends' 'perl-extutils-pkgconfig' 'perl-cairo-gobject') +depends=('glib-perl' 'gobject-introspection-runtime') +source=("https://cpan.metacpan.org/authors/id/X/XA/XAOC/${_perl_namespace}-${_perl_module}-${pkgver}.tar.gz") +md5sums=(1fe79aa2eaada96f0b2bdacb6bac960d) +sha512sums=(3ec4306ad0ae3e5d21eb7b61bfaf7ed0d6e2cc9d107d0456a5221a2627ebb97e4e1654dc9077f561ef064184b3c758c90a9e05062d316cee421457a1d07038dd) +options=('!emptydirs') + +build() { + cd "${_perl_namespace}-${_perl_module}-${pkgver}" + unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps + perl Makefile.PL + make +} + +check() { + cd "${_perl_namespace}-${_perl_module}-${pkgver}" + unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 + make test +} + +package() { + cd "${_perl_namespace}-${_perl_module}-${pkgver}" + unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT + make pure_install INSTALLDIRS=vendor DESTDIR="${pkgdir}" + # Delete unuseful files + find "${pkgdir}" -name '.packlist' -delete +}