APP=usbreset
VERSION=1.0
BUILD=1sml
DESC="Small utility to reset USB ports for Linux"
REQUIRES="musl"

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

  mkdir -p $APP-$VERSION
  cp $SRCDIR/usbreset.c $APP-$VERSION/
  cd $APP-$VERSION 
  fixbuilddirpermissions

  gcc $CFLAGS -o usbreset usbreset.c
  install -Dm 755 usbreset $PKG/bin/usbreset

  mkfinalpkg
}

SHA512SUMS="
8df26ba1b340baae802a2205cd94bc65e9193c99cc564da0a4abdec65107b0622b646513a70c7fbe037f45f7d34e440c6de9c06ca80e1b3b7ce85db9869eebb1  usbreset.c
"
