repo/extra/mpv/build

34 lines
658 B
Plaintext
Raw Normal View History

2019-08-04 21:07:28 +00:00
#!/bin/sh -e
2021-08-22 15:37:53 +00: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 13:53:27 +00:00
python waf/waf configure \
2019-08-04 21:07:28 +00:00
--prefix=/usr \
--mandir=/usr/share/man \
--confdir=/etc/mpv \
2021-07-08 09:25:54 +00:00
--enable-alsa \
--enable-wayland \
--disable-x11
2019-08-04 21:07:28 +00:00
2021-08-25 13:53:27 +00:00
python waf/waf build
python waf/waf install --destdir="$1"
2021-07-12 01:02:05 +00:00
rm -rf \
"$1/usr/share/zsh" \
"$1/usr/share/bash-completion"