wok-current view flashrom/receipt @ rev 22886

web-applications: update png files
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 22 16:58:29 2020 +0100 (2020-02-22)
parents 66f05dc997b2
children bfabe25c21ff
line source
1 # SliTaz package receipt.
3 PACKAGE="flashrom"
4 VERSION="1.1"
5 CATEGORY="misc"
6 SHORT_DESC="Utility for reading, writing, erasing and verifying flash ROM chips."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://flashrom.org/Flashrom"
11 TARBALL="$PACKAGE-v$VERSION.tar.bz2"
12 WGET_URL="https://download.flashrom.org/releases/$TARBALL"
14 DEPENDS="pciutils"
15 BUILD_DEPENDS="libftdi-dev libusb-dev pciutils-dev zlib-dev"
17 HOST_ARCH="i486"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 sed -i 's|.*libusb_set_debug.*\( 3.*\)|#if LIBUSB_API_VERSION >= 0x01000106\
23 libusb_set_option(NULL, LIBUSB_OPTION_LOG_LEVEL,\1\n#else\n&\n#endif|' \
24 ch341a_spi.c
25 sed -i 's|uname -m|echo i486|' \
26 Makefile
28 make -j 1 PREFIX=/usr &&
29 make PREFIX=/usr DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr
36 cp -a $install/usr/sbin $fs/usr
37 }