12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- # Build recipe for URI.
- #
- # Copyright (C) 2018, MMPG <mmpg@vp.pl>
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- program=URI
- version=1.73
- release=1
- tarname=${program}-${version}.tar.gz
- # Remote source(s)
- fetch=http://www.cpan.org/authors/id/E/ET/ETHER/$tarname
- description="
- A Perl module that implements the URI class.
- Objects of this class represent "Uniform Resource Identifier references" as specified in RFC 2396.
- A Uniform Resource Identifier is a compact string of characters that identifies an abstract or physical resource.
- "
- homepage=https://metacpan.org/pod/URI
- license="GPL | Artistic License "
- docs="CONTRIBUTING.md Changes LICENSE"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- set -e
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- perl Makefile.PL
- make
- make DESTDIR="$destdir" install
-
- # Copy documentation
- mkdir -p "${destdir}${docsdir}"
-
- for file in $docs
- do
- cp -p $file "${destdir}${docsdir}"
- done
- }
|