diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2021-01-18 15:32:32 -0500 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2022-01-18 17:31:54 +0100 |
commit | e4c05f63b323bc2a7b1b6e9a1961d31568b7ae17 (patch) | |
tree | 458844d95abbef84ef06397b2d78d649fd136a8c | |
parent | 042532c81d2bb56c4a01d666bb60dbf4fd3d3fb6 (diff) |
delete split-pkg functions from mksource temporary PKGBUILD
it was previously not possible to use mksource() in a split-package
the mksource temporary PKGBUILD over-rides the package() function;
but conflicting package_*() functions were left in tact
-rwxr-xr-x | src/librefetch/librefetch | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/librefetch/librefetch b/src/librefetch/librefetch index f963361..67f4491 100755 --- a/src/librefetch/librefetch +++ b/src/librefetch/librefetch @@ -364,6 +364,9 @@ prepare() { :; } build() { msg "Starting mksource()"; mksource; } check() { :; } package() { cp -a "$srcdir"/*/ "$pkgdir/"; } +if [[ "$(declare -p pkgname 2> /dev/null)" =~ ^"declare -a " ]] +then for pkg in ${pkgname[*]} ; do unset package_${pkg} ; done ; +fi ' modified_pkgbuild() { |