123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- set -e
- program=XML-NamespaceSupport
- version=1.12
- release=2
- pkgname=perl-xml-namespacesupport
- pkgcategory=perl
- description="
- A simple generic namespace processor.
- This module offers a simple way to process namespaced XML names
- (unames) from within any application that may need them.
- It also helps maintain a prefix to namespace URI map, and provides
- a number of basic checks.
- "
- homepage=https://search.cpan.org/dist/XML-NamespaceSupport
- license="GPLv1+ | Artistic License"
- tarname=${program}-${version}.tar.gz
- fetch=https://cpan.metacpan.org/authors/id/P/PE/PERIGRIN/$tarname
- docs="Changes LICENSE README"
- docsdir="${docdir}/${pkgname}-${version}"
- build() {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- perl Makefile.PL INSTALLDIRS=vendor
- make -j${jobs} V=1 docdir=$docsdir
- make -j${jobs} DESTDIR="$destdir" install
-
- find "$destdir" -type f | xargs file | \
- awk '/ELF/ && /executable/ || /shared object/' | \
- cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
-
- find "${destdir}/" -type f -name '.packlist' | while read -r file
- do
- sed -i \
- -e "s|${destdir}||g" \
- -e "s|\.[0-9][a-z]*|&.lz|g" \
- $file
- done
- find "${destdir}/" -type f -name 'perllocal.pod' -exec rm -f {} +
-
- if [ -d "${destdir}/$mandir" ] ; then
- (
- cd "${destdir}/$mandir"
- find . -type f -exec lzip -9 {} +
- find . -type l | while read -r file
- do
- ln -sf "$(readlink -- "$file").lz" "${file}.lz"
- rm -- "$file"
- done
- )
- fi
-
- mkdir -p "${destdir}${docsdir}"
- cp -p $docs "${destdir}${docsdir}/"
- }
|