summaryrefslogtreecommitdiff
path: root/perl-opengl
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-04-08 12:50:59 +0200
committerErich Eckner <git@eckner.net>2016-04-11 11:29:19 +0200
commit238a18b072a24bc9973c0a23bac8c1f98824db96 (patch)
treef4ac729d3ef0f23a4c8f1a4cbad2cd1484578ccb /perl-opengl
parentb3aa8c16579980b24185783931c620a86b8d14c6 (diff)
downloadarchlinuxewe.git.save-238a18b072a24bc9973c0a23bac8c1f98824db96.tar.xz
perl-opengl neu
Diffstat (limited to 'perl-opengl')
-rw-r--r--perl-opengl/.gitignore1
-rw-r--r--perl-opengl/PKGBUILD60
2 files changed, 61 insertions, 0 deletions
diff --git a/perl-opengl/.gitignore b/perl-opengl/.gitignore
new file mode 100644
index 00000000..a5711fbe
--- /dev/null
+++ b/perl-opengl/.gitignore
@@ -0,0 +1 @@
+OpenGL-0.6704-Delete-functions-removed-from-Mesa.patch
diff --git a/perl-opengl/PKGBUILD b/perl-opengl/PKGBUILD
new file mode 100644
index 00000000..9e5e0516
--- /dev/null
+++ b/perl-opengl/PKGBUILD
@@ -0,0 +1,60 @@
+# Contributor: John D Jones III <j[nospace]n[nospace]b[nospace]e[nospace]k[nospace]1972 -_AT_- the domain name google offers a mail service at ending in dot com>
+# Generator : CPANPLUS::Dist::Arch 1.27
+
+pkgname='perl-opengl'
+pkgver='0.6704'
+pkgrel='2'
+pkgdesc="Interface to OpenGL drawing/imaging library"
+arch=('i686' 'x86_64')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=('perl' 'freeglut>=2.8.1' 'glu>=9.0.0')
+[ -z "$DISPLAY" ] && makedepends+=('xorg-server-xvfb')
+url='https://metacpan.org/release/OpenGL/'
+source=("https://cpan.metacpan.org/authors/id/C/CH/CHM/OpenGL-${pkgver}.tar.gz" \
+ 'OpenGL-0.6704-Delete-functions-removed-from-Mesa.patch::http://pkgs.fedoraproject.org/cgit/perl-OpenGL.git/plain/OpenGL-0.6704-Delete-functions-removed-from-Mesa.patch?id=7498635332872268a0d4519723b44725e9a496dc')
+sha512sums=('3a2c9970802242ebae58256cd80dc81ac04a2af974105d3fbdf4dfcf1aa64a769b1ffcb5b0156eceb6bf7aed6eb6b2eb9332ec9f4724b0a1bc61d15f0de99d09'
+ '8c96d5766ab36b63dab607427785c6ed74834a6172896ef3e17e9bdd698ecc66dea5efb9358289ce382fa453c13945e4804631f30f392fcdbafb80a0eb1edbd5')
+_distdir="OpenGL-$pkgver"
+
+prepare() {
+ # Setting these env variables overwrites any command-line-options we don't want...
+ export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
+ PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
+ PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
+ MODULEBUILDRC=/dev/null
+ # Patch for newer mesa
+ cd "$srcdir/$_distdir"
+ patch -p1 < "$srcdir"'/OpenGL-0.6704-Delete-functions-removed-from-Mesa.patch'
+}
+
+build() {
+ cd "$srcdir/$_distdir"
+ if [ -z "$DISPLAY" ]; then
+ warning "Empty \$DISPLAY - falling back to xvfb-run (xorg-server-xvfb)"
+ xvfb-run -a -s "+extension GLX -screen 0 1280x1024x24" /usr/bin/perl Makefile.PL
+ else
+ /usr/bin/perl Makefile.PL
+ fi
+ make
+
+}
+
+check() {
+ cd "$srcdir/$_distdir"
+ echo "" > test.pl # Disable random X11 windows
+ if [ -z "$DISPLAY" ]; then
+ warning "Empty \$DISPLAY - falling back to xvfb-run (xorg-server-xvfb)"
+ xvfb-run -a -s "+extension GLX -screen 0 1280x1024x24" make test
+ else
+ make test
+ fi
+}
+
+package() {
+ cd "$srcdir/$_distdir"
+ make install
+
+ find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+}
+