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

conntrack-tools, flashrom: fix build
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 23 18:26:21 2019 +0200 (2019-04-23)
parents 21f24cc30137
children fe96d104d02e
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(NULL|\1option(NULL, LIBUSB_OPTION_LOG_LEVEL|' \
22 ch341a_spi.c
23 sed -i 's|uname -m|echo i486|' Makefile
24 make -j 1 PREFIX=/usr &&
25 make PREFIX=/usr DESTDIR=$DESTDIR install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr
32 cp -a $install/usr/sbin $fs/usr
33 }