summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSebastian 'Swift Geek' Grzywna2017-02-28 02:33:28 +0100
committerSebastian 'Swift Geek' Grzywna2017-02-28 02:33:28 +0100
commitee1c03a10cbb8ac24c966696d4332271bb11d405 (patch)
treee32115faa0099afb48c69b56b6b3f0cd3e022fbd /PKGBUILD
parentc2598f36c4420c6a82709fc472d2855d48c3c15f (diff)
downloadaur-perl-opengl.tar.gz
Fix use with makepkg -e and -o options
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD6
1 files changed, 1 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6cd446428c3a..9767d6e66f0d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,16 +15,12 @@ source=("https://cpan.metacpan.org/authors/id/C/CH/CHM/OpenGL-${pkgver}.tar.gz")
md5sums=('8b651500162e9b999347a06dc0664ab6')
_distdir="OpenGL-$pkgver"
-prepare() {
+build() {
# 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
- #cd "$srcdir/$_distdir"
-}
-
-build() {
cd "$srcdir/$_distdir"
if [ -z "$DISPLAY" ]; then
warning "Empty \$DISPLAY - falling back to xvfb-run (xorg-server-xvfb)"