summaryrefslogtreecommitdiff
path: root/libre/licenses/PKGBUILD
blob: 342575f15f6fac3d850fa733afc5fc2a718a18e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# Maintainer (Arch): Levente Polyak <anthraxx[at]archlinux[dot]org>
# Maintainer (Arch): Dan McGee <dan@archlinux.org>
# Maintainer (Hyperbola): Márcio Silva <coadde@hyperbola.info>
# Maintainer (Hyperbola): André Silva <emulatorman@hyperbola.info>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
# Contributor: fauno <fauno@kiwwwi.com.ar>
# Contributor: Luke Shumaker <lukeshu@parabola.nu>

pkgname=licenses
pkgver=20200427
pkgrel=1
pkgrel+=.parabola2
pkgdesc='Standard licenses distribution package'
arch=('any')
license=('custom:none')
url='https://parabola.nu/'
source=(apache-2.0.txt::https://www.apache.org/licenses/LICENSE-2.0.txt
        cc-by-3.0.txt
        cc-by-sa-3.0.txt
        cc-readme.txt
        cddl-1.0.txt
        eclipse-1.0.txt
        https://www.gnu.org/licenses/agpl-3.0.txt
        https://www.gnu.org/licenses/gpl-2.0.txt
        https://www.gnu.org/licenses/gpl-3.0.txt
        https://www.gnu.org/licenses/lgpl-2.1.txt
        https://www.gnu.org/licenses/lgpl-3.0.txt
        https://www.gnu.org/licenses/fdl-1.2.txt
        https://www.gnu.org/licenses/fdl-1.3.txt
        https://www.latex-project.org/lppl.txt
        perlartistic.txt
        artistic-2_0.txt
        php-3.01.txt::http://www.php.net/license/3_01.txt
        ruby-license.txt
        cpl-1.0.txt
        python-2.txt
        w3c.txt
        ZopePublicLicense.txt
        mpl-1.1.txt::https://www.mozilla.org/media/MPL/1.1/index.txt
        mpl-2.0.txt::https://www.mozilla.org/media/MPL/2.0/index.txt
        boost-1.0.txt::http://www.boost.org/LICENSE_1_0.txt
        unlicense.txt::https://unlicense.org/UNLICENSE
        wtfpl-2.txt::http://www.wtfpl.net/txt/copying/)
md5sums=('3b83ef96387f14655fc854ddc3c6bd57'
         'ffb24d1bbf8b83d373f0b8edc3feb0c6'
         '5367190077e12a7f55403d531ef3998e'
         '77651e5c686cbc0f8cec5ac7e6504235'
         '6cb35f3976cd093011967fa1abbce386'
         'f300afd598546add034364cd0a533261'
         'eb1e647870add0502f8f010b19de32af'
         'b234ee4d69f5fce4486a80fdaf4a4263'
         '1ebbd3e34237af26da5dc08a4e440464'
         '4fbd65380cdd255951079008b364516c'
         '3000208d539ec061b899bce1d9ce9404'
         'cfe2a5472d5eaa226eae091d4114ce29'
         '60e948417268fd26557f89fff655183a'
         '9f4337828d782bdea41f03dd2ad1b808'
         'd09c120ca7db95ef2aeecec0cb08293b'
         'b4a94da2a1f918b217ef5156634fc9e0'
         '7e571b888d585b31f9ef5edcc647fa30'
         '8a960b08d972f43f91ae84a6f00dcbfb'
         'f083e41c43db25e18f36c91e57750b64'
         'a055911c32fb4ed6e96c453ceaeba857'
         '6f2095b5d61770740852873b195a4d21'
         'dc8502850eab9e1ff330a12d7ca18a19'
         '0c5913925d40b124fb52ce84c5deb3f3'
         '815ca599c9df247a0c7f619bab123dad'
         'e4224ccaecb14d942c71d31bef20d78c'
         '7246f848faa4e9c9fc0ea91122d6e680'
         '8365d07beeb5f39d87e846dca3ae7b64')

package() {
  cd "$pkgdir"
  mkdir -p usr/share/licenses/common
  cd usr/share/licenses/common

  mkdir AGPL3
  cp "$srcdir"/agpl-3.0.txt AGPL3/license.txt
  ln -s AGPL3 AGPL

  mkdir Apache
  cp "$srcdir"/apache-2.0.txt Apache/license.txt
  ln -s Apache APACHE

  mkdir Artistic2.0
  cp "$srcdir"/artistic-2_0.txt Artistic2.0/license.txt

  mkdir CCPL
  cp "$srcdir"/cc-by-3.0.txt CCPL/
  cp "$srcdir"/cc-by-sa-3.0.txt CCPL/
  cp "$srcdir"/cc-readme.txt CCPL/

  mkdir CDDL
  cp "$srcdir"/cddl-1.0.txt CDDL/license.txt

  mkdir CPL
  cp "$srcdir"/cpl-1.0.txt CPL/license.txt

  mkdir EPL
  cp "$srcdir"/eclipse-1.0.txt EPL/license.txt

  mkdir {GPL2,GPL3}
  cp "$srcdir"/gpl-2.0.txt GPL2/license.txt
  cp "$srcdir"/gpl-3.0.txt GPL3/license.txt
  ln -s GPL2 GPL

  mkdir {FDL1.2,FDL1.3}
  cp "$srcdir"/fdl-1.2.txt FDL1.2/license.txt
  cp "$srcdir"/fdl-1.3.txt FDL1.3/license.txt
  ln -s FDL1.2 FDL

  mkdir {LGPL2.1,LGPL3}
  cp "$srcdir"/lgpl-2.1.txt LGPL2.1/license.txt
  cp "$srcdir"/lgpl-3.0.txt LGPL3/license.txt
  ln -s LGPL2.1 LGPL

  mkdir LPPL
  cp "$srcdir"/lppl.txt LPPL/license.txt

  mkdir MPL
  cp "$srcdir"/mpl-1.1.txt MPL/license.txt

  mkdir MPL2
  cp "$srcdir"/mpl-2.0.txt MPL2/license.txt

  mkdir PerlArtistic
  cp "$srcdir"/perlartistic.txt PerlArtistic/license.txt

  mkdir PHP
  cp "$srcdir"/php-3.01.txt PHP/license.txt

  mkdir PSF
  cp "$srcdir"/python-2.txt PSF/license.txt

  mkdir RUBY
  cp "$srcdir"/ruby-license.txt RUBY/license.txt

  mkdir W3C
  cp "$srcdir"/w3c.txt W3C/license.txt

  mkdir ZPL
  cp "$srcdir"/ZopePublicLicense.txt ZPL/license.txt

  mkdir Boost
  cp "$srcdir"/boost-1.0.txt Boost/license.txt

  mkdir Unlicense
  cp "$srcdir"/unlicense.txt Unlicense/license.txt

  mkdir WTFPL2
  cp "$srcdir"/wtfpl-2.txt WTFPL2/license.txt
  ln -s WTFPL2 WTFPL
}

# vim: ts=2 sw=2 et: