#/bin/bash # This shell script used install libgpiod library set -e APP_NAME=libgpiod-1.6.2 if [ ! -f ${APP_NAME}.tar.gz ] ; then wget https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/snapshot/${APP_NAME}.tar.gz fi if [ ! -d ${APP_NAME} ] ; then tar -xzf ${APP_NAME}.tar.gz fi cd ${APP_NAME} ./autogen.sh ./configure --enable-tools=yes --prefix=/usr make sudo make install