wok-6.x annotate licenses/receipt @ rev 24159
Up ventoy (1.0.62)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Dec 20 10:05:11 2021 +0000 (2021-12-20) |
parents | b60a85922696 |
children |
rev | line source |
---|---|
al@14652 | 1 # SliTaz package receipt. |
al@14652 | 2 |
al@14652 | 3 PACKAGE="licenses" |
al@14652 | 4 VERSION="2013" |
al@14652 | 5 CATEGORY="development" |
al@14652 | 6 SHORT_DESC="Various licenses" |
al@14652 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@14652 | 8 LICENSE="GPL3" |
al@14652 | 9 WEB_SITE="http://www.gnu.org/licenses/licenses.html" |
al@14652 | 10 |
pascal@18365 | 11 EXTRA_SOURCE_FILES="GPL3.html LGPL3.html AGPL3.html FDL1.3.html gpl.txt \ |
pascal@18365 | 12 lgpl.txt agpl.txt fdl.txt GPL.html LGPL.html AGPL.html FDL.html \ |
pascal@18365 | 13 GPL2.html GPL1.html LGPL2.1.html LGPL2.html FDL1.2.html FDL1.1.html \ |
pascal@18365 | 14 MPL2.html MPL1.1.html MPL2.txt MPL1.1.txt" |
pascal@18365 | 15 |
pascal@18365 | 16 src_wget() |
pascal@18365 | 17 { |
pascal@18365 | 18 local file="$SOURCES_REPOSITORY/$(basename $2)" |
pascal@18365 | 19 [ -s "$file" ] || wget -O "$file" "$1" |
pascal@18365 | 20 cp "$file" "$2" |
pascal@18365 | 21 } |
al@14652 | 22 |
al@14652 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@14652 | 24 genpkg_rules() |
al@14652 | 25 { |
al@14652 | 26 ### GNU Licenses ### |
al@14652 | 27 G=http://www.gnu.org/licenses |
al@14652 | 28 O=$G/old-licenses |
al@14652 | 29 l=/usr/share/licenses |
al@14652 | 30 L=$fs$l |
al@14652 | 31 H=-standalone.html |
al@14652 | 32 mkdir -p $L |
al@14652 | 33 # actual |
pascal@18365 | 34 src_wget $G/gpl-3.0$H $L/GPL3.html |
pascal@18365 | 35 src_wget $G/lgpl-3.0$H $L/LGPL3.html |
pascal@18365 | 36 src_wget $G/agpl-3.0$H $L/AGPL3.html |
pascal@18365 | 37 src_wget $G/fdl-1.3$H $L/FDL1.3.html |
pascal@18365 | 38 src_wget $G/gpl.txt $L/gpl.txt |
pascal@18365 | 39 src_wget $G/lgpl.txt $L/lgpl.txt |
pascal@18365 | 40 src_wget $G/agpl.txt $L/agpl.txt |
pascal@18365 | 41 src_wget $G/fdl.txt $L/fdl.txt |
al@14652 | 42 # links to actual |
al@14652 | 43 ln -s $l/GPL3.html $L/GPL.html |
al@14652 | 44 ln -s $l/LGPL3.html $L/LGPL.html |
al@14652 | 45 ln -s $l/AGPL3.html $L/AGPL.html |
al@14652 | 46 ln -s $l/FDL1.3.html $L/FDL.html |
al@14652 | 47 # old |
pascal@18365 | 48 src_wget $O/gpl-2.0$H $L/GPL2.html |
pascal@18365 | 49 src_wget $O/gpl-1.0$H $L/GPL1.html |
pascal@18365 | 50 src_wget $O/lgpl-2.1$H $L/LGPL2.1.html |
pascal@18365 | 51 src_wget $O/lgpl-2.0$H $L/LGPL2.html |
pascal@18365 | 52 src_wget $O/fdl-1.2$H $L/FDL1.2.html |
pascal@18365 | 53 src_wget $O/fdl-1.1$H $L/FDL1.1.html |
al@14652 | 54 |
al@14652 | 55 ### Mozilla Licenses ### |
pascal@18365 | 56 src_wget http://www.mozilla.org/MPL/2.0/ $L/MPL2.html |
pascal@18365 | 57 src_wget http://www.mozilla.org/MPL/2.0/index.txt $L/MPL2.txt |
pascal@18365 | 58 src_wget http://www.mozilla.org/MPL/1.1/ $L/MPL1.1.html |
pascal@18365 | 59 src_wget http://www.mozilla.org/MPL/1.1/index.txt $L/MPL1.1.txt |
al@14652 | 60 |
al@14652 | 61 } |