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:
parent
80f784e0eb
commit
6ed4e562cc
|
@ -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
|
||||
|
|
|
@ -104,6 +104,7 @@ reset_tmpl_vars()
|
|||
ignore_vdeps_dir noverifyrdeps conflicts dkms_modules \
|
||||
gconf_entries gconf_schemas stow_copy stow_copy_files \
|
||||
pre_remove post_remove post_stow do_build do_install \
|
||||
homepage license \
|
||||
XBPS_EXTRACT_DONE XBPS_CONFIGURE_DONE \
|
||||
XBPS_BUILD_DONE XBPS_INSTALL_DONE FILESDIR DESTDIR \
|
||||
SRCPKGDESTDIR PATCHESDIR CFLAGS CXXFLAGS CPPFLAGS \
|
||||
|
|
Loading…
Reference in New Issue
Block a user