SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libnfc"

# SliTaz package receipt.

PACKAGE="libnfc"
VERSION="1.8.0"
CATEGORY="development"
SHORT_DESC="Near Field Communication (NFC) library."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="LGPL3"
WEB_SITE="https://web.archive.org/web/20190207020154/http://nfc-tools.org/index.php?title=Libnfc"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="https://github.com/nfc-tools/$PACKAGE/releases/download/$PACKAGE-$VERSION/$TARBALL"

DEPENDS="libusb pcsc-lite"
BUILD_DEPENDS="libusb-compat libusb-dev pcsc-lite-dev pkg-config"

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

# Rules to configure and make the package.
compile_rules()
{
    export LDFLAGS="$LDFLAGS -ltinfo"

    ./configure            \
        --prefix=/usr        \
        --with-drivers=all    \
        $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    bin
    cook_copy_files        *.so*
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)