wok-6.x view flashrom/receipt @ rev 24347

Up expat (2.4.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 02 09:41:22 2022 +0000 (2022-02-02)
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 }