Added nfancurve.
This commit is contained in:
36
nfancurve/PKGBUILD
Normal file
36
nfancurve/PKGBUILD
Normal file
@@ -0,0 +1,36 @@
|
||||
# Maintainer: Sefa Eyeoglu <contact@scrumplex.net>
|
||||
|
||||
_pkgname=nfancurve
|
||||
pkgname=${_pkgname}-git
|
||||
pkgver=v017.r17.gb36e1c2
|
||||
pkgrel=1
|
||||
pkgdesc="A small and lightweight Bash script for using a custom fan curve in Linux for NVIDIA GPUs"
|
||||
arch=("any")
|
||||
url="https://github.com/nan0s7/nfancurve"
|
||||
license=("GPL3")
|
||||
depends=("bash" "nvidia" "procps")
|
||||
makedepends=("git")
|
||||
conflicts=("${_pkgname}")
|
||||
install=${_pkgname}.install
|
||||
source=(
|
||||
"${_pkgname}::git+https://github.com/nan0s7/${_pkgname}.git"
|
||||
"nfancurve.desktop"
|
||||
)
|
||||
sha512sums=(
|
||||
"SKIP"
|
||||
"eacb0f97ee0f1b25074060fca34637258dc239a776e7e738eaa5b0c46f365f2c08cbe41cb527708e22360b19a8e0c4cc3141bd53964531b8ce344890195ef5f4"
|
||||
)
|
||||
|
||||
pkgver() {
|
||||
cd "${_pkgname}"
|
||||
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${_pkgname}"
|
||||
|
||||
install -m755 -D "temp.sh" "${pkgdir}/usr/bin/nfancurve"
|
||||
install -m644 -D "config" "${pkgdir}/usr/share/doc/${_pkgname}/config.example"
|
||||
install -m644 -D "config" "${pkgdir}/etc/${_pkgname}/config"
|
||||
install -m644 -D "../nfancurve.desktop" "${pkgdir}/usr/share/applications/nfancurve.desktop"
|
||||
}
|
||||
5
nfancurve/nfancurve.desktop
Normal file
5
nfancurve/nfancurve.desktop
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env xdg-open
|
||||
[Desktop Entry]
|
||||
Name=nan0s7's fan curve script
|
||||
Type=Application
|
||||
Exec=/usr/bin/nfancurve -c /etc/nfancurve/config
|
||||
19
nfancurve/nfancurve.install
Normal file
19
nfancurve/nfancurve.install
Normal file
@@ -0,0 +1,19 @@
|
||||
# Colored makepkg-like functions
|
||||
note() {
|
||||
printf "${blue}==>${yellow} NOTE:${bold} $1${all_off}\n"
|
||||
}
|
||||
|
||||
all_off="$(tput sgr0)"
|
||||
bold="${all_off}$(tput bold)"
|
||||
blue="${bold}$(tput setaf 4)"
|
||||
yellow="${bold}$(tput setaf 3)"
|
||||
|
||||
post_install() {
|
||||
note "You can edit the config file to use nfancurve, at /etc/nfancurve/config."
|
||||
note "The example config can also be found at /usr/share/doc/nfancurve/config.sh.example"
|
||||
note "You can also copy the desktop file from /usr/share/applications/nfancurve.desktop to your local autostart folder (most likely \"\$HOME/.config/autostart/\")"
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
Reference in New Issue
Block a user