Added PyQt5 and dependancies

This commit is contained in:
dslm4515
2022-04-21 17:02:54 -05:00
parent 112a29533a
commit fb12d6f020
10 changed files with 405 additions and 0 deletions

View File

@ -0,0 +1,37 @@
#! /bin/bash
# Packaging
# Source: https://files.pythonhosted.org/packages/source/p/packaging/packaging-21.3.tar.gz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: parsing six
# Recommended: NONE
# Optional: NONE
read -p "Compile?" && python3 setup.py build && \
sudo -S python3 setup.py install --skip-build --root=$BUILD --optimize=1 &&
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------------------------------------------------------|
packaging:
packaging:
packaging: Core utilities for Python3 packages
packaging:
packaging: https://pypi.python.org/pypi/packaging
packaging:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/packaging-21.3-$(uname -m)-mlfs.txz &&
sudo -S rm -rf ${BUILD}/*

37
build-scripts/ply.build Normal file
View File

@ -0,0 +1,37 @@
#! /bin/bash
# Ply
# Source: https://github.com/dabeaz/ply/archive/3.11.tar.gz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: parsing six
# Recommended: NONE
# Optional: NONE
read -p "Compile?" && python3 setup.py build && \
sudo -S python3 setup.py install --skip-build --root=$BUILD --optimize=1 &&
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------------------------------------------------------|
ply: ply
ply:
ply: Python Lex & Yacc
ply:
ply: https://www.dabeaz.com/ply/
ply:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/ply-3.11-$(uname -m)-mlfs.txz &&
sudo -S rm -rf ${BUILD}/*

View File

@ -0,0 +1,37 @@
#! /bin/bash
# PyParsing
# Source: https://files.pythonhosted.org/packages/source/p/pyparsing/pyparsing-2.4.7.tar.gz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: NONE
# Recommended: NONE
# Optional: NONE
read -p "Compile?" && python3 setup.py build && \
sudo -S python3 setup.py install --skip-build --root=$BUILD --optimize=1 &&
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------------------------------------------------------|
pyparsing: pyparsing
pyparsing:
pyparsing: An object-oriented approach to text processing
pyparsing:
pyparsing: https://github.com/pyparsing/pyparsing
pyparsing:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/pyparsing-2.4.7-$(uname -m)-mlfs.txz &&
sudo -S rm -rf ${BUILD}/*

View File

@ -0,0 +1,37 @@
#! /bin/bash
# PyQt-builder
# Source: https://pypi.python.org/packages/source/P/PyQt-builder/PyQt-builder-1.12.2.tar.gz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: NONE
# Recommended: NONE
# Optional: NONE
read -p "Compile?" && python3 setup.py build && \
sudo -S python3 setup.py install --skip-build --root=$BUILD --optimize=1 && \
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------------------------------------------------------|
pyqt-builder: pyqt-builder
pyqt-builder:
pyqt-builder: The PEP 517 compliant PyQt build system
pyqt-builder:
pyqt-builder: https://www.riverbankcomputing.com/software/pyqt-builder/
pyqt-builder:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/pyqt-builder-1.12.2-$(uname -m)-mlfs.txz &&
sudo -S rm -rf ${BUILD}/*

View File

@ -0,0 +1,37 @@
#! /bin/bash
# pyqt5-sip
# Source: https://pypi.python.org/packages/source/P/PyQt5-sip/PyQt5_sip-12.9.0.tar.gz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: python3 setuptools(python module)
# Recommended: NONE
# Optional: NONE
read -p "Compile?" && python3 setup.py build &&
sudo -S python3 setup.py install --prefix=/usr --root=${BUILD} &&
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------------------------------------------------------|
pyqt5-sip: pyqt5-sip
pyqt5-sip:
pyqt5-sip: The sip module support for PyQt5
pyqt5-sip:
pyqt5-sip: https://riverbankcomputing.com/software/sip
pyqt5-sip:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/pyqt5-sip-12.9.0-$(uname -m)-mlfs.txz &&
sudo -S rm -rf ${BUILD}/*

45
build-scripts/pyqt5.build Normal file
View File

@ -0,0 +1,45 @@
#! /bin/bash
# PyQt5
# Source: https://pypi.python.org/packages/source/P/PyQt5/PyQt5-5.15.6.tar.gz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: pyqt5-sip sip libx11 pypyqt-builder
# Required: qt5-qtbase qt5-qtconnectivity qt5-qtdeclarative qt5-qtmultimedia
# Required: qt5-qtserialport qt5-qtsvg qt5-qttools qt5-qtwebchannel
# Required: qt5-qtwebsockets qt5-qtx11extras
# Recommended: dbus-python
# Optional: NONE
sed -i '/target_config.dbus_inc_dirs = \[\]/d' configure.py
sip-build --confirm-license --qmake /opt/qt5/bin/qmake \
--api-dir /opt/qt5/qsci/api/python --no-make && \
read -p "Compile?" && make -j2 -C build &&
sudo -S make DESTDIR=$BUILD INSTALL_ROOT=$BUILD -C build install -j1 &&
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------------------------------------------------------|
pyqt5: PyQt5
pyqt5:
pyqt5: A set of Python 3 bindings for the Qt toolkit
pyqt5:
pyqt5: https://www.riverbankcomputing.com/software/pyqt
pyqt5:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/pyqt5-5.15.6-$(uname -m)-mlfs.txz &&
sudo -S rm -rf ${BUILD}/*

View File

@ -0,0 +1,50 @@
#! /bin/bash
# Qt5-QtConnectivity
# Source: https://invent.kde.org/qt/qt/qtconnectivity/-/archive/69a87a9b831e36a578594a0a13130c384ad03121/qtconnectivity-69a87a9b831e36a578594a0a13130c384ad03121.tar.gz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: qt5-qtbase qt5-qtdeclarative bluez
# Recommended: NONE
# Optional: NONE
# Per Alpine Linux
# We need to make the build system think we're running in a
# git repository.
# so it correctly symlinks during the build
mkdir .git
qmake-qt5 && \
read -p "Compile?" && make -j2 &&
sudo -S make INSTALL_ROOT=$BUILD install && \
sudo ln -sv qt5-5.15.3 $BUILD/opt/qt5 && \
# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
find "$BUILD/opt/qt5/lib" -type f -name '*.prl' \
-exec sudo sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
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------------------------------------------------------|
qt5-qtconnectivity: qt5-qtconnectivity
qt5-qtconnectivity:
qt5-qtconnectivity: QT5 Connectivity Compontents
qt5-qtconnectivity:
qt5-qtconnectivity: https://www.qt.io/developers/
qt5-qtconnectivity:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/qt5-qtconnectivity-5.15.3_git20201027-$(uname -m)-mlfs.txz &&
sudo -S rm -rf ${BUILD}/*

View File

@ -0,0 +1,50 @@
#! /bin/bash
# Qt5-QtSerialPort
# Source: https://invent.kde.org/qt/qt/qtserialport/-/archive/941d1d8560d1f3e40077c251fbde6fd6a5b0f0d4/qtserialport-941d1d8560d1f3e40077c251fbde6fd6a5b0f0d4.tar.gz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: qt5-qtbase
# Recommended: NONE
# Optional: NONE
# Per Alpine Linux
# We need to make the build system think we're running in a
# git repository.
# so it correctly symlinks during the build
mkdir .git
qmake-qt5 && \
read -p "Compile?" && make -j2 &&
sudo -S make INSTALL_ROOT=$BUILD install && \
sudo ln -sv qt5-5.15.3 $BUILD/opt/qt5 && \
# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
find "$BUILD/opt/qt5/lib" -type f -name '*.prl' \
-exec sudo sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
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------------------------------------------------------|
qt5-qtserialport: qt5-qtserialport
qt5-qtserialport:
qt5-qtserialport: QT5 QtSerialPort Module
qt5-qtserialport:
qt5-qtserialport: https://www.qt.io/developers/
qt5-qtserialport:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/qt5-qtserialport-5.15.3_git20201028-$(uname -m)-mlfs.txz &&
sudo -S rm -rf ${BUILD}/*

38
build-scripts/sip.build Normal file
View File

@ -0,0 +1,38 @@
#! /bin/bash
# Sip
# Source: https://pypi.python.org/packages/source/s/sip/sip-6.6.1.tar.gz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: packaging pytoml ply (all python modules)
# Recommended: setuptools (python module)
# Optional: NONE
read -p "Compile?" && python3 setup.py build && \
sudo -S python3 setup.py install --skip-build --root=$BUILD --optimize=1 &&
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------------------------------------------------------|
sip: sip
sip:
sip: A tool that makes it easy to create Python bindings for C and C++
sip: libraries
sip:
sip: http://www.riverbankcomputing.com/software/sip/
sip:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/sip-6.6.1-$(uname -m)-mlfs.txz &&
sudo -S rm -rf ${BUILD}/*

37
build-scripts/toml.build Normal file
View File

@ -0,0 +1,37 @@
#! /bin/bash
# PyTOML
# Source: https://files.pythonhosted.org/packages/source/t/toml/toml-0.10.2.tar.gz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: NONE
# Recommended: NONE
# Optional: NONE
read -p "Compile?" && python3 setup.py build && \
sudo -S python3 setup.py install --skip-build --root=$BUILD --optimize=1 &&
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------------------------------------------------------|
pytoml: pytoml
pytoml:
pytoml: Python3 library for TOML
pytoml:
pytoml: https://github.com/uiri/toml
pytoml:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/pytoml-0.10.2-$(uname -m)-mlfs.txz &&
sudo -S rm -rf ${BUILD}/*