Package Details: battop 0.2.4-2

Git Clone URL: https://aur.archlinux.org/battop.git (read-only, click to copy)
Package Base: battop
Description: Interactive batteries viewer
Upstream URL: https://github.com/svartalf/rust-battop
Keywords: battery monitoring
Licenses: MIT, Apache
Submitter: svartalf_info
Maintainer: OctopusET
Last Packager: OctopusET
Votes: 10
Popularity: 0.45
First Submitted: 2019-03-13 20:23 (UTC)
Last Updated: 2021-10-11 16:06 (UTC)

Required by (0)

Sources (1)

Latest Comments

begin-theadventu commented on 2024-03-21 16:35 (UTC)

@OctopusET Hello, could you please consider my PKGBUILD version? (password: pkgbuild)

OctopusET commented on 2022-07-31 07:12 (UTC)

@butla I can't reproduce this issue, could you tell me how you build and what rust version are you using?

butla commented on 2022-07-25 18:31 (UTC)

I see that the PKGBUILD has the fix for setting "battery" to version 0.7.5, but it's still failing for me.

error: failed to get `battery` as a dependency of package `battop v0.2.4 (/var/cache/private/pamac/battop/src/rust-battop-0.2.4)`

Caused by:
  failed to load source for dependency `battery`

Caused by:
  Unable to update registry `crates-io`

Caused by:
  failed to create directory `/.cargo/registry/index/github.com-1ecc6299db9ec823`

Caused by:
  Read-only file system (os error 30)

Looks like it's trying to create a directory for the Rust lib in a weird place, that should probably be prefixed with $HOME - /.cargo/registry/

OctopusET commented on 2021-10-11 16:07 (UTC)

Build error is now fixed. Thanks @arglebargle

allexj commented on 2021-09-27 17:04 (UTC)

following @arglebargle comment, it works. I just had to do yat --editmenu -S battop and edit PKGBUILD as @arglebargle suggests

arglebargle commented on 2021-05-21 12:54 (UTC)

Just a heads up, 0.2.4-1 fails to build now thanks to changes in either the battery or uom crates.

Bumping to battery >= 0.7.5 will get the build moving again:

diff --git a/PKGBUILD b/PKGBUILD
index e696128..c4bf378 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,8 +14,11 @@ sha512sums=('f5744a8ddcfe09f2547494d2a6e1b184b967c5e4439c7bd3d74e47a1579dc86192a

 build() {
   cd "rust-$pkgname-$pkgver"
+  
+  # build fails with battery crate version < 0.7.5
+  sed -i 's/battery = "^0.7"/battery = "^0.7.5"/' Cargo.toml

-  cargo build --release --locked
+  cargo build --release
 }

 package_battop() {

simona commented on 2020-08-03 11:47 (UTC)

error: no override and no default toolchain set