summaryrefslogtreecommitdiff
path: root/libre/licenses/PKGBUILD
blob: 91898b829d7ffe0497fe1610706416f475de51b7 (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
# $Id: PKGBUILD 215579 2014-06-29 17:33:41Z dan $
# Maintainer (Arch): Dan McGee <dan@archlinux.org>
# Maintainer: fauno <fauno@kiwwwi.com.ar>
# Maintainer: Márcio Silva <coadde@parabola.nu>
# Maintainer: André Silva <emulatorman@parabola.nu>
# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>

pkgname=licenses
pkgver=20140629
pkgrel=2.parabola1
pkgdesc="The standard licenses distribution package"
arch=('any')
license=('custom:none')
url="https://parabolagnulinux.org/"
groups=('base' 'base-openrc')
makedepends=(links)
conflicts=('licenses-libre')
replaces=('licenses-libre')
source=(apache-2.0.txt::http://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
        http://www.gnu.org/licenses/agpl-3.0.txt
        http://www.gnu.org/licenses/gpl-2.0.txt
        http://www.gnu.org/licenses/gpl-3.0.txt
        http://www.gnu.org/licenses/lgpl-2.1.txt
        http://www.gnu.org/licenses/lgpl-3.0.txt
        http://www.gnu.org/licenses/fdl-1.2.txt
        http://www.gnu.org/licenses/fdl-1.3.txt
        http://www.latex-project.org/lppl.txt
        mpl-1.1.txt
        mpl-2.0.txt::http://www.mozilla.org/MPL/2.0/index.txt
        perlartistic.txt
        http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt
        php-3.0.txt::http://www.php.net/license/3_0.txt
        ruby-license.txt
        cpl-1.0.txt
        python-2.txt
        w3c.txt
        wtfpl-2.txt::http://www.wtfpl.net/txt/copying/
        ZopePublicLicense.txt)
sha256sums=('cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30'
            '896318172b9bf75b9c863df45c38495a968c3e711c405ed03a2a47eb0ed896e3'
            'e550f7bd34d25b04bb0a3fac7f3981d51b41df363d21f35952ee27da259039a2'
            '9d5ba975d1e2ede2268b6484d10a96fdef58c7099287f4524643e2f0937eedd1'
            '8778a2687ad7936c20ab77bedc4d28a788e853637ef3edc39708100dd0c90cef'
            '8367b0edc81df80e6b42eb1b71f783111224e058cb3da37894d065d2deb7ab0a'
            '57c8ff33c9c0cfc3ef00e650a1cc910d7ee479a8bc509f6c9209a7c2a11399d6'
            '8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643'
            '8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903'
            'dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551'
            'da7eabb7bafdf7d3ae5e9f223aa5bdc1eece45ac569dc21b3b037520b4464768'
            '56976e64523fa1e68db4e6f464f5b2cb89d7d08f54b1d012e317b8db286b3faf'
            '4748f03ed2dbcc14cde6ebc30799899c403e356a7465dc30fcf2b80c45fc0059'
            '5f05fcf6ef25a6c31bccd2df7c0c46b23107bbeb2ce5cdba74efb5cc357f4dbb'
            'f849fc26a7a99981611a3a370e83078deb617d12a45776d6c4cada4d338be469'
            'fab3dd6bdab226f1c08630b1dd917e11fcb4ec5e1e020e2c16f83a0a13863e85'
            '5e8219a37b4c1a146096f17862ef7d6ce689b2137c0161a3936c358a28014169'
            'f2e0707902c4cd92155bb081a6eb0d77ebab789eafb212659fa6f44fcdca531b'
            'be9019f00e94668a1c287b1697cd77523748903cfc2cc0b7bcdaacd78a3c5c7b'
            'f5eb1b2956d5f7a67b2e5722a3749bc2fe86f9c580f2e3f5a08519cf073b5864'
            'fe53ee559be099a8c964e95817c55d2a40ef43630150b11c292ccab7b2dd425d'
            '4516a0f2f58e8d6f4ac77c14261cab67d386fa9afa2e79ee09dff190a6eae9f4'
            'ec2f99fa32da2236c60b1054f8967ccce5175370de5215e8f018cb7be397512e'
            '0356258391e190dc1d44ea01565cfe627fe44e27dad693a0a54c2483a7b223e5'
            '281c83248297ed2070a2e61ac140e707697511a6a065ba3808cbfa6de5bb5611')

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 MPL1.1
  cp "$srcdir"/mpl-1.1.txt MPL1.1/license.txt
  ln -s MPL1.1 MPL

  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.0.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 WTFPL2
  cp "$srcdir"/wtfpl-2.txt WTFPL2/license.txt
  ln -s WTFPL2 WTFPL

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