recipe 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Build recipe for URI.
  2. #
  3. # Copyright (C) 2018, MMPG <mmpg@vp.pl>
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. program=URI
  17. version=1.73
  18. release=1
  19. tarname=${program}-${version}.tar.gz
  20. # Remote source(s)
  21. fetch=http://www.cpan.org/authors/id/E/ET/ETHER/$tarname
  22. description="
  23. A Perl module that implements the URI class.
  24. Objects of this class represent "Uniform Resource Identifier references" as specified in RFC 2396.
  25. A Uniform Resource Identifier is a compact string of characters that identifies an abstract or physical resource.
  26. "
  27. homepage=https://metacpan.org/pod/URI
  28. license="GPL | Artistic License "
  29. docs="CONTRIBUTING.md Changes LICENSE"
  30. docsdir="${docdir}/${program}-${version}"
  31. build()
  32. {
  33. set -e
  34. unpack "${tardir}/$tarname"
  35. cd "$srcdir"
  36. perl Makefile.PL
  37. make
  38. make DESTDIR="$destdir" install
  39. # Copy documentation
  40. mkdir -p "${destdir}${docsdir}"
  41. for file in $docs
  42. do
  43. cp -p $file "${destdir}${docsdir}"
  44. done
  45. }