forked from speedie/spmenu
Fix some issues with the make script
This commit is contained in:
parent
f6e34668cf
commit
260f570df5
|
@ -18,7 +18,7 @@ static=${static:-false}
|
|||
|
||||
clean() {
|
||||
clean_headers
|
||||
rm -rf ./*.zst* ./*.tar* ./*.sig* spmenu-*.PKGBUILD spmenu-*.ebuild build/
|
||||
rm -rf ./*.zst* ./*.tar* ./*.sig* *.PKGBUILD *.ebuild build/
|
||||
}
|
||||
|
||||
check_correct_dir() {
|
||||
|
@ -169,6 +169,9 @@ gen_pkg() {
|
|||
}
|
||||
|
||||
gen_gentoo_pkg() {
|
||||
[ "$(id -u)" = "0" ] && printf "Do not run as root.\n" && exit 1
|
||||
version="$(grep "version : '" meson.build | awk '{ print $3 }' | sed "s/'\"//g; s/\"',//g")"
|
||||
|
||||
if [ -f "packaging/spmenu.ebuild" ]; then
|
||||
cp packaging/spmenu.ebuild spmenu-${version}.ebuild
|
||||
|
||||
|
|
Loading…
Reference in a new issue