summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/opensc-ceres/opensc-ceres.SlackBuild22
-rw-r--r--system/opensc-ceres/opensc-ceres.info6
2 files changed, 19 insertions, 9 deletions
diff --git a/system/opensc-ceres/opensc-ceres.SlackBuild b/system/opensc-ceres/opensc-ceres.SlackBuild
index 2e2fafb91d..e30b793747 100644
--- a/system/opensc-ceres/opensc-ceres.SlackBuild
+++ b/system/opensc-ceres/opensc-ceres.SlackBuild
@@ -5,11 +5,18 @@
# Based on scripts by the SlackBuilds.org project
PRGNAM=opensc-ceres
-VERSION=2.1.1
-ARCH=${ARCH:-i386}
+VERSION=2.3.2
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i386 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -17,16 +24,19 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "x86_64" ]; then
TARGET="x86_64"
-else
+elif [ "$ARCH" = "i386" ]; then
TARGET="x86"
+else
+ printf "$ARCH is not supported.\n"
+ exit 1
fi
if [ "$TARGET" = "x86" ]; then
SRCFILE=Debian_Lenny_32bits.zip
- SRCDEB=${PRGNAM}_$(echo $VERSION | tr "_" "-")_i386.deb
+ SRCDEB=${PRGNAM}_${VERSION}_i386.deb
elif [ "$TARGET" = "x86_64" ]; then
SRCFILE=Debian_Lenny_64bits.zip
- SRCDEB=${PRGNAM}_$(echo $VERSION | tr "_" "-")_amd64.deb
+ SRCDEB=${PRGNAM}_${VERSION}-1_amd64.deb
fi
set -e
@@ -35,7 +45,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $PKG
-unzip -j $CWD/$SRCFILE */$SRCDEB
+unzip -j $CWD/$SRCFILE $SRCDEB
ar x $SRCDEB data.tar.gz
tar xzf data.tar.gz
rm $SRCDEB data.tar.gz
diff --git a/system/opensc-ceres/opensc-ceres.info b/system/opensc-ceres/opensc-ceres.info
index 7ad3de29bb..73b1c8d6be 100644
--- a/system/opensc-ceres/opensc-ceres.info
+++ b/system/opensc-ceres/opensc-ceres.info
@@ -1,10 +1,10 @@
PRGNAM="opensc-ceres"
-VERSION="2.1.1"
+VERSION="2.3.2"
HOMEPAGE="http://www.cert.fnmt.es/"
DOWNLOAD="http://www.cert.fnmt.es/content/pages_std/software/Debian_Lenny_32bits.zip"
-MD5SUM="8eae3889f53eb6339ee442b65f6134cb"
+MD5SUM="15dd7c131b63ceb541b94e381f562f9c"
DOWNLOAD_x86_64="http://www.cert.fnmt.es/content/pages_std/software/Debian_Lenny_64bits.zip"
-MD5SUM_x86_64="a56239a8aae6d4e6cd9feb6b044470cd"
+MD5SUM_x86_64="c735178150e0a247cdb7e366e2819fd1"
MAINTAINER="Daniel R."
EMAIL="<danielrodriguez.es@gmail.com>"
APPROVED="rworkman"