This commit is contained in:
Gwenhael Le Moine 2020-07-31 12:06:06 +02:00
parent 41a0041daa
commit 86c88e72c4
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -26,7 +26,7 @@ PREFIX=/usr
VERSION="$( cd $REPOSITORIES/$PRGNAM && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )"
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG
@ -42,6 +42,8 @@ make -j3 PREFIX=$PREFIX
# installation
make install DESTDIR=$PKG PREFIX=$PREFIX MANDIR=$PKG$PREFIX/man
chmod a+s $PKG/usr/bin/brightnessctl
mkdir -p $PKG/usr/doc/$PRGNAM
cp LICENSE README.md $PKG/usr/doc/$PRGNAM/
@ -49,8 +51,6 @@ cp LICENSE README.md $PKG/usr/doc/$PRGNAM/
cd $PKG
chown -R root:root *
find $PKG -name \.hg\* -exec rm -fr {} \;
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
# Strip binaries
@ -61,6 +61,10 @@ find $PKG -name \.hg\* -exec rm -fr {} \;
# embaumement
mkdir -p $PKG/install
cat <<EOF > $PKG/install/doinst.sh
chmod a+s /usr/bin/brightnessctl
EOF
cat <<EOF > $PKG/install/slack-desc
$PRGNAM: $PRGNAM ( A program to read and control device brightness)
$PRGNAM: