Package Details: surface-control 0.4.6-3

Git Clone URL: https://aur.archlinux.org/surface-control.git (read-only, click to copy)
Package Base: surface-control
Description: Control various aspects of Microsoft Surface devices from the Command-Line
Upstream URL: https://github.com/linux-surface/surface-control
Licenses: MIT
Submitter: qzed
Maintainer: qzed
Last Packager: qzed
Votes: 2
Popularity: 0.000023
First Submitted: 2019-09-08 21:41 (UTC)
Last Updated: 2024-03-14 22:14 (UTC)

Latest Comments

qzed commented on 2022-04-26 03:14 (UTC)

@QuaverFace Sorry for the delay. I think adding the RUSTUP_TOOLCHAIN="stable" makes sense to ensure we don't run into any issues with new nightly/beta changes, so I've done that now.

QuaverFace commented on 2021-11-01 13:13 (UTC) (edited on 2021-11-01 13:15 (UTC) by QuaverFace)

I had to change this: env CARGO_TARGET_DIR="target" CARGO_INCREMENTAL=0 cargo build --release --locked

to this: env CARGO_TARGET_DIR="target" CARGO_INCREMENTAL=0 RUSTUP_TOOLCHAIN="stable" cargo build --release --locked

qzed commented on 2021-10-10 23:14 (UTC) (edited on 2021-10-10 23:44 (UTC) by qzed)

Thanks for the bug-report and suggestions! I've applied them.

And1G commented on 2021-10-10 22:16 (UTC)

Building in a clean chroot fails with:

==> ERROR: Cannot find the git package needed to handle git sources.
==> ERROR: Build failed, check /var/lib/archbuild/staging-x86_64/andi/build

Adding 'git' to the makedepends (bit I think this is not the best solution for this, see end of the comment) leads to:

error: failed to run custom build command for `libudev-sys v0.1.4`

The library file libudev.so is part of the package systemd-libs, but the pkgconf file /usr/lib/pkgconfig/libudev.pc needed for building is provided by the package systemd. So makedepends needs systemd instead of systemd-libs:

makedepends=('rust' 'cargo' 'systemd')

or if you really need git:

makedepends=('rust' 'cargo' 'systemd' 'git')

I have also replaced downloading the git repository with downloading a snapshot. It looks like it downloads the entire repository and checks out to the selected tag. This is not neccessary, as Github provides snapshot archives of each tag. From what I see, this is the usual way to download sources from Github with PKGBUILD files. Here is the diff to your PKGBUILD: https://pastebin.com/M3hcVAsD I hope this helps!