wok view flashrom/receipt @ rev 25539

Up perl-test-compile (3.1.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 09 12:11:13 2023 +0000 (22 months ago)
parents e7a02c4f801d
children
line source
1 # SliTaz package receipt.
3 PACKAGE="flashrom"
4 VERSION="1.2"
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="libftdi libusb pciutils"
15 BUILD_DEPENDS="libftdi-dev libusb-dev pciutils-dev zlib-dev"
17 HOST_ARCH="i486"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
23 sed "/latest/d;/$PACKAGE-[v0-9]/!d;/tar/!d;s|.*$PACKAGE-v*\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i 's|.*libusb_set_debug.*\( 3.*\)|#if LIBUSB_API_VERSION >= 0x01000106\
30 libusb_set_option(NULL, LIBUSB_OPTION_LOG_LEVEL,\1\n#else\n&\n#endif|' \
31 ch341a_spi.c
32 sed -i 's|uname -m|echo i486|' \
33 Makefile
35 make PREFIX=/usr &&
36 make install PREFIX=/usr DESTDIR=$DESTDIR
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 cook_copy_folders sbin
43 }