void-packages/templates/gtk-sharp.pre_build
Juan RP c06defc719 Replace run_stuff with post/pre_<stage> variables.
If there's a file called "$pkgname.{pre,post}_{configure,build,install}
it will be automatically executed. In addition to this, templates may
use {pre,post}_{configure,build,install}_cmd variables to run arbitrary
commands.

--HG--
extra : convert_revision : 62ad549b8299689ecf8c833e73eda436ffdb7aa7
2008-10-27 03:56:42 +01:00

19 lines
532 B
Text

#
# Replace hardcoded paths in perl scripts.
#
. $XBPS_TMPLHELPDIR/replace-interpreter.sh
replace_interpreter perl parser/gapi2xml.pl
replace_interpreter perl parser/gapi_pp.pl
#
# Fix up pkg-config files.
gtksharp_pc_files="gtk/gtk-sharp-2.0.pc.in gtkdotnet/gtk-dotnet-2.0.pc.in
glib/glib-sharp-2.0.pc.in parser/gapi-2.0.pc.in glade/glade-sharp-2.0.pc.in"
for f in ${gtksharp_pc_files}; do
$sed_cmd -e "s|\${pcfiledir}/../..|$XBPS_MASTERDIR|g" \
$wrksrc/$f > $wrksrc/$f.sed && \
$mv_cmd $wrksrc/$f.sed $wrksrc/$f
done