aboutsummaryrefslogtreecommitdiff
path: root/libraries/libfprint/libfprint.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2022-02-07 14:15:22 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-07 23:04:38 +0700
commit96b56abd8823fac9c8751dfe74e272c2797e1913 (patch)
treecc55462a85c9265da3c9ef5700c7597ee3482e5f /libraries/libfprint/libfprint.SlackBuild
parentd5ff846cc57c344bf0201957ff33129270ffd4c3 (diff)
libraries/libfprint: Updated for version 1.94.2.
Switched to meson, changed homepage, cleanups Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libfprint/libfprint.SlackBuild')
-rw-r--r--libraries/libfprint/libfprint.SlackBuild46
1 files changed, 24 insertions, 22 deletions
diff --git a/libraries/libfprint/libfprint.SlackBuild b/libraries/libfprint/libfprint.SlackBuild
index 09de5b60373f..b5460767f51f 100644
--- a/libraries/libfprint/libfprint.SlackBuild
+++ b/libraries/libfprint/libfprint.SlackBuild
@@ -4,19 +4,17 @@
# Written by Terry Laundos <terry.laundos@s1solucoes.com.br>
-set -e
-
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libfprint
-VERSION=${VERSION:-0.0.6}
+VERSION=${VERSION:-1.94.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -34,8 +32,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -48,12 +46,14 @@ else
LIBDIRSUFFIX=""
fi
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM-v$VERSION
+tar -xvf $CWD/$PRGNAM-v$VERSION.tar.bz2
+cd $PRGNAM-v$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -61,21 +61,23 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --disable-static \
- --build=$ARCH-slackware-linux
-make
-make install DESTDIR=$PKG
+mkdir build
+cd build
+ CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ meson .. \
+ --buildtype=release \
+ --infodir=/usr/info \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --prefix=/usr \
+ --sysconfdir=/etc
+ DESTDIR=$PKG "${NINJA:=ninja}" install
+cd ..
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS ChangeLog COPYING HACKING INSTALL NEWS README THANKS INSTALL TODO doc/ \
+cp -a AUTHORS COPYING HACKING* NEWS README THANKS TODO doc/ \
examples/ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild