mirror of
https://github.com/dslm4515/BMLFS.git
synced 2025-08-01 19:42:55 +00:00
54 lines
1.9 KiB
Bash
54 lines
1.9 KiB
Bash
#! /bin/bash
|
|
|
|
# Wayland-Protocols
|
|
# Source: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/releases/1.45/downloads/wayland-protocols-1.45.tar.xz
|
|
#
|
|
# $BUILD = Directory to temporarily install
|
|
# $PKGS = Directory to store built packages
|
|
#
|
|
# DEPS
|
|
# Required: Wayland
|
|
# Recommended: NONE
|
|
# Optional: NONE
|
|
|
|
# If optimizing, use these flags
|
|
export CFLAGS="-march=native -mtune=native -pipe "
|
|
export CFLAGS+="-O3 -ffat-lto-objects -flto=4 "
|
|
export CXXFLAGS=$CFLAGS
|
|
export LDFLAGS="-flto=4 -Wl,-O2 -Wl,--as-needed "
|
|
|
|
export PVER="1.45"
|
|
|
|
meson setup --prefix=/usr OUT && \
|
|
|
|
read -p "Compile?" && ninja -C OUT -j2 &&
|
|
|
|
sudo -S DESTDIR=$BUILD ninja -C OUT 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------------------------------------------------------|
|
|
wayland-protocols: wayland-protocols (extended Wayland protocols)
|
|
wayland-protocols:
|
|
wayland-protocols: wayland-protocols contains Wayland protocols that add functionality
|
|
wayland-protocols: not available in the Wayland core protocol. Such protocols either add
|
|
wayland-protocols: completely new functionality, or extend the functionality of some
|
|
wayland-protocols: other protocol either in Wayland core or in wayland-protocols.
|
|
wayland-protocols:
|
|
wayland-protocols: Homepage: https://wayland.freedesktop.org/
|
|
wayland-protocols:
|
|
wayland-protocols:
|
|
wayland-protocols:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ &&
|
|
sudo -S makepkg -l y -c n $PKGS/wayland-protocols-$PVER-$NOPSUFFIX &&
|
|
sudo -S rm -rf ${BUILD}/*
|
|
|