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:
8
xbps.sh
8
xbps.sh
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user