SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "openct"

# SliTaz package receipt.

PACKAGE="openct"
VERSION="0.6.20"
CATEGORY="misc"
SHORT_DESC="Drivers for several smart card readers."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="LGPL2.1"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://github.com/OpenSC/openct"
WGET_URL="$WEB_SITE/archive/$TARBALL"

DEPENDS="pcsc-lite libusb"
BUILD_DEPENDS="automake libtool pcsc-lite-dev libusb-dev doxygen"

current_version()
{
    wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/openct-\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    mkdir -p $DESTDIR/etc
    ./bootstrap &&
    ./configure --prefix=/usr \
        --enable-pcsc \
        --enable-usb \
        --sysconfdir=/etc \
        --infodir=/usr/share/info \
        --mandir=/usr/share/man \
    $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    cp -a $install/usr/lib/*.so* $fs/usr/lib
    cp -a $install/etc $fs
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/sbin $fs/usr
}
6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)