summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f72ffbde1078158c0fdb6077c5f139639e64c957 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: katt <magunasu.b97@gmail.com>
# Maintainer: Artem Klevtsov <a.a.klevtsov@gmail.com>

_pkgname=nvfancontrol
pkgname=$_pkgname-git
pkgver=0.3.r45.g0ba7ba3
pkgrel=1
pkgdesc="NVidia dynamic fan control"
arch=('i686' 'x86_64')
url="https://github.com/foucault/nvfancontrol"
license=('GPL3')
depends=('gcc-libs' 'libxext')
makedepends=('cargo' 'libxnvctrl')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
optdepends=('nvidia: For GTX 4xx or newer cards'
            'nvidia-340xx: For G8x, G9x and GTX 2xx cards')
source=("${pkgname}::git+${url}")
sha256sums=('SKIP')

pkgver() {
    cd "${pkgname}"
    git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "${pkgname}"
    cargo build --release
}

package() {
    install -Dm755 "${pkgname}/target/release/${_pkgname}" -t "${pkgdir}/usr/bin"
}