Please remove the v
from the tag with s/^v//
:
pkgver() {
cd "$srcdir/${pkgname%-git}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
Git Clone URL: | https://aur.archlinux.org/auto-cpufreq-git.git (read-only, click to copy) |
---|---|
Package Base: | auto-cpufreq-git |
Description: | Automatic CPU speed & power optimizer |
Upstream URL: | https://github.com/AdnanHodzic/auto-cpufreq |
Licenses: | LGPL-3.0 |
Conflicts: | auto-cpufreq |
Provides: | auto-cpufreq |
Submitter: | crian |
Maintainer: | crian |
Last Packager: | crian |
Votes: | 19 |
Popularity: | 0.030934 |
First Submitted: | 2020-01-07 09:54 (UTC) |
Last Updated: | 2022-10-21 14:32 (UTC) |
Please remove the v
from the tag with s/^v//
:
pkgver() {
cd "$srcdir/${pkgname%-git}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
inxi
is also required with the --debug
flag.
This no longer requires python-power
, see this commit.
I had to tweak a few things, see my updated PKGBUILD.
@Asutorufa fixed
@Asutorufa: That's not necessary. Just use sed
to change the path:
prepare() {
cd "$srcdir/${pkgname%-git}"
sed -i 's|usr/local|usr|g' "scripts/${pkgname%-git}.service"
}
cant start with systemctl, the /usr/local/bin/auto-cpufreq
not exists, please add a link ln -s /usr/bin/auto-cpufreq /usr/local/bin/auto-cpufreq
.
Fixed :D
You forgot to run makepkg -o
at to generate the pkgver
. ;)
Thanks. Done.
python-setuptools
should be added to makedepends()
.
Tags are now available, please follow VCS package guidelines:
pkgver() {
cd "$srcdir/${pkgname%-git}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
1.1.r0.gabe463c
Please also install the service in /usr/lib/systemd/system/
as symlinks will be created in /etc/systemd/system/
when the service is enabled.
Pinned Comments
OlexandrCh commented on 2020-08-13 20:44 (UTC) (edited on 2020-08-13 20:44 (UTC) by OlexandrCh)
Currently, we don't need to run
--install
on AURAfter installing from AUR, we need to start the systemd service.
systemctl enable auto-cpufreq
systemctl start auto-cpufreq
and check if it
enabled
andrunning
withsystemctl status auto-cpufreq