Package Details: surface-control 0.4.1-2

Git Clone URL: (read-only, click to copy)
Package Base: surface-control
Description: Control various aspects of Microsoft Surface devices from the Command-Line
Upstream URL:
Licenses: MIT
Submitter: qzed
Maintainer: qzed
Last Packager: qzed
Votes: 1
Popularity: 0.000000
First Submitted: 2019-09-08 21:41
Last Updated: 2021-10-10 23:11

Latest Comments

QuaverFace commented on 2021-11-01 13:13

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

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

And1G commented on 2021-10-10 22:16

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 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: I hope this helps!