summaryrefslogtreecommitdiffstats
path: root/abs/core/licenses/PKGBUILD
blob: bfd74db65423ccb1b38cc636c3d88908a0849f5b (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
# $Id: PKGBUILD 1848 2008-05-22 00:45:32Z eric $
# Maintainer: Dan McGee <dan@archlinux.org>

pkgname=licenses
pkgver=2.4
pkgrel=10
pkgdesc="The standard licenses distribution package"
arch=('i686' 'x86_64')
license=('custom:none')
url="http://archlinux.org"
groups=('base')
source=(http://www.apache.org/licenses/LICENSE-2.0.txt
        cc-by-3.0.txt
        cc-by-nc-3.0.txt
        cc-by-nc-nd-3.0.txt
        cc-by-nc-sa-3.0.txt
        cc-by-nd-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/old-licenses/gpl-2.0.txt
        http://www.gnu.org/licenses/gpl-3.0.txt
        http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt
        http://www.gnu.org/licenses/lgpl.txt
        http://www.gnu.org/licenses/fdl.txt
        http://www.latex-project.org/lppl.txt
        http://www.mozilla.org/MPL/MPL-1.1.txt
        perlartistic.txt
        http://www.php.net/license/3_0.txt
        http://www.ruby-lang.org/en/LICENSE.txt
        cpl-1.0.txt
        python-2.txt
        LICENSE.ralink-firmware.txt
        ZopePublicLicense.txt)
md5sums=('3b83ef96387f14655fc854ddc3c6bd57'
         'ffb24d1bbf8b83d373f0b8edc3feb0c6'
         '682a5e3b03510ba46c4f566478c871bc'
         '166b65b71e44630b436bfe937c4c0b73'
         '89bca4a2dde8b7d39c27a1dc24078932'
         '2502517d13d8136fffaf248489ad0870'
         '5367190077e12a7f55403d531ef3998e'
         '019bc72509b18a804f0ea8fd2bab1932'
         '6cb35f3976cd093011967fa1abbce386'
         'f300afd598546add034364cd0a533261'
         '751419260aa954499f7abaabaa882bbe'
         'd32239bcb673463ab874e80d47fae504'
         'fbc093901857fcd118f065f900982c24'
         '6a6a8e020838b23406c81b19c1d46df6'
         'ad1419ecc56e060eccf8184a87c4285f'
         '9f4337828d782bdea41f03dd2ad1b808'
         'bfe1f75d606912a4111c90743d6c7325'
         'd09c120ca7db95ef2aeecec0cb08293b'
         'a45bb1bbeed9e26b26c5763df1d3913d'
         '68d59ff8306e3a9f5f1c01462c77a317'
         'f083e41c43db25e18f36c91e57750b64'
         '614f4f550910d90428a567cfaafe62a9'
         '682eac07428a4e8f138bc082f090ecac'
         'dc8502850eab9e1ff330a12d7ca18a19')

build() {
  cd $startdir/pkg
  mkdir -p usr/share/licenses/common
  cd usr/share/licenses/common

  mkdir APACHE
  cp $startdir/src/LICENSE-2.0.txt APACHE/license.txt

  mkdir CCPL
  cp $startdir/src/cc-by-3.0.txt CCPL/
  cp $startdir/src/cc-by-nc-3.0.txt CCPL/
  cp $startdir/src/cc-by-nc-nd-3.0.txt CCPL/
  cp $startdir/src/cc-by-nc-sa-3.0.txt CCPL/
  cp $startdir/src/cc-by-nd-3.0.txt CCPL/
  cp $startdir/src/cc-by-sa-3.0.txt CCPL/
  cp $startdir/src/cc-readme.txt CCPL/

  mkdir CDDL
  cp $startdir/src/cddl-1.0.txt CDDL/license.txt

  mkdir CPL
  cp $startdir/src/cpl-1.0.txt CPL/license.txt

  mkdir EPL
  cp $startdir/src/eclipse-1.0.txt EPL/license.txt

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

  mkdir FDL
  cp $startdir/src/fdl.txt FDL/license.txt

  mkdir {LGPL,LGPL3}
  cp $startdir/src/lgpl-2.1.txt LGPL/license.txt
  cp $startdir/src/lgpl.txt LGPL3/license.txt
  ln -s LGPL LGPL2

  mkdir LPPL
  cp $startdir/src/lppl.txt LPPL/license.txt

  mkdir MPL
  cp $startdir/src/MPL-1.1.txt MPL/license.txt

  mkdir PerlArtistic
  cp $startdir/src/perlartistic.txt PerlArtistic/license.txt

  mkdir PHP
  cp $startdir/src/3_0.txt PHP/license.txt
  
  mkdir PSF
  cp $startdir/src/python-2.txt PSF/license.txt

  mkdir RALINK
  cp $startdir/src/LICENSE.ralink-firmware.txt RALINK/license.txt

  mkdir RUBY
  cp $startdir/src/LICENSE.txt RUBY/license.txt

  mkdir ZPL
  cp $startdir/src/ZopePublicLicense.txt ZPL/license.txt
}