commit decd14c07de8c9cd4da40d4d73b9458d5a4730fd Author: may Date: Sat Feb 21 17:54:39 2026 +0100 initial commit diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000000000..82116b8147113 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = steel-bin + pkgdesc = An embedded scheme interpreter in Rust + pkgver = 0.8.2 + pkgrel = 1 + url = https://github.com/mattwparas/steel + arch = x86_64 + license = Apache-2.0 OR MIT + makedepends = setconf + depends = glibc + provides = steel + conflicts = steel + source = https://github.com/mattwparas/steel/releases/download/v0.8.2/steel-interpreter-x86_64-unknown-linux-gnu.tar.xz + source = https://github.com/mattwparas/steel/releases/download/v0.8.2/steel-forge-x86_64-unknown-linux-gnu.tar.xz + source = https://github.com/mattwparas/steel/releases/download/v0.8.2/steel-language-server-x86_64-unknown-linux-gnu.tar.xz + source = https://github.com/mattwparas/steel/releases/download/v0.8.2/cargo-steel-lib-x86_64-unknown-linux-gnu.tar.xz + source = https://github.com/mattwparas/steel/releases/download/v0.8.2/steel-source.tar.gz + source = https://raw.githubusercontent.com/mattwparas/steel/refs/tags/v0.8.2/LICENSE-APACHE + source = https://raw.githubusercontent.com/mattwparas/steel/refs/tags/v0.8.2/LICENSE-MIT + sha256sums = d0334d14168df4b88bb16bd4dbdfe03ab4bac147122f1be0c2ec5f083bf726fe + sha256sums = 11bafc23cf8a93655fbfc9a06d7cf0015173ad8b40abd999b26d496e27cadd70 + sha256sums = d6cbc621cb76d132f91236acbba41868a0d84e95aaa412c0bd07e7ca0460810a + sha256sums = 44ca1d46e6978852db5e72b8082b198cc3e3a2c1fe5f09928d1d2d0542a9c24f + sha256sums = 3ba6a00631cf0dd32ff117003b57ee131c7ed423a8cc19438ea6d2806c1375b3 + sha256sums = c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 + sha256sums = 259767bca3402a6a2d576f97f7034adf26337f51920aa8887380ae4f552f33f2 + +pkgname = steel-bin diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000..24b5f7efb0a7d --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +# ignore everything +* + +# except for +!.gitignore +!PKGBUILD +!.SRCINFO diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000000000..a8562214cca2a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,61 @@ +# Maintainer: may + +pkgname=steel-bin +_pkgname=steel +pkgver=0.8.2 +pkgrel=1 +pkgdesc='An embedded scheme interpreter in Rust' +arch=('x86_64') +url='https://github.com/mattwparas/steel' +license=('Apache-2.0 OR MIT') +depends=('glibc') +optdepends=() +makedepends=('setconf') +provides=("${_pkgname}") +conflicts=("${_pkgname}") +_source="https://github.com/mattwparas/${_pkgname}" +_download="${_source}/releases/download" +source=("${_download}/v${pkgver}/steel-interpreter-x86_64-unknown-linux-gnu.tar.xz" + "${_download}/v${pkgver}/steel-forge-x86_64-unknown-linux-gnu.tar.xz" + "${_download}/v${pkgver}/steel-language-server-x86_64-unknown-linux-gnu.tar.xz" + "${_download}/v${pkgver}/cargo-steel-lib-x86_64-unknown-linux-gnu.tar.xz" + "${_download}/v${pkgver}/steel-source.tar.gz" + "https://raw.githubusercontent.com/mattwparas/${_pkgname}/refs/tags/v${pkgver}/LICENSE-APACHE" + "https://raw.githubusercontent.com/mattwparas/${_pkgname}/refs/tags/v${pkgver}/LICENSE-MIT") +sha256sums=('d0334d14168df4b88bb16bd4dbdfe03ab4bac147122f1be0c2ec5f083bf726fe' + '11bafc23cf8a93655fbfc9a06d7cf0015173ad8b40abd999b26d496e27cadd70' + 'd6cbc621cb76d132f91236acbba41868a0d84e95aaa412c0bd07e7ca0460810a' + '44ca1d46e6978852db5e72b8082b198cc3e3a2c1fe5f09928d1d2d0542a9c24f' + '3ba6a00631cf0dd32ff117003b57ee131c7ed423a8cc19438ea6d2806c1375b3' + 'c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4' + '259767bca3402a6a2d576f97f7034adf26337f51920aa8887380ae4f552f33f2') + +prepare() { + setconf -a steel.sh 'export STEEL_SEARCH_PATHS=/usr/share/steel/cogs' +} + +build() { + export STEEL_HOME=share + "./steel-interpreter-x86_64-unknown-linux-gnu/${_pkgname}" 'source/cogs/install.scm' 'source/cogs' +} + +package() { + install -Dm755 "steel-interpreter-x86_64-unknown-linux-gnu/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}" + install -Dm755 'steel-forge-x86_64-unknown-linux-gnu/forge' "${pkgdir}/usr/bin/forge" + install -Dm755 'steel-language-server-x86_64-unknown-linux-gnu/steel-language-server' "${pkgdir}/usr/bin/steel-language-server" + install -Dm755 'cargo-steel-lib-x86_64-unknown-linux-gnu/cargo-steel-lib' "${pkgdir}/usr/bin/cargo-steel-lib" + + install -Dm644 <("${pkgdir}/usr/bin/${_pkgname}" "completions" "bash" ) "${pkgdir}/usr/share/bash-completion/completions/${_pkgname}" + install -Dm644 <("${pkgdir}/usr/bin/${_pkgname}" "completions" "zsh" ) "${pkgdir}/usr/share/zsh/site-functions/_${_pkgname}" + install -Dm644 <("${pkgdir}/usr/bin/${_pkgname}" "completions" "fish" ) "${pkgdir}/usr/share/fish/vendor_completions.d/${_pkgname}.fish" + install -Dm644 <("${pkgdir}/usr/bin/${_pkgname}" "completions" "elvish") "${pkgdir}/usr/share/elvish/lib/${_pkgname}.elv" + + install -Dm644 'LICENSE-APACHE' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-APACHE" + install -Dm644 'LICENSE-MIT' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT" + + install -Dm644 'steel.sh' "${pkgdir}/etc/profile.d/steel.sh" + + for file in $(find share -type f -printf "%P\n"); do + install -Dm644 "share/${file}" "${pkgdir}/usr/share/steel/${file}" + done +}