Last active
May 5, 2020 06:35
-
-
Save artemklevtsov/3383d808f66686a02f084c5d785bf65d to your computer and use it in GitHub Desktop.
PKGUILBD for the fancon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Artem Klevtsov <a.a.klevtsov@gmail com> | |
_pkgbase=fancon | |
pkgname=fancon-git | |
pkgver=0.20.1.r3.gbebdfc8 | |
pkgrel=1 | |
pkgdesc="A Linux fan control daemon" | |
arch=('x86_64') | |
url="https://github.com/hbriese/${_pkgbase}" | |
license=('Apache') | |
provides=("${_pkgbase}") | |
depends=('lm_sensors' 'boost-libs' 'protobuf' 'libx11' 'grpc') | |
makedepends=('clang>=9.0' 'cmake>=3.13' 'boost') | |
source=("${_pkgbase}::git+https://github.com/hbriese/${_pkgbase}.git") | |
sha512sums=('SKIP') | |
pkgver() { | |
cd "${srcdir}/${_pkgbase}" | |
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | |
} | |
build() { | |
rm -rf "${srcdir}/${_pkgbase}/build" | |
mkdir "${srcdir}/${_pkgbase}/build" | |
cd "${srcdir}/${_pkgbase}/build" | |
export CCACHE_DISABLE=1 | |
export CC=clang | |
export CXX=clang++ | |
cmake -DCMAKE_BUILD_TYPE=Release \ | |
-DNVIDIA_SUPPORT=OFF .. | |
make | |
} | |
package() { | |
cd "${srcdir}/${_pkgbase}/build" | |
make DESTDIR="${pkgdir}" install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment