From 581fd8ddc11942db81bf7323c4907ca951a47164 Mon Sep 17 00:00:00 2001 From: John Date: Sat, 8 Apr 2023 01:46:18 +0200 Subject: [PATCH] flashrom: update to 1.3.0. --- srcpkgs/flashrom/template | 42 ++++++++++++++++++--------------------- srcpkgs/libflashrom | 1 + srcpkgs/libflashrom-devel | 1 + 3 files changed, 21 insertions(+), 23 deletions(-) create mode 120000 srcpkgs/libflashrom create mode 120000 srcpkgs/libflashrom-devel diff --git a/srcpkgs/flashrom/template b/srcpkgs/flashrom/template index af1e0d424603..3fb1e8d80c6e 100644 --- a/srcpkgs/flashrom/template +++ b/srcpkgs/flashrom/template @@ -1,8 +1,8 @@ # Template file for 'flashrom' pkgname=flashrom -version=1.2 -revision=3 -build_style=gnu-makefile +version=1.3.0 +revision=1 +build_style=meson hostmakedepends="pkg-config" makedepends="pciutils-devel libusb-compat-devel libftdi1-devel" short_desc="Utility for reading, writing, erasing and verifying flash ROM chips" @@ -10,25 +10,21 @@ maintainer="teldra " 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 +libflashrom_package() { + short_desc+=" - library files" + pkg_install() { + vmove "usr/lib/*.so.*" + } +} + +libflashrom-devel_package() { + short_desc+=" - development files" + depends="libflashrom>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + } } diff --git a/srcpkgs/libflashrom b/srcpkgs/libflashrom new file mode 120000 index 000000000000..183c7f43a41c --- /dev/null +++ b/srcpkgs/libflashrom @@ -0,0 +1 @@ +flashrom \ No newline at end of file diff --git a/srcpkgs/libflashrom-devel b/srcpkgs/libflashrom-devel new file mode 120000 index 000000000000..183c7f43a41c --- /dev/null +++ b/srcpkgs/libflashrom-devel @@ -0,0 +1 @@ +flashrom \ No newline at end of file