From e0b9d615aff08fff57947e2ff9bb29aa3e3c9e61 Mon Sep 17 00:00:00 2001 From: Dakota Walsh Date: Sun, 9 Oct 2022 11:17:06 +1300 Subject: [PATCH] hare: update to 0.0.20220927. --- srcpkgs/hare/files/config.mk | 47 ++++++++++++++++++++++++++++++++++++ srcpkgs/hare/template | 8 +++--- 2 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/hare/files/config.mk diff --git a/srcpkgs/hare/files/config.mk b/srcpkgs/hare/files/config.mk new file mode 100644 index 0000000..a296ce6 --- /dev/null +++ b/srcpkgs/hare/files/config.mk @@ -0,0 +1,47 @@ +## Install configuration + +PREFIX = /usr +BINDIR = $(PREFIX)/bin +MANDIR = $(PREFIX)/share/man +SRCDIR = $(PREFIX)/src + +# Where to install the stdlib tree +STDLIB = $(SRCDIR)/hare/stdlib + +# Default HAREPATH +HAREPATH = $(SRCDIR)/hare/stdlib:$(SRCDIR)/hare/third-party + +## Build configuration + +# Platform to build for +PLATFORM = linux +ARCH = x86_64 + +# External tools and flags +HAREC = harec +HAREFLAGS = +QBE = qbe +AS = as +LD = ld +AR = ar +SCDOC = scdoc + +# Where to store build artifacts +HARECACHE = .cache +BINOUT = .bin + +# Cross-compiler toolchains +AARCH64_AS=aarch64-as +AARCH64_AR=aarch64-ar +AARCH64_CC=aarch64-cc +AARCH64_LD=aarch64-ld + +RISCV64_AS=riscv64-as +RISCV64_AR=riscv64-ar +RISCV64_CC=riscv64-cc +RISCV64_LD=riscv64-ld + +X86_64_AS=as +X86_64_AR=ar +X86_64_CC=cc +X86_64_LD=ld diff --git a/srcpkgs/hare/template b/srcpkgs/hare/template index 3742417..3b83550 100644 --- a/srcpkgs/hare/template +++ b/srcpkgs/hare/template @@ -1,8 +1,8 @@ # Template file for 'hare' pkgname=hare -version=0.0.20220827 +version=0.0.20220927 revision=1 -_gitrev=21a3e430c87ebfdb5e12aad01306e85a25fdfb4c +_gitrev=82213191adc25137c704df4786a71bce40b6079f wrksrc="${pkgname}-${_gitrev}" build_style=gnu-makefile hostmakedepends="scdoc" @@ -13,10 +13,10 @@ maintainer="Dakota Walsh " license="MPL-2.0 AND GPL-3.0-only" homepage="https://harelang.org/" distfiles="https://git.sr.ht/~sircmpwn/hare/archive/${_gitrev}.tar.gz" -checksum=117a1b335b1774c3c9873bfaa81dabd1dc1fade99a0af89806169223feb2a559 +checksum=6a1dbbcce7812c8a19f9e6b7da4ef668525dfc141b1350f3b3cb4d1b2ff1b677 do_build() { - cp config.example.mk config.mk + cp ${FILESDIR}/config.mk config.mk export VERSION="dev+$(echo "${_gitrev}" | cut -c-7)" export LOCALVER=void make -j1 # XXX: parallel build driver builds are broken -- 2.45.2