void-packages/templates/shared-mime-info-runstuff-b...

6 lines
253 B
Bash

# Replace hardcoded paths in XDG_DATA_DIRS.
$sed_cmd -e "s|/usr/local/share|$XBPS_MASTERDIR/share|g" \
$wrksrc/update-mime-database.c > $wrksrc/update-mime-database.c.in && \
$mv_cmd -f $wrksrc/update-mime-database.c.in $wrksrc/update-mime-database.c