fix: add INSTALLDIRS option to xml-parser

This commit is contained in:
ngn 2024-08-19 21:33:23 +03:00
parent c701f2d170
commit 3eba6ae1ec
2 changed files with 10 additions and 6 deletions

View File

@ -1,2 +1,6 @@
# 2.47m1
Use INSTALLDIRS=vendor option while running the make script to make sure the
installation is done correctly
# 2.47
First version

View File

@ -1,10 +1,10 @@
# general info
NAME="xml-parser"
DESC=" Perl module for parsing XML documents"
VERSION="2.47"
VERSION="2.47m1"
# required files
FILES=("https://search.cpan.org/CPAN/authors/id/T/TO/TODDR/XML-Parser-${VERSION}.tar.gz")
FILES=("https://search.cpan.org/CPAN/authors/id/T/TO/TODDR/XML-Parser-${VERSION%m*}.tar.gz")
HASHES=("3f9de53341bc85b87c88ad31e04b13f1f95516eec0d7e5fd1c1a3b3e66a91ca3d4de7c649978599219a4d4372f6218764ab5e1805b7155b5ca200006e1b0908f")
# install and build depends
@ -12,12 +12,12 @@ DEPENDS=("perl" "expat")
BUILD=()
PACKAGE(){
tar xf "XML-Parser-${VERSION}.tar.gz"
cd "XML-Parser-${VERSION}"
tar xf "XML-Parser-${VERSION%m*}.tar.gz"
cd "XML-Parser-${VERSION%m*}"
perl Makefile.PL
perl Makefile.PL INSTALLDIRS=vendor
make
make DESTDIR="${ROOTDIR}" install
cd .. && rm -r "XML-Parser-${VERSION}"
cd .. && rm -r "XML-Parser-${VERSION%m*}"
}