PKGBUILD 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. # Maintainer (Arch): Levente Polyak <anthraxx[at]archlinux[dot]org>
  2. # Maintainer (Arch): Dan McGee <dan@archlinux.org>
  3. # Maintainer (Hyperbola): Márcio Silva <coadde@hyperbola.info>
  4. # Maintainer (Hyperbola): André Silva <emulatorman@hyperbola.info>
  5. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  6. # Contributor: fauno <fauno@kiwwwi.com.ar>
  7. # Contributor: Luke Shumaker <lukeshu@parabola.nu>
  8. pkgname=licenses
  9. pkgver=20200427
  10. pkgrel=1
  11. pkgrel+=.parabola2
  12. pkgdesc='Standard licenses distribution package'
  13. arch=('any')
  14. license=('custom:none')
  15. url='https://parabola.nu/'
  16. source=(apache-2.0.txt::https://www.apache.org/licenses/LICENSE-2.0.txt
  17. cc-by-3.0.txt
  18. cc-by-sa-3.0.txt
  19. cc-readme.txt
  20. cddl-1.0.txt
  21. eclipse-1.0.txt
  22. https://www.gnu.org/licenses/agpl-3.0.txt
  23. https://www.gnu.org/licenses/gpl-2.0.txt
  24. https://www.gnu.org/licenses/gpl-3.0.txt
  25. https://www.gnu.org/licenses/lgpl-2.1.txt
  26. https://www.gnu.org/licenses/lgpl-3.0.txt
  27. https://www.gnu.org/licenses/fdl-1.2.txt
  28. https://www.gnu.org/licenses/fdl-1.3.txt
  29. https://www.latex-project.org/lppl.txt
  30. perlartistic.txt
  31. artistic-2_0.txt
  32. php-3.01.txt::http://www.php.net/license/3_01.txt
  33. ruby-license.txt
  34. cpl-1.0.txt
  35. python-2.txt
  36. w3c.txt
  37. ZopePublicLicense.txt
  38. mpl-1.1.txt::https://www.mozilla.org/media/MPL/1.1/index.txt
  39. mpl-2.0.txt::https://www.mozilla.org/media/MPL/2.0/index.txt
  40. boost-1.0.txt::http://www.boost.org/LICENSE_1_0.txt
  41. unlicense.txt::https://unlicense.org/UNLICENSE
  42. wtfpl-2.txt::http://www.wtfpl.net/txt/copying/)
  43. md5sums=('3b83ef96387f14655fc854ddc3c6bd57'
  44. 'ffb24d1bbf8b83d373f0b8edc3feb0c6'
  45. '5367190077e12a7f55403d531ef3998e'
  46. '77651e5c686cbc0f8cec5ac7e6504235'
  47. '6cb35f3976cd093011967fa1abbce386'
  48. 'f300afd598546add034364cd0a533261'
  49. 'eb1e647870add0502f8f010b19de32af'
  50. 'b234ee4d69f5fce4486a80fdaf4a4263'
  51. '1ebbd3e34237af26da5dc08a4e440464'
  52. '4fbd65380cdd255951079008b364516c'
  53. '3000208d539ec061b899bce1d9ce9404'
  54. 'cfe2a5472d5eaa226eae091d4114ce29'
  55. '60e948417268fd26557f89fff655183a'
  56. '9f4337828d782bdea41f03dd2ad1b808'
  57. 'd09c120ca7db95ef2aeecec0cb08293b'
  58. 'b4a94da2a1f918b217ef5156634fc9e0'
  59. '7e571b888d585b31f9ef5edcc647fa30'
  60. '8a960b08d972f43f91ae84a6f00dcbfb'
  61. 'f083e41c43db25e18f36c91e57750b64'
  62. 'a055911c32fb4ed6e96c453ceaeba857'
  63. '6f2095b5d61770740852873b195a4d21'
  64. 'dc8502850eab9e1ff330a12d7ca18a19'
  65. '0c5913925d40b124fb52ce84c5deb3f3'
  66. '815ca599c9df247a0c7f619bab123dad'
  67. 'e4224ccaecb14d942c71d31bef20d78c'
  68. '7246f848faa4e9c9fc0ea91122d6e680'
  69. '8365d07beeb5f39d87e846dca3ae7b64')
  70. package() {
  71. cd "$pkgdir"
  72. mkdir -p usr/share/licenses/common
  73. cd usr/share/licenses/common
  74. mkdir AGPL3
  75. cp "$srcdir"/agpl-3.0.txt AGPL3/license.txt
  76. ln -s AGPL3 AGPL
  77. mkdir Apache
  78. cp "$srcdir"/apache-2.0.txt Apache/license.txt
  79. ln -s Apache APACHE
  80. mkdir Artistic2.0
  81. cp "$srcdir"/artistic-2_0.txt Artistic2.0/license.txt
  82. mkdir CCPL
  83. cp "$srcdir"/cc-by-3.0.txt CCPL/
  84. cp "$srcdir"/cc-by-sa-3.0.txt CCPL/
  85. cp "$srcdir"/cc-readme.txt CCPL/
  86. mkdir CDDL
  87. cp "$srcdir"/cddl-1.0.txt CDDL/license.txt
  88. mkdir CPL
  89. cp "$srcdir"/cpl-1.0.txt CPL/license.txt
  90. mkdir EPL
  91. cp "$srcdir"/eclipse-1.0.txt EPL/license.txt
  92. mkdir {GPL2,GPL3}
  93. cp "$srcdir"/gpl-2.0.txt GPL2/license.txt
  94. cp "$srcdir"/gpl-3.0.txt GPL3/license.txt
  95. ln -s GPL2 GPL
  96. mkdir {FDL1.2,FDL1.3}
  97. cp "$srcdir"/fdl-1.2.txt FDL1.2/license.txt
  98. cp "$srcdir"/fdl-1.3.txt FDL1.3/license.txt
  99. ln -s FDL1.2 FDL
  100. mkdir {LGPL2.1,LGPL3}
  101. cp "$srcdir"/lgpl-2.1.txt LGPL2.1/license.txt
  102. cp "$srcdir"/lgpl-3.0.txt LGPL3/license.txt
  103. ln -s LGPL2.1 LGPL
  104. mkdir LPPL
  105. cp "$srcdir"/lppl.txt LPPL/license.txt
  106. mkdir MPL
  107. cp "$srcdir"/mpl-1.1.txt MPL/license.txt
  108. mkdir MPL2
  109. cp "$srcdir"/mpl-2.0.txt MPL2/license.txt
  110. mkdir PerlArtistic
  111. cp "$srcdir"/perlartistic.txt PerlArtistic/license.txt
  112. mkdir PHP
  113. cp "$srcdir"/php-3.01.txt PHP/license.txt
  114. mkdir PSF
  115. cp "$srcdir"/python-2.txt PSF/license.txt
  116. mkdir RUBY
  117. cp "$srcdir"/ruby-license.txt RUBY/license.txt
  118. mkdir W3C
  119. cp "$srcdir"/w3c.txt W3C/license.txt
  120. mkdir ZPL
  121. cp "$srcdir"/ZopePublicLicense.txt ZPL/license.txt
  122. mkdir Boost
  123. cp "$srcdir"/boost-1.0.txt Boost/license.txt
  124. mkdir Unlicense
  125. cp "$srcdir"/unlicense.txt Unlicense/license.txt
  126. mkdir WTFPL2
  127. cp "$srcdir"/wtfpl-2.txt WTFPL2/license.txt
  128. ln -s WTFPL2 WTFPL
  129. }
  130. # vim: ts=2 sw=2 et: