summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSebastian 'Swift Geek' Grzywna2017-02-28 02:12:14 +0100
committerSebastian 'Swift Geek' Grzywna2017-02-28 02:12:14 +0100
commit09d548212c4bedc640be55b4cbb952342404cae2 (patch)
treed0b72630ce910a39f226a14493ae1cf8367d26ff /PKGBUILD
parent170c4c4d03c848365202da0d1c87bdd6fc1145d5 (diff)
downloadaur-perl-xml-sax-expatxs.tar.gz
Fix use with makepkg -e and -o options
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD18
1 files changed, 9 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2b644690a39..39f77620278 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,31 +16,31 @@ options=(!emptydirs)
install=
source=("http://search.cpan.org/CPAN/authors/id/P/PC/PCIMPRICH/XML-SAX-ExpatXS-${pkgver}.tar.gz")
md5sums=('3d69bb642ea275871a2f91a08a51cd8c')
+_src_dir='$srcdir/XML-SAX-ExpatXS-$pkgver'
prepare() {
- export _src_dir="$srcdir/XML-SAX-ExpatXS-$pkgver"
+ eval cd "$_src_dir"
+ sed -i -e "s|y/|n/|" ./Makefile.PL # fix from gentoo .ebuild
+}
+
+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 "$_src_dir"
- sed -i -e "s|y/|n/|" ./Makefile.PL # fix from gentoo .ebuild
-}
-
-build() {
- cd "$_src_dir"
+ eval cd "$_src_dir"
/usr/bin/perl Makefile.PL
make
}
check () {
- cd "$_src_dir"
+ eval cd "$_src_dir"
make test
}
package () {
- cd "$_src_dir"
+ eval cd "$_src_dir"
make install
# remove perllocal.pod and .packlist