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
2 changed files with 17 additions and 0 deletions
|
@ -366,6 +366,22 @@ _EOF
|
||||||
echo "</array>" >> $TMPFPROPS
|
echo "</array>" >> $TMPFPROPS
|
||||||
fi
|
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.
|
# Terminate the property list file.
|
||||||
echo "</dict>" >> $TMPFPROPS
|
echo "</dict>" >> $TMPFPROPS
|
||||||
echo "</plist>" >> $TMPFPROPS
|
echo "</plist>" >> $TMPFPROPS
|
||||||
|
|
|
@ -104,6 +104,7 @@ reset_tmpl_vars()
|
||||||
ignore_vdeps_dir noverifyrdeps conflicts dkms_modules \
|
ignore_vdeps_dir noverifyrdeps conflicts dkms_modules \
|
||||||
gconf_entries gconf_schemas stow_copy stow_copy_files \
|
gconf_entries gconf_schemas stow_copy stow_copy_files \
|
||||||
pre_remove post_remove post_stow do_build do_install \
|
pre_remove post_remove post_stow do_build do_install \
|
||||||
|
homepage license \
|
||||||
XBPS_EXTRACT_DONE XBPS_CONFIGURE_DONE \
|
XBPS_EXTRACT_DONE XBPS_CONFIGURE_DONE \
|
||||||
XBPS_BUILD_DONE XBPS_INSTALL_DONE FILESDIR DESTDIR \
|
XBPS_BUILD_DONE XBPS_INSTALL_DONE FILESDIR DESTDIR \
|
||||||
SRCPKGDESTDIR PATCHESDIR CFLAGS CXXFLAGS CPPFLAGS \
|
SRCPKGDESTDIR PATCHESDIR CFLAGS CXXFLAGS CPPFLAGS \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue