wok annotate libnfc/receipt @ rev 24531

updated osip and osip-dev (5.1.1 -> 5.3.0)
author Hans-G?nter Theisgen
date Wed Feb 23 09:00:20 2022 +0100 (2022-02-23)
parents 78a46345f6bb
children 76d48bfbaefd
rev   line source
pascal@14169 1 # SliTaz package receipt.
pascal@14169 2
pascal@14169 3 PACKAGE="libnfc"
Hans-G?nter@21264 4 VERSION="1.7.1"
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@21264 32 make -j 1 &&
pascal@14169 33 make DESTDIR=$DESTDIR install
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 {
pascal@14169 39 mkdir -p $fs/usr/lib
Hans-G?nter@21264 40
Hans-G?nter@21264 41 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21264 42 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@14169 43 }