wok-current annotate flashrom/receipt @ rev 23951

taziso/bootusbkey: up to 2TB
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Sep 21 09:52:25 2020 +0000 (2020-09-21)
parents 66f05dc997b2
children bfabe25c21ff
rev   line source
pascal@13591 1 # SliTaz package receipt.
pascal@13591 2
pascal@13591 3 PACKAGE="flashrom"
Hans-G?nter@22761 4 VERSION="1.1"
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@22761 9 WEB_SITE="https://flashrom.org/Flashrom"
Hans-G?nter@20924 10
Hans-G?nter@22762 11 TARBALL="$PACKAGE-v$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@22761 16
Hans-G?nter@20924 17 HOST_ARCH="i486"
pascal@13591 18
pascal@13591 19 # Rules to configure and make the package.
pascal@13591 20 compile_rules()
pascal@13591 21 {
pascal@21421 22 sed -i 's|.*libusb_set_debug.*\( 3.*\)|#if LIBUSB_API_VERSION >= 0x01000106\
pascal@21419 23 libusb_set_option(NULL, LIBUSB_OPTION_LOG_LEVEL,\1\n#else\n&\n#endif|' \
pascal@21413 24 ch341a_spi.c
Hans-G?nter@22761 25 sed -i 's|uname -m|echo i486|' \
Hans-G?nter@22761 26 Makefile
Hans-G?nter@22761 27
Hans-G?nter@20924 28 make -j 1 PREFIX=/usr &&
Hans-G?nter@20924 29 make PREFIX=/usr DESTDIR=$DESTDIR install
pascal@13591 30 }
pascal@13591 31
pascal@13591 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13591 33 genpkg_rules()
pascal@13591 34 {
pascal@13591 35 mkdir -p $fs/usr
Hans-G?nter@22761 36 cp -a $install/usr/sbin $fs/usr
pascal@13591 37 }