wok annotate libnfc/receipt @ rev 25270

gst-ffmpeg*: ORC_TARGET_ALTIVEC_ALTIVEC not defined yet
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 17 15:43:19 2022 +0000 (2022-07-17)
parents 5ea0ce1cecc0
children 7364ffdaaa60
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@24055 17 current_version()
pascal@24055 18 {
pascal@24055 19 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/libnfc-\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
pascal@14169 23 # Rules to configure and make the package.
pascal@14169 24 compile_rules()
pascal@14169 25 {
pascal@19705 26 export LDFLAGS="$LDFLAGS -ltinfo"
Hans-G?nter@21264 27
Hans-G?nter@21264 28 ./configure \
Hans-G?nter@21264 29 --prefix=/usr \
Hans-G?nter@21264 30 --with-drivers=all \
pascal@14169 31 $CONFIGURE_ARGS &&
Hans-G?nter@24814 32 make &&
Hans-G?nter@24814 33 make install DESTDIR=$DESTDIR
pascal@14169 34 }
pascal@14169 35
pascal@14169 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@14169 37 genpkg_rules()
pascal@14169 38 {
Hans-G?nter@24814 39 cook_copy_folders bin
Hans-G?nter@24814 40 cook_copy_files *.so*
pascal@14169 41 }