Hallo zusammen,
ich habe ein Programm
heed, welches aus einer Python-Skripten und einer zugehörigen Python-Bibliothek besteht.
Dies möchte ich gerne aus einem Git-Repository mittels ABS als Split-Package für die Pakete
heed (Skripte, Binaries, Config) und
python-heed (Python-Bibliothek / Module) aus einer PKGBUILD bauen.
Das klappt per se zwar erstmal, aber leider weis ich nicht, wie ich in der PKGBUILD eintrage, dass
heed von
python-heed abhängt aber nicht andersherum.
Hier meine aktuelle PKGBUILD:
#
# HOMEINFO's Enhanced Exposé Daemon
#
pkgname=('python-heed' 'heed')
pkgver='9.0.0'
pkgrel=1
pkgdesc="HOMEINFO's Enhanced Exposé Daemon"
arch=('any')
license=('GPL3')
groups=('homeinfo' 'digsig')
depends=('rsync' 'python' 'python-docopt' 'python-urllib3' 'python-pyqt4' 'python-pyzmq' 'python-homeinfo>=2.2.2' 'python-openimmo' 'xorg-xset' 'scrot')
backup=('etc/heed.conf')
pkgdir='pkg'
srcdir='src'
install='heed.install'
changelog='ChangeLog'
# Package python-heed
package_python-heed() {
local PYTHON="/usr/bin/env python3"
local USR_PATH="${pkgdir}/usr"
# Create misc. file path
mkdir -p "${USR_PATH}"
# Clean up build dir
cd ${srcdir}
make clean || true
# Install python packages to $pkgdir
${PYTHON} ./setup.py install --prefix ${USR_PATH}
# Make directories accessible for anyone
find "${USR_PATH}" -type d -exec chmod 755 {} \;
# Make library files accessible for anyone
find "${USR_PATH}" -type f -exec chmod 644 {} \;
}
# Package heed
package_heed() {
# Install configuration
install -d -m 755 "${pkgdir}/etc"
install -m 644 "${srcdir}/files/heed.conf" "${pkgdir}/etc/"
# Install binaries
install -d -m 755 "${pkgdir}/usr/bin"
install -m 755 "${srcdir}/files/heed" "${pkgdir}/usr/bin/"
install -m 755 "${srcdir}/files/heedctl" "${pkgdir}/usr/bin/"
# Install systemd units
install -d -m 755 "${pkgdir}/usr/lib/systemd/system"
install -m 644 "${srcdir}/files/heed.service" "${pkgdir}/usr/lib/systemd/system/"
# Install home directory files and folders
local HEED_HOME="/var/lib/heed"
install -d -m 700 "${pkgdir}${HEED_HOME}"
# XXX: Mode of ~/.ssh must be 700
install -d -m 700 "${pkgdir}${HEED_HOME}/.ssh"
install -m 644 "${srcdir}/files/authorized_keys" "${pkgdir}${HEED_HOME}/.ssh/"
install -m 600 "${srcdir}/files/vncpasswd" "${pkgdir}${HEED_HOME}/"
# Install cache directory
install -d -m 755 "${pkgdir}/var/lib/digsig"
# Install sudoers file for HEED
#install -d -m 750 "${pkgdir}/etc/sudoers.d"
#install -m 640 "${srcdir}/files/heed.sudo" "${pkgdir}/etc/sudoers.d/heed"
}
Wie bekomme ich nun die geforderten Dependencies hin, ohne dass
makepkg beim Bau meckert, dass
python-heed noch nicht installiert sei?