wok-current annotate flashrom/receipt @ rev 25730
Fix depend for xorg-server (libxshmfence)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Dec 05 13:05:56 2024 +0000 (4 weeks ago) |
parents | e7a02c4f801d |
children |
rev | line source |
---|---|
pascal@13591 | 1 # SliTaz package receipt. |
pascal@13591 | 2 |
pascal@13591 | 3 PACKAGE="flashrom" |
Hans-G?nter@24555 | 4 VERSION="1.2" |
pascal@13591 | 5 CATEGORY="misc" |
Hans-G?nter@20924 | 6 SHORT_DESC="Utility for reading, writing, erasing and verifying flash ROM chips." |
pascal@13591 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15001 | 8 LICENSE="GPL2" |
Hans-G?nter@22761 | 9 WEB_SITE="https://flashrom.org/Flashrom" |
Hans-G?nter@20924 | 10 |
Hans-G?nter@22762 | 11 TARBALL="$PACKAGE-v$VERSION.tar.bz2" |
Hans-G?nter@20924 | 12 WGET_URL="https://download.flashrom.org/releases/$TARBALL" |
pascal@13591 | 13 |
Hans-G?nter@24556 | 14 DEPENDS="libftdi libusb pciutils" |
Hans-G?nter@20924 | 15 BUILD_DEPENDS="libftdi-dev libusb-dev pciutils-dev zlib-dev" |
Hans-G?nter@22761 | 16 |
Hans-G?nter@20924 | 17 HOST_ARCH="i486" |
pascal@13591 | 18 |
pascal@24439 | 19 # What is the latest version available today? |
pascal@24439 | 20 current_version() |
pascal@24439 | 21 { |
pascal@24439 | 22 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24439 | 23 sed "/latest/d;/$PACKAGE-[v0-9]/!d;/tar/!d;s|.*$PACKAGE-v*\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24439 | 24 } |
pascal@24439 | 25 |
pascal@13591 | 26 # Rules to configure and make the package. |
pascal@13591 | 27 compile_rules() |
pascal@13591 | 28 { |
pascal@21421 | 29 sed -i 's|.*libusb_set_debug.*\( 3.*\)|#if LIBUSB_API_VERSION >= 0x01000106\ |
pascal@21419 | 30 libusb_set_option(NULL, LIBUSB_OPTION_LOG_LEVEL,\1\n#else\n&\n#endif|' \ |
pascal@21413 | 31 ch341a_spi.c |
Hans-G?nter@22761 | 32 sed -i 's|uname -m|echo i486|' \ |
Hans-G?nter@22761 | 33 Makefile |
Hans-G?nter@22761 | 34 |
Hans-G?nter@24555 | 35 make PREFIX=/usr && |
Hans-G?nter@24555 | 36 make install PREFIX=/usr DESTDIR=$DESTDIR |
pascal@13591 | 37 } |
pascal@13591 | 38 |
pascal@13591 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13591 | 40 genpkg_rules() |
pascal@13591 | 41 { |
Hans-G?nter@24555 | 42 cook_copy_folders sbin |
pascal@13591 | 43 } |