mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-08 12:28:00 -05:00
makepkg: always use pkg/$pkgname as $pkgdir
Unify split and single packages to always use a folder within pkg/ as thier $pkgdir. This will allow a folder for storing a package with stripped debug symbols to be added within pkg/ too. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
6be96e7612
commit
a53fd79632
@ -2696,6 +2696,8 @@ if (( INFAKEROOT )); then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if (( ! SPLITPKG )); then
|
if (( ! SPLITPKG )); then
|
||||||
|
pkgdir="$pkgdir/$pkgname"
|
||||||
|
mkdir -p "$pkgdir"
|
||||||
if (( ! PKGFUNC )); then
|
if (( ! PKGFUNC )); then
|
||||||
if (( ! REPKG )); then
|
if (( ! REPKG )); then
|
||||||
if (( BUILDFUNC )); then
|
if (( BUILDFUNC )); then
|
||||||
@ -2711,6 +2713,7 @@ if (( INFAKEROOT )); then
|
|||||||
fi
|
fi
|
||||||
tidy_install
|
tidy_install
|
||||||
create_package
|
create_package
|
||||||
|
pkgdir="${pkgdir%/*}"
|
||||||
else
|
else
|
||||||
run_split_packaging
|
run_split_packaging
|
||||||
fi
|
fi
|
||||||
@ -2839,6 +2842,8 @@ else
|
|||||||
(( CHECKFUNC )) && run_check
|
(( CHECKFUNC )) && run_check
|
||||||
fi
|
fi
|
||||||
if (( ! SPLITPKG )); then
|
if (( ! SPLITPKG )); then
|
||||||
|
pkgdir="$pkgdir/$pkgname"
|
||||||
|
mkdir -p "$pkgdir"
|
||||||
if (( PKGFUNC )); then
|
if (( PKGFUNC )); then
|
||||||
run_package
|
run_package
|
||||||
elif (( REPKG )); then
|
elif (( REPKG )); then
|
||||||
@ -2847,6 +2852,7 @@ else
|
|||||||
fi
|
fi
|
||||||
tidy_install
|
tidy_install
|
||||||
create_package
|
create_package
|
||||||
|
pkgdir="${pkgdir%/*}"
|
||||||
else
|
else
|
||||||
run_split_packaging
|
run_split_packaging
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user