wok-current view flashrom/receipt @ rev 22066
updated udevil (0.4.3 -> 04.4)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Oct 25 14:42:27 2019 +0100 (2019-10-25) |
parents | fe96d104d02e |
children | 66f05dc997b2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="flashrom"
4 VERSION="1.0"
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="http://flashrom.org/"
11 TARBALL="$PACKAGE-$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"
16 HOST_ARCH="i486"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i 's|.*libusb_set_debug.*\( 3.*\)|#if LIBUSB_API_VERSION >= 0x01000106\
22 libusb_set_option(NULL, LIBUSB_OPTION_LOG_LEVEL,\1\n#else\n&\n#endif|' \
23 ch341a_spi.c
24 sed -i 's|uname -m|echo i486|' Makefile
25 make -j 1 PREFIX=/usr &&
26 make PREFIX=/usr DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr
33 cp -a $install/usr/sbin $fs/usr
34 }