tazpkg rev 631
convert/deb: add license
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 04 09:44:37 2013 +0200 (2013-07-04) |
parents | ff5eff537a5f |
children | 85d62a4756ce |
files | tazpkg |
line diff
1.1 --- a/tazpkg Mon Jul 01 10:27:49 2013 +0200 1.2 +++ b/tazpkg Thu Jul 04 09:44:37 2013 +0200 1.3 @@ -1285,8 +1285,12 @@ 1.4 SHORT_DESC="$descrip" 1.5 WEB_SITE="http://packages.debian.org/search?keywords=$package" 1.6 MAINTAINER="nobody@slitaz.org" 1.7 -DEPENDS="$(find_depends)" 1.8 EOT 1.9 + LICENSE="$(grep /usr/share/common-licenses/ \ 1.10 + $PACKAGE_FILE $TMP_DIR/$file/fs/usr/share/doc/*/copyright | \ 1.11 + sed 's|.*common-licenses/\([-\.A-Za-z0-9]*\).*|\1|;s|[-\.]$||q')" 1.12 + [ -n "$LICENSE" ] && echo "LICENSE=\"$LICENSE\"" >> $file/receipt 1.13 + echo "DEPENDS=\"$(find_depends)\"" >> $file/receipt 1.14 [ -s conffiles ] && cat >> $file/receipt <<EOT 1.15 CONFIG_FILES="$(cat conffiles)" 1.16 EOT