Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/build-support/pango-perl-nocheck/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'build-support/pango-perl-nocheck/PKGBUILD')
-rw-r--r--build-support/pango-perl-nocheck/PKGBUILD35
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;
+}