From dfd39069a7ad44455eeef6028bceebe9b5c15de9 Mon Sep 17 00:00:00 2001 From: Dakota Walsh Date: Tue, 1 Aug 2023 08:17:57 +1200 Subject: [PATCH] qbe: update to 1.1. --- srcpkgs/qbe/template | 30 +++++++++++++++++------------- srcpkgs/qbe/update | 1 + 2 files changed, 18 insertions(+), 13 deletions(-) create mode 100644 srcpkgs/qbe/update diff --git a/srcpkgs/qbe/template b/srcpkgs/qbe/template index 7fd0da3..e56a69f 100644 --- a/srcpkgs/qbe/template +++ b/srcpkgs/qbe/template @@ -1,23 +1,27 @@ # Template file for 'qbe' pkgname=qbe -version=1.0 +version=1.1 revision=1 -short_desc="Simple C compiler backend" -maintainer="Dakota Walsh " +build_style=gnu-makefile +make_use_env=yes +short_desc="Small embeddable C compiler backend" +maintainer="Bryce Vandegrift " license="MIT" homepage="https://c9x.me/compile/" -distfiles="https://c9x.me/git/qbe.git/snapshot/qbe-${version}.tar.gz" -checksum=57838c594c0876602a548e83b5bb0164de86592fcc3c07cb6cc853bdff41206c +distfiles="https://c9x.me/compile/release/qbe-${version}.tar.xz" +checksum=7d0a53dd40df48072aae317e11ddde15d1a980673160e514e235b9ecaa1db12c - -do_build() { - make -} - -do_install() { - make STRIP=true PREFIX=/usr DESTDIR=${DESTDIR} install -} +# Currently only aarch64 and x86_64 targets are supported and the checks +# test the compiled binaries. +case "$XBPS_TARGET_MACHINE" in + aarch64*|x86_64*) ;; + *) make_check=no ;; +esac post_install() { + vdoc doc/abi.txt + vdoc doc/il.txt + vdoc doc/llvm.txt + vlicense LICENSE } diff --git a/srcpkgs/qbe/update b/srcpkgs/qbe/update new file mode 100644 index 0000000..100207e --- /dev/null +++ b/srcpkgs/qbe/update @@ -0,0 +1 @@ +site="https://c9x.me/compile/releases.html" -- 2.45.2