aboutsummaryrefslogtreecommitdiff
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
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>
-rw-r--r--libraries/libfprint/libfprint.SlackBuild46
-rw-r--r--libraries/libfprint/libfprint.info10
-rw-r--r--libraries/libfprint/slack-desc2
3 files changed, 30 insertions, 28 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
diff --git a/libraries/libfprint/libfprint.info b/libraries/libfprint/libfprint.info
index 021b931b1c28..af00c71b61be 100644
--- a/libraries/libfprint/libfprint.info
+++ b/libraries/libfprint/libfprint.info
@@ -1,10 +1,10 @@
PRGNAM="libfprint"
-VERSION="0.0.6"
-HOMEPAGE="http://reactivated.net/fprint/wiki/Libfprint"
-DOWNLOAD="http://downloads.sourceforge.net/fprint/libfprint-0.0.6.tar.bz2"
-MD5SUM="4f47b46021b186488b60aaa97f90fe43"
+VERSION="1.94.2"
+HOMEPAGE="https://fprint.freedesktop.org"
+DOWNLOAD="https://gitlab.freedesktop.org/libfprint/libfprint/-/archive/v1.94.2/libfprint-v1.94.2.tar.bz2"
+MD5SUM="1589f6e84fc1ec21ffacf45c8388a93a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="libgusb"
MAINTAINER="Terry Laundos"
EMAIL="terry@s1solucoes.com.br"
diff --git a/libraries/libfprint/slack-desc b/libraries/libfprint/slack-desc
index a88e84f548c3..9e9404988c00 100644
--- a/libraries/libfprint/slack-desc
+++ b/libraries/libfprint/slack-desc
@@ -12,8 +12,8 @@ libfprint: libfprint is an open source software library designed to make it easy
libfprint: for application developers to add support for consumer fingerprint
libfprint: readers to their software.
libfprint:
+libfprint: Homepage: https://fprint.freedesktop.org
libfprint:
-libfprint: Homepage: http://reactivated.net/fprint/wiki/Libfprint
libfprint:
libfprint:
libfprint: