# Maintainer (aur): Chris Down <chris@chrisdown.name>
# Maintainer: Wael Karram <wael@waelk.tech>


# parabola changes and rationale:
#  - rename upstream source-ball


pkgname=zcfan
pkgver=1.3.0
pkgrel=1
pkgdesc='Zero-configuration fan control for ThinkPad'
url="https://github.com/cdown/zcfan"
license=('MIT')
arch=('i686' 'x86_64') # could be 'any'; but avoid publishing to non-x86 repos
depends=()
makedepends=()
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/cdown/zcfan/archive/refs/tags/${pkgver}.tar.gz)
sha256sums=('2e9ac2b77a79ba0450ee5443b04b0c595d41b8a3ab51a49bdb7c7de20dfb68e9')

build() {
    cd -- "${srcdir?}/$pkgname-$pkgver"
    make prefix="/usr"
}

package() {
    cd -- "${srcdir?}/$pkgname-$pkgver"
    make prefix="/usr" DESTDIR="$pkgdir/" install
}
