2019-08-04 15:07:28 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2021-08-22 09:37:53 -06:00
|
|
|
# Setup docutils to generate manual pages.
|
|
|
|
{
|
|
|
|
cd docutils
|
|
|
|
|
|
|
|
python3 setup.py build
|
|
|
|
python3 setup.py install \
|
|
|
|
--root="$PWD/../dist"
|
|
|
|
|
|
|
|
cd ../dist/usr/lib/python*/site-packages
|
|
|
|
|
|
|
|
PYTHONPATH=$PWD:$(python -c "import sys;print(':'.join(sys.path))")
|
|
|
|
|
|
|
|
cd -; cd ..
|
|
|
|
export PATH=$PWD/dist/usr/bin:$PATH
|
|
|
|
export PYTHONPATH
|
|
|
|
}
|
|
|
|
|
2021-08-25 07:53:27 -06:00
|
|
|
python waf/waf configure \
|
2019-08-04 15:07:28 -06:00
|
|
|
--prefix=/usr \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--confdir=/etc/mpv \
|
2021-07-08 03:25:54 -06:00
|
|
|
--enable-alsa \
|
|
|
|
--enable-wayland \
|
|
|
|
--disable-x11
|
2019-08-04 15:07:28 -06:00
|
|
|
|
2021-08-25 07:53:27 -06:00
|
|
|
python waf/waf build
|
|
|
|
python waf/waf install --destdir="$1"
|
2021-07-11 19:02:05 -06:00
|
|
|
|
|
|
|
rm -rf \
|
|
|
|
"$1/usr/share/zsh" \
|
|
|
|
"$1/usr/share/bash-completion"
|