guowenxue
2021-05-02 aed475c7a57e329a3e90cce56d00ca997f519cda
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#/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