mpv: update build
This commit is contained in:
parent
85a8e7a500
commit
9968c55fe1
|
@ -6,31 +6,21 @@ version=0.37.0
|
|||
release=1
|
||||
source="https://github.com/mpv-player/mpv/archive/v$version/$name-$version.tar.gz
|
||||
libplacebo.wrap "
|
||||
build_type="meson_build"
|
||||
build_opt="--wrap-mode=forcefallback --force-fallback-for=libplacebo \
|
||||
-Dalsa=enabled -Dlibarchive=enabled -Dlibmpv=true -Dtests=false \
|
||||
-Dvulkan=disabled -Dwayland=enabled -Dx11=disabled -Dlua=luajit"
|
||||
|
||||
build() {
|
||||
# wrap libplacebo
|
||||
mkdir -pv $name-$version/subprojects/
|
||||
install -Dm755 $SRC/libplacebo.wrap -t $name-$version/subprojects/
|
||||
|
||||
venom-meson $name-$version build \
|
||||
--wrap-mode=forcefallback \
|
||||
--force-fallback-for=libplacebo \
|
||||
-Dalsa=enabled \
|
||||
-Dlibarchive=enabled \
|
||||
-Dlibmpv=true \
|
||||
-Dtests=false \
|
||||
-Dvulkan=disabled \
|
||||
-Dwayland=enabled \
|
||||
-Dx11=disabled \
|
||||
-Dlua=luajit
|
||||
meson compile -C build
|
||||
DESTDIR=$PKG meson install --no-rebuild -C build
|
||||
pre_build() {
|
||||
mkdir subprojects/
|
||||
install -Dm755 $SRC/libplacebo.wrap -t subprojects/
|
||||
}
|
||||
|
||||
post_build() {
|
||||
rm -f $PKG/usr/bin/plplay
|
||||
rm -rf $PKG/usr/include/libplacebo
|
||||
rm -rf $PKG/usr/lib/pkgconfig/libplacebo*
|
||||
rm -rf $PKG/usr/share/bash*
|
||||
rm -rf $PKG/usr/share/zsh*
|
||||
rm -rf $PKG/usr/share/icons*
|
||||
rm -f $PKG/usr/bin/plplay
|
||||
rm -rf $PKG/usr/include/libplacebo
|
||||
#rm -rf $PKG/usr/lib/libplacebo*
|
||||
rm -rf $PKG/usr/lib/pkgconfig/libplacebo*
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue