xbps-src: add three new metadata objects in binary pkgs.

homepage (string): package upstream URL.
license (string): package licenses.
build_date (string): package build date in UTC.
This commit is contained in:
Juan RP 2011-05-26 10:40:31 +02:00
parent 80f784e0eb
commit 6ed4e562cc
2 changed files with 17 additions and 0 deletions

View file

@ -366,6 +366,22 @@ _EOF
echo "</array>" >> $TMPFPROPS
fi
# Build date.
echo "<key>build_date</key>" >> $TMPFPROPS
echo "<string>$(LANG=C date -u "+%A %d %B, %Y, %T UTC")</string>" >> $TMPFPROPS
# Homepage
if [ -n "$homepage" ]; then
echo "<key>homepage</key>" >> $TMPFPROPS
echo "<string>$homepage</string>" >> $TMPFPROPS
fi
# License
if [ -n "$license" ]; then
echo "<key>license</key>" >> $TMPFPROPS
echo "<string>$license</string>" >> $TMPFPROPS
fi
# Terminate the property list file.
echo "</dict>" >> $TMPFPROPS
echo "</plist>" >> $TMPFPROPS