|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
# Build script for Slackware
|
|
|
|
|
# Copyright (C) 2013,2015-2017 Damien Goutte-Gattat
|
|
|
|
|
# Copyright (C) 2013,2015-2017,2019 Damien Goutte-Gattat
|
|
|
|
|
#
|
|
|
|
|
# Redistribution and use of this script, with or without modifications,
|
|
|
|
|
# is permitted provided that the following conditions are met:
|
|
|
|
@ -22,14 +22,13 @@
|
|
|
|
|
#
|
|
|
|
|
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
|
|
|
|
|
#
|
|
|
|
|
# Latest pcsc-lite sourcecode is available at:
|
|
|
|
|
# <http://pcsclite.alioth.debian.org/pcsclite.html>
|
|
|
|
|
# Latest pcsc-lite sourcecode is available at: <https://pcsclite.apdu.fr>.
|
|
|
|
|
|
|
|
|
|
# Source package infos
|
|
|
|
|
NAMESRC=${NAMESRC:-pcsc-lite}
|
|
|
|
|
VERSION=${VERSION:-1.8.21}
|
|
|
|
|
VERSION=${VERSION:-1.8.25}
|
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
|
|
|
|
|
WGET=${WGET:-https://alioth.debian.org/frs/download.php/file/4216/$ARCHIVE}
|
|
|
|
|
WGET=${WGET:-https://pcsclite.apdu.fr/files/$ARCHIVE}
|
|
|
|
|
|
|
|
|
|
# Build infos
|
|
|
|
|
NAMEPKG=${NAMEPKG:-pcsc-lite}
|
|
|
|
@ -94,6 +93,8 @@ CXXFLAGS=$CPUOPT \
|
|
|
|
|
--docdir=/usr/doc/$NAME \
|
|
|
|
|
--localstatedir=/var/run \
|
|
|
|
|
--enable-usbdropdir=/usr/lib$LIBDIRSUFFIX/pcsc/drivers \
|
|
|
|
|
--disable-libsystemd \
|
|
|
|
|
--enable-polkit \
|
|
|
|
|
--disable-dependency-tracking \
|
|
|
|
|
--build=$ARCH-slackware-linux
|
|
|
|
|
make -j $JOBS
|
|
|
|
@ -104,8 +105,8 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
|
|
|
|
|
|
|
|
|
|
# Install the documentation
|
|
|
|
|
mkdir -p $PKG/usr/doc/$NAME
|
|
|
|
|
install -m 644 AUTHORS COPYING ChangeLog DRIVERS HELP NEWS README TODO \
|
|
|
|
|
SECURITY $PKG/usr/doc/$NAME
|
|
|
|
|
install -m 644 AUTHORS COPYING ChangeLog HELP README TODO SECURITY \
|
|
|
|
|
$PKG/usr/doc/$NAME
|
|
|
|
|
|
|
|
|
|
# Install control script
|
|
|
|
|
install -D -m 644 $CWD/rc.pcscd $PKG/etc/rc.d/rc.pcscd
|
|
|
|
|