2020-09-17 16:02:24 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
DIR=$(readlink -f $(dirname $0))
|
|
|
|
. $DIR/../env.sh
|
|
|
|
|
2020-09-18 04:16:15 +00:00
|
|
|
PICOM_VER=v8.1
|
2020-09-17 16:02:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
# install ranger
|
|
|
|
case "$PM" in
|
|
|
|
apt)
|
|
|
|
# install build tools
|
|
|
|
! which pip3 && $ROOT/python/install.sh
|
2020-09-18 04:16:15 +00:00
|
|
|
sudo pip3 install meson
|
2020-09-17 16:02:24 +00:00
|
|
|
# install dependencies
|
2020-09-18 04:16:15 +00:00
|
|
|
sudo apt install -y ninja-build libxext-dev libxcb1-dev libxcb-damage0-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-render-util0-dev libxcb-render0-dev libxcb-randr0-dev libxcb-composite0-dev libxcb-image0-dev libxcb-present-dev libxcb-xinerama0-dev libxcb-glx0-dev libpixman-1-dev libdbus-1-dev libconfig-dev libgl1-mesa-dev libpcre3-dev libevdev-dev uthash-dev libev-dev libx11-xcb-dev
|
2020-09-17 16:02:24 +00:00
|
|
|
# download picom source
|
|
|
|
[ ! -f /tmp/picom.tar.gz ] && \
|
|
|
|
curl -L https://github.com/yshui/picom/archive/v8.1.tar.gz --output /tmp/picom.tar.gz
|
|
|
|
# build and install
|
|
|
|
mkdir -p /tmp/picom
|
|
|
|
tar zxvf /tmp/picom.tar.gz --strip 1 -C /tmp/picom
|
|
|
|
pushd /tmp/picom
|
2020-09-18 04:16:15 +00:00
|
|
|
#git submodule update --init --recursive
|
2020-09-17 16:02:24 +00:00
|
|
|
meson --buildtype=release . build
|
2020-09-18 04:16:15 +00:00
|
|
|
sudo ninja -C build install
|
|
|
|
popd
|
2020-09-17 16:02:24 +00:00
|
|
|
;;
|
|
|
|
pacman)
|
|
|
|
sudo pacman -S picom
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# symlink configuration
|
2020-09-18 04:16:15 +00:00
|
|
|
lnsf $DIR/config ~/.config/picom
|