33 lines
696 B
Bash
Executable File
33 lines
696 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
prefix=
|
|
opts=()
|
|
|
|
while true; do
|
|
case "$1" in
|
|
--prefix=*)
|
|
opts+=("$1")
|
|
eval "prefix=${1##--prefix=}"
|
|
shift
|
|
;;
|
|
*)
|
|
break
|
|
;;
|
|
esac
|
|
done
|
|
|
|
opts+=("$@")
|
|
|
|
: ${prefix:="/usr"}
|
|
|
|
python3 setup.py install --optimize=1 "${opts[@]}"
|
|
mkdir -p $prefix/share/pixmaps/ $prefix/share/applications/
|
|
cp nwg-panel.svg $prefix/share/pixmaps/
|
|
cp nwg-shell.svg $prefix/share/pixmaps/
|
|
cp nwg-processes.svg $prefix/share/pixmaps/
|
|
cp nwg-panel-config.desktop $prefix/share/applications/
|
|
cp nwg-processes.desktop $prefix/share/applications/
|
|
|
|
install -Dm 644 -t "/usr/share/licenses/nwg-panel" LICENSE
|
|
install -Dm 644 -t "/usr/share/doc/nwg-panel" README.md
|