Files
BMLFS/build-scripts/oxygen-icons5.build
2023-10-31 19:10:49 -05:00

51 lines
1.5 KiB
Bash

#! /bin/bash
# Oxygen icons
# Source: https://download.kde.org/stable/frameworks/5.109/oxygen-icons5-5.109.0.tar.xz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: cmake-extra qt5
# Recommended: NONE
# Optional: qt6
sed -i '/( oxygen/ s/)/scalable )/' CMakeLists.txt
mkdir build &&
cd build &&
# If building against Qt6, add -DQT_MAJOR_VERSION=6
cmake -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev ..
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------------------------------------------------------|
oxygen-icons5: oxygen-icons5 (Oxygen theme for KDE)
oxygen-icons5:
oxygen-icons5: Oxygen provides a complete and modern icon theme for KDE.
oxygen-icons5:
oxygen-icons5:
oxygen-icons5:
oxygen-icons5:
oxygen-icons5:
oxygen-icons5:
oxygen-icons5:
oxygen-icons5:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/oxygen-icons5-5.109.0-$NOPSUFFIX &&
sudo -S rm -rf ${BUILD}/*