* [PR PATCH] add packages odin, ols
@ 2024-02-25 18:38 flp5
0 siblings, 0 replies; only message in thread
From: flp5 @ 2024-02-25 18:38 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1004 bytes --]
There is a new pull request by flp5 against master on the void-packages repository
https://github.com/flp5/void-packages master
https://github.com/void-linux/void-packages/pull/48940
add packages odin, ols
#### Testing the changes
- I tested the changes in this PR: **briefly**
odins tests succeed but nothing beyond that
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc
- I (tried to) build this PR locally for these architectures:
- aarch64-musl
- armv7l
- armv6l-musl
arms do not (cross)build, for some reason odins build script doesn't pick up on the arch(it uses `uname -m` to determine it) and tries to use `-march=native` instead of intended `-mcpu=native`
A patch file from https://github.com/void-linux/void-packages/pull/48940.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-48940.patch --]
[-- Type: text/x-diff, Size: 2328 bytes --]
From 041e29606bf95b213a751b5f8b4630c6ca9675e9 Mon Sep 17 00:00:00 2001
From: flp5 <fluentpwn@gmail.com>
Date: Sun, 25 Feb 2024 18:12:05 +0000
Subject: [PATCH 1/2] New package: odin-2024.02
---
srcpkgs/odin/template | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
create mode 100644 srcpkgs/odin/template
diff --git a/srcpkgs/odin/template b/srcpkgs/odin/template
new file mode 100644
index 0000000000000..67573621973ba
--- /dev/null
+++ b/srcpkgs/odin/template
@@ -0,0 +1,32 @@
+# Template file for 'odin'
+pkgname=odin
+version=2024.02
+revision=1
+_ver=${version//./-}
+build_style="gnu-makefile"
+make_build_target="release_native"
+hostmakedepends="clang llvm17 llvm17-devel"
+depends="clang llvm17"
+short_desc="Data-Oriented Language for Sane Software Development"
+maintainer="flp5 <fluentpwn@tutanota.com>"
+license="BSD-3-Clause"
+homepage="https://odin-lang.org/"
+distfiles="https://github.com/odin-lang/Odin/archive/refs/tags/dev-${_ver}.tar.gz"
+checksum=29ce1e8dc6467dd1b7c66ee6940cffed1a2872127b9ec0d8aa0710abecdeec52
+nostrip=yes
+
+do_install() {
+ vmkdir opt/odin
+ vmkdir usr/bin
+
+ vcopy "odin" opt/odin
+ vcopy "base" opt/odin
+ vcopy "core" opt/odin
+ vcopy "shared" opt/odin
+ vcopy "vendor" opt/odin
+ ln -s /opt/odin/odin ${DESTDIR}/usr/bin/odin
+
+ vlicense LICENSE
+ vdoc README.md
+ vdoc PROPOSAL-PROCESS.md
+}
From e102ddaa7f64b4a9d80e23db28bc7f172dd31946 Mon Sep 17 00:00:00 2001
From: flp5 <fluentpwn@gmail.com>
Date: Sun, 25 Feb 2024 18:12:08 +0000
Subject: [PATCH 2/2] New package: ols-0.1
---
srcpkgs/ols/template | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
create mode 100644 srcpkgs/ols/template
diff --git a/srcpkgs/ols/template b/srcpkgs/ols/template
new file mode 100644
index 0000000000000..0d85f4be4b7d4
--- /dev/null
+++ b/srcpkgs/ols/template
@@ -0,0 +1,22 @@
+pkgname=ols
+version=0.1
+_ver="nightly"
+revision=1
+hostmakedepends="odin clang"
+short_desc="Language server for Odin"
+maintainer="flp5 <fluentpwn@tutanota.com>"
+license="MIT"
+homepage="https://github.com/DanielGavin/ols"
+distfiles="${homepage}/archive/refs/tags/${_ver}.tar.gz"
+checksum=668658487d47343b1fc4a738283ebbeed5dcd4ab0bf39ebebb9257c2d6d39012
+nopie=yes
+
+do_build() {
+ ./build.sh
+}
+
+do_install() {
+ vlicense LICENSE
+ vdoc README.md
+ vbin ols
+}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-02-25 18:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-25 18:38 [PR PATCH] add packages odin, ols flp5
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).