Install logo-ls
only if not present
This commit is contained in:
parent
f81c36127d
commit
b2f0bcad67
|
@ -9,27 +9,30 @@ begin
|
||||||
set -l pkgName logo-ls
|
set -l pkgName logo-ls
|
||||||
set -l patchName workaround.patch
|
set -l patchName workaround.patch
|
||||||
|
|
||||||
begin
|
if not type -q logo-ls
|
||||||
pushd "$contextRoot" > /dev/null
|
begin
|
||||||
yay -G -f "$pkgName"
|
pushd "$contextRoot" > /dev/null
|
||||||
cd "$pkgName"
|
yay -G -f "$pkgName"
|
||||||
cp "$dirName/$patchName" .
|
cd "$pkgName"
|
||||||
|
cp "$dirName/$patchName" .
|
||||||
|
|
||||||
sed -i \
|
sed -i \
|
||||||
-e "/^source=(/s/source=(/\0$patchName /" \
|
-e "/^source=(/s/source=(/\0$patchName /" \
|
||||||
-e "/^md5sums=(/s/^md5sums=(/\0SKIP /" \
|
-e "/^md5sums=(/s/^md5sums=(/\0SKIP /" \
|
||||||
-e "/^build() {/,/}/{" \
|
-e "/^build() {/,/}/{" \
|
||||||
-e "/^[[:space:]]*cd/{" \
|
-e "/^[[:space:]]*cd/{" \
|
||||||
-e "a cat ../$patchName | patch --strip 1 --forward --merge" \
|
-e "a cat ../$patchName | patch --strip 1 --forward --merge" \
|
||||||
|
-e "}" \
|
||||||
-e "}" \
|
-e "}" \
|
||||||
-e "}" \
|
PKGBUILD
|
||||||
PKGBUILD
|
|
||||||
|
|
||||||
makepkg --noconfirm -si --force
|
makepkg --noconfirm -si --force
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
end
|
||||||
|
|
||||||
|
rm -rf "$contextRoot"
|
||||||
end
|
end
|
||||||
|
|
||||||
rm -rf "$contextRoot"
|
|
||||||
configureSW
|
configureSW
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue