Files
BMLFS/build-scripts/dbus-python.build
2022-04-21 16:14:08 -05:00

50 lines
1.6 KiB
Bash

#! /bin/bash
# D-Bus Python
# Source: https://dbus.freedesktop.org/releases/dbus-python/dbus-python-1.2.18.tar.gz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: DBus, GLib
# Recommended: PyGobject 3
# Optional: Python 2
# BLFS has been build enough times withut python2.
#mkdir python2 &&
#pushd python2 &&
#PYTHON=/usr/bin/python2 \
#../configure --prefix=/usr --disable-documentation &&
#make -j2 &&
#popd &&
mkdir python3 &&
pushd python3 &&
PYTHON=/usr/bin/python3 \
../configure --prefix=/usr --docdir=/usr/share/doc/dbus-python-1.2.18 &&
make -j2 &&
popd &&
#sudo -S make DESTDIR=$BUILD -C python2 install &&
sudo -S make DESTDIR=$BUILD -C python3 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------------------------------------------------------|
dbus-python: dbus-python (Python bindings for dbus)
dbus-python:
dbus-python: This package includes the glib bindings for the dbus IPC library.
dbus-python:
dbus-python:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/dbus-python-1.2.18-$(uname -m)-mlfs.txz &&
sudo -S rm -rf ${BUILD}/*