mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 14:17:02 +02:00
flashrom: update to 1.3.0.
This commit is contained in:
parent
7e4682aae7
commit
1a1f3b9b89
1 changed files with 5 additions and 22 deletions
|
@ -1,34 +1,17 @@
|
|||
# Template file for 'flashrom'
|
||||
pkgname=flashrom
|
||||
version=1.2
|
||||
revision=3
|
||||
version=1.3.0
|
||||
revision=1
|
||||
build_style=gnu-makefile
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="pciutils-devel libusb-compat-devel libftdi1-devel"
|
||||
makedepends="pciutils-devel libusb-compat-devel libftdi1-devel eudev-libudev-devel zlib-devel"
|
||||
short_desc="Utility for reading, writing, erasing and verifying flash ROM chips"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
license="GPL-2.0-only"
|
||||
homepage="https://www.flashrom.org"
|
||||
distfiles=https://github.com/flashrom/flashrom/archive/v$version.tar.gz
|
||||
checksum=a5bac412cefb87bb426912fed46ccc38799d088a9b92dbe7bac38c5df016d9b2
|
||||
checksum=91d3ae239e435682561966350d00890b8bf5ae1a947af1f647198aa391196890
|
||||
|
||||
post_patch() {
|
||||
# The Makefile detection is fragile!!!
|
||||
# It doesn't defend against __attribute__("something")
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
x86_64* | i686*) _arch=x86 ;;
|
||||
aarch64* | arm*) _arch=arm ;;
|
||||
ppc*) _arch=ppc ;;
|
||||
mips*) _arch=mips ;;
|
||||
*) msg_error "Unknown arch\n" ;;
|
||||
esac
|
||||
case "$XBPS_TARGET_ENDIAN" in
|
||||
be) _endian=big ;;
|
||||
le) _endian=little ;;
|
||||
esac
|
||||
vsed -i -e 's/^override TARGET_OS :=.*/TARGET_OS := Linux/' \
|
||||
-e "s/^override ARCH :=.*/ARCH := $_arch/" \
|
||||
-e "s/^override ENDIAN :=.*/ENDIAN := $_endian/" \
|
||||
-e 's/sbin/bin/' \
|
||||
Makefile
|
||||
vsed -i 's/sbin/bin/' Makefile
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue