co2minimon

Get temperature and CO2 concentration data from a CO2Mini sensor.
git clone git://git.amin.space/co2minimon.git
Log | Files | Refs | README | LICENSE

PKGBUILD (1058B)


      1 # Maintainer: Amin Mesbah <dev@aminmesbah.com>
      2 
      3 # https://wiki.archlinux.org/title/PKGBUILD
      4 
      5 pkgname=co2minimon
      6 pkgver=0.0.1
      7 pkgrel=1
      8 pkgdesc='Daemon for CO2Mini sensor.'
      9 arch=('any')
     10 license=('Unlicense')
     11 makedepends=('bash' 'clang')
     12 provides=('co2minimon')
     13 source=(build.sh
     14         main.c
     15         LICENSE
     16         ${pkgname}.service)
     17 # update with updpkgsums from pacman-contrib
     18 sha256sums=('760c19a24dce4341650857d28f3f6e6f7fe788428c9658ff9082d01c6afaec72'
     19             '07b2e03e16c38b2e98c0c0f293196d8a168cc5189d72fed2bf4859cc9d0e903f'
     20             '7e12e5df4bae12cb21581ba157ced20e1986a0508dd10d0e8a4ab9a4cf94e85c'
     21             '2d6b333afdf16af84232032040703c054b5529a79d4bea4e65831fd50b05635a')
     22 
     23 
     24 build() {
     25     /usr/bin/env bash build.sh || exit 1
     26 }
     27 
     28 package() {
     29     install -D --mode=644 ${pkgname}.service "${pkgdir}/usr/lib/systemd/user/${pkgname}.service" || exit 1
     30     install -D --mode=755 out/release/co2minimon "${pkgdir}/usr/bin/co2minimon" || exit 1
     31     install -D --mode=644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || exit 1
     32 }