Thanks for the help! I'm still running into issues with the installation. As I'm new to the AUR, please bear with me if I've missed something obvious.
I figured out the reason of test/test_08_service.py error. sfmc requries it installed to run the tests. According to Archwiki, I tried this snippet and it works:
build() {
cd "$pkgname-$pkgver"
python -m build --wheel --no-isolation
}
check() {
cd "${pkgname}-${pkgver}"
python -m venv --system-site-packages test-env
test-env/bin/python -m installer dist/*.whl
test-env/bin/python -P -m pytest
}
The package() seems to follow the old file structure but upstream has changed some of them. Such as smfc.conf now in config/ not src/, smfc.py doesn't exist. Here is a modified package() for your reference:
install -o root -g root -Dm644 modules-load.conf "${pkgdir}/etc/smfc/smfc.conf"
cd "${pkgname}-${pkgver}"
install -o root -g root -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -o root -g root -Dm755 config/smfc.conf "${pkgdir}/etc/smfc/smfc.conf"
install -o root -g root -Dm644 config/smfc.service "${pkgdir}/etc/systemd/system/smfc.service"
install -o root -g root -Dm644 config/smfc "${pkgdir}/etc/default/smfc"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 doc/smfc.1 "$pkgdir/usr/share/man/man1/smfc.1"
Pinned Comments
urirocky commented on 2026-01-19 04:31 (UTC)
Hello Everyone, I will become the maintainer of the Package, Im am very new to this so any help would be appreciated, I do own an x10 to help test out bugs, otherwise expect an update in the near future