Skip to content

Instantly share code, notes, and snippets.

@artemklevtsov
Last active May 5, 2020 06:35
Show Gist options
  • Save artemklevtsov/3383d808f66686a02f084c5d785bf65d to your computer and use it in GitHub Desktop.
Save artemklevtsov/3383d808f66686a02f084c5d785bf65d to your computer and use it in GitHub Desktop.
PKGUILBD for the fancon
# 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