wok annotate flashrom/receipt @ rev 21413

conntrack-tools, flashrom: fix build
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 23 18:26:21 2019 +0200 (2019-04-23)
parents 21f24cc30137
children fe96d104d02e
rev   line source
pascal@13591 1 # SliTaz package receipt.
pascal@13591 2
pascal@13591 3 PACKAGE="flashrom"
Hans-G?nter@20924 4 VERSION="1.0"
pascal@13591 5 CATEGORY="misc"
Hans-G?nter@20924 6 SHORT_DESC="Utility for reading, writing, erasing and verifying flash ROM chips."
pascal@13591 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15001 8 LICENSE="GPL2"
Hans-G?nter@20924 9 WEB_SITE="http://flashrom.org/"
Hans-G?nter@20924 10
pascal@13591 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
Hans-G?nter@20924 12 WGET_URL="https://download.flashrom.org/releases/$TARBALL"
pascal@13591 13
pascal@13591 14 DEPENDS="pciutils"
Hans-G?nter@20924 15 BUILD_DEPENDS="libftdi-dev libusb-dev pciutils-dev zlib-dev"
Hans-G?nter@20924 16 HOST_ARCH="i486"
pascal@13591 17
pascal@13591 18 # Rules to configure and make the package.
pascal@13591 19 compile_rules()
pascal@13591 20 {
pascal@21413 21 sed -i 's|\(libusb_set_\)debug(NULL|\1option(NULL, LIBUSB_OPTION_LOG_LEVEL|' \
pascal@21413 22 ch341a_spi.c
pascal@20212 23 sed -i 's|uname -m|echo i486|' Makefile
Hans-G?nter@20924 24 make -j 1 PREFIX=/usr &&
Hans-G?nter@20924 25 make PREFIX=/usr DESTDIR=$DESTDIR install
pascal@13591 26 }
pascal@13591 27
pascal@13591 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13591 29 genpkg_rules()
pascal@13591 30 {
pascal@13591 31 mkdir -p $fs/usr
pascal@13591 32 cp -a $install/usr/sbin $fs/usr
pascal@13591 33 }