Date: Wednesday, August 1, 2018 @ 12:24:10 Author: foutrelis Revision: 366762
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 366761, 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 366761, perl-glib-object-introspection/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-08-01 12:24:10 UTC (rev 366762) @@ -0,0 +1,42 @@ +# $Id$ +# 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.044 +pkgrel=2 +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://www.cpan.org/modules/by-module/${_perl_namespace}/${_perl_namespace}-${_perl_module}-${pkgver}.tar.gz") +sha256sums=('093c47141db683bf8dcbf1c3e7b2ece2b2b5488739197b8b623f50838eb7e734') +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 +}