mirror of
https://github.com/dslm4515/BMLFS.git
synced 2025-08-06 11:02:53 +00:00
54 lines
1.7 KiB
Bash
54 lines
1.7 KiB
Bash
#! /bin/bash
|
|
|
|
# libde265
|
|
# Source: https://github.com/strukturag/libde265/releases/download/v1.0.8/libde265-1.0.8.tar.gz
|
|
#
|
|
# $BUILD = Directory to temporarily install
|
|
# $PKGS = Directory to store built packages
|
|
#
|
|
# DEPS
|
|
# Required: NONE
|
|
# Recommended: NONE
|
|
# Optional: NONE
|
|
|
|
patch -Np1 -i ../patches/libde265-alpine/disable_tools.patch &&
|
|
patch -Np1 -i ../patches/libde265-alpine/export-only-decoder-api.patch &&
|
|
|
|
autoreconf -fvi
|
|
|
|
export CPPFLAGS="${CPPFLAGS/-Os/-O2}" &&
|
|
export CXXFLAGS="${CXXFLAGS/-Os/-O2}" &&
|
|
|
|
./configure --prefix=/usr \
|
|
--disable-sherlock265 $BUILDTRUPLE &&
|
|
|
|
read -p "Compile?" && make -j2 &&
|
|
|
|
sudo -S make DESTDIR=$BUILD install &&
|
|
|
|
cd $BUILD && sudo -S mkdir -v ${BUILD}/install &&
|
|
cat > /tmp/slack-desc << "EOF"
|
|
# HOW TO EDIT THIS FILE:
|
|
# The "handy ruler" below makes it easier to edit a package description. Line
|
|
# up the first '|' above the ':' following the base package name, and the '|'
|
|
# on the right side marks the last column you can put a character in. You must
|
|
# make exactly 11 lines for the formatting to be correct. It's also
|
|
# customary to leave one space after the ':' except on otherwise blank lines.
|
|
|
|
|-----handy-ruler------------------------------------------------------|
|
|
libde265: libde265 (open h.265 codec implementation)
|
|
libde265:
|
|
libde265:
|
|
libde265: libde265 is an open source implementation of the h.265 video codec.
|
|
libde265: It is written from scratch and has a plain C API to enable a simple
|
|
libde265: integration into other software.
|
|
libde265:
|
|
libde265:
|
|
libde265: Homepage: https://github.com/strukturag/libde265
|
|
libde265:
|
|
libde265:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ &&
|
|
sudo -S makepkg -l y -c n $PKGS/libde265-1.0.8-$(uname -m)-mlfs.txz &&
|
|
sudo -S rm -rf ${BUILD}/*
|