spnxclient.sh 841 Bytes
Newer Older
1 2 3 4 5 6 7 8
#!/bin/sh -x

# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"

. $(dirname $0)/common.sh

9
set_autoreq 'yes'
10

11
add_requires libpcsclite libudev0
12

13
if [ "$(epm print info -a)" = "x86_64" ] ; then
14 15 16 17 18 19 20 21 22 23 24 25
    remove_file /usr/share/sphinx/gui/spnxreader/libspnxreader_i386.so
    remove_file /usr/share/sphinx/gui/lib/libguinative_i386.so
    subst "s|/usr/lib/i386-linux-gnu/libpcsclite.so|/usr/lib64/libpcsclite.so|" $BUILDROOT/usr/bin/spnxclient
else
    remove_file /usr/share/sphinx/gui/spnxreader/libspnxreader_amd64.so
    remove_file /usr/share/sphinx/gui/lib/libguinative_amd64.so
    subst "s|/usr/lib/i386-linux-gnu/libpcsclite.so|/usr/lib/libpcsclite.so|" $BUILDROOT/usr/bin/spnxclient
fi

# https://sigur.com/download/
echo "WARNING! Just see these crazy pre/post install scripts in the original deb package."
exit 1