diff options
author | Erich Eckner <git@eckner.net> | 2017-07-04 22:07:52 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-07-04 22:07:52 +0200 |
commit | 4c18d81b9854f7352ff0a40da74dc62679aade18 (patch) | |
tree | fd1ff766e0dd49a6aa6048d13009f1465f39bb65 | |
parent | 4116baf99321cbdbe8e1b6d65bc42e5b010d7426 (diff) | |
download | packages-4c18d81b9854f7352ff0a40da74dc62679aade18.tar.xz |
pango-perl-nocheck new in build-support
-rw-r--r-- | build-support/pango-perl-nocheck/PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/build-support/pango-perl-nocheck/PKGBUILD b/build-support/pango-perl-nocheck/PKGBUILD new file mode 100644 index 00000000..19bee6f6 --- /dev/null +++ b/build-support/pango-perl-nocheck/PKGBUILD @@ -0,0 +1,35 @@ +# $Id$ +# Maintainer: Jan de Groot <jgc@archlinux.org> + +pkgname=pango-perl-nocheck +pkgver=1.227 +pkgrel=4 +pkgdesc="Perl bindings for Pango -- without check()" +arch=(i686 x86_64) +license=('LGPL') +url="http://gtk2-perl.sourceforge.net/" +makedepends=('perl-extutils-pkgconfig' 'perl-extutils-depends') +depends=('pango' 'glib-perl' 'cairo-perl') +provides=('pango-perl') +options=('!emptydirs') +source=(http://downloads.sourceforge.net/sourceforge/gtk2-perl/Pango-${pkgver}.tar.gz) +md5sums=('cc5d7ca7780adcc5cee7cc41f2fc0440') + +build() { + cd Pango-$pkgver + export PERL_USE_UNSAFE_INC=1 + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +package() { + cd Pango-$pkgver + make install DESTDIR="${pkgdir}" +# template start; name=perl-binary-module-dependency; version=1; +if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then + _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);') + _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);') + depends+=("perl>=$_perlver_min" "perl<$_perlver_max") +fi +# template end; +} |