Simplify templates by not needing $patch_files in some cases.

If exists a patch called $pkgname-fix-{build,install}.diff in the
templates directory, they will be applied automatically. If patches
are named differently $patch_files must be used yet.

--HG--
extra : convert_revision : 21f6edfab580c569b3737280f54a6332c44baa49
This commit is contained in:
Juan RP
2008-10-27 04:08:55 +01:00
parent c06defc719
commit 5ef5ca8d35
12 changed files with 8 additions and 11 deletions

View File

@@ -611,6 +611,14 @@ apply_tmpl_patches()
local patch=
local i=
# Apply some build/install patches automatically.
if [ -f $XBPS_TEMPLATESDIR/$pkgname-fix-build.diff ]; then
patch_files="$pkgname-fix-build.diff $patch_files"
fi
if [ -f $XBPS_TEMPLATESDIR/$pkgname-fix-install.diff ]; then
patch_files="$pkgname-fix-install.diff $patch_files"
fi
#
# If package needs some patches applied before building,
# apply them now.