wok view flashrom/receipt @ rev 24484

updated dislocker (0.7.1 -> 0.7.3)
author Hans-G?nter Theisgen
date Fri Feb 18 15:45:33 2022 +0100 (2022-02-18)
parents a4f6d204741c
children e7a02c4f801d
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 # 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 -j 1 PREFIX=/usr &&
36 make PREFIX=/usr DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
43 cp -a $install/usr/sbin $fs/usr
44 }