wok annotate libnfc/receipt @ rev 25691

Up lynis (3.1.1), ncurses-examples (20211021)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 16 10:43:04 2024 +0000 (7 weeks ago)
parents 76d48bfbaefd
children
rev   line source
pascal@14169 1 # SliTaz package receipt.
pascal@14169 2
pascal@14169 3 PACKAGE="libnfc"
Hans-G?nter@24814 4 VERSION="1.8.0"
pascal@14169 5 CATEGORY="development"
pascal@14169 6 SHORT_DESC="Near Field Communication (NFC) library."
pascal@14169 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14997 8 LICENSE="LGPL3"
pascal@21824 9 WEB_SITE="https://web.archive.org/web/20190207020154/http://nfc-tools.org/index.php?title=Libnfc"
Hans-G?nter@21264 10
pascal@18333 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
Hans-G?nter@21264 12 WGET_URL="https://github.com/nfc-tools/$PACKAGE/releases/download/$PACKAGE-$VERSION/$TARBALL"
pascal@14169 13
pascal@14169 14 DEPENDS="libusb pcsc-lite"
Hans-G?nter@21264 15 BUILD_DEPENDS="libusb-compat libusb-dev pcsc-lite-dev pkg-config"
pascal@14169 16
pascal@25600 17 # What is the latest version available today?
pascal@24055 18 current_version()
pascal@24055 19 {
pascal@24055 20 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@25600 21 sed '/tag\//!d;s|.*tag/[a-z-]*||;s|".*||;q'
pascal@24055 22 }
pascal@24055 23
pascal@14169 24 # Rules to configure and make the package.
pascal@14169 25 compile_rules()
pascal@14169 26 {
pascal@19705 27 export LDFLAGS="$LDFLAGS -ltinfo"
Hans-G?nter@21264 28
Hans-G?nter@21264 29 ./configure \
Hans-G?nter@21264 30 --prefix=/usr \
Hans-G?nter@21264 31 --with-drivers=all \
pascal@14169 32 $CONFIGURE_ARGS &&
Hans-G?nter@24814 33 make &&
Hans-G?nter@24814 34 make install DESTDIR=$DESTDIR
pascal@14169 35 }
pascal@14169 36
pascal@14169 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@14169 38 genpkg_rules()
pascal@14169 39 {
Hans-G?nter@24814 40 cook_copy_folders bin
Hans-G?nter@24814 41 cook_copy_files *.so*
pascal@14169 42 }