APP=i2c-tools
VERSION=4.1
BUILD=1sml
HOMEPAGE='https://i2c.wiki.kernel.org/index.php/I2C_Tools'
DOWNLOAD='https://mirrors.edge.kernel.org/pub/software/utils/i2c-tools/i2c-tools-4.1.tar.gz'
DESC="Utilties to read and program data from I2C-protocol based sensors"
REQUIRES="musl"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  make
  make install PREFIX="/" mandir="/share/man" DESTDIR="$PKG" sbindir="/bin"

  cp COPYING* $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
476bd9172a57c20894c7e0b07e567fdc85e8c9b05697a839cddaff1ea45824843934581ed2fb738ced5bf273763e2429d27443edc89b725c3f4e98914732b1dc  i2c-tools-4.1.tar.lz
"
