Package Details: odin-dev-bin 2022.10-1

Git Clone URL: https://aur.archlinux.org/odin-dev-bin.git (read-only, click to copy)
Package Base: odin-dev-bin
Description: A fast, concise, readable, pragmatic and open sourced programming language.
Upstream URL: https://odin-lang.org/
Licenses: BSD
Conflicts: odin
Provides: odin
Submitter: FabioLolix
Maintainer: None
Last Packager: FabioLolix
Votes: 4
Popularity: 0.000000
First Submitted: 2021-08-23 22:11 (UTC)
Last Updated: 2022-10-19 21:45 (UTC)

Latest Comments

FabioLolix commented on 2022-04-13 17:43 (UTC)

@haroldglasses there is no need to both flag OOD and comment that pkgbuild is OOD in the span of 2 minutes, only flag OOD

haroldglasses commented on 2022-04-13 17:27 (UTC)

Package just updated to dev-2022-04

demizer commented on 2022-01-31 07:41 (UTC)

Updated PKGBUILD:

# Maintainer: FabioLolix
# Maintainer: Hanna Rose <imhxnna@gmail.com>
# Contributor: Kaizhao Zhang <zhangkaizhao@gmail.com>

pkgname=odin-dev-bin
_pkgver=2022-01
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="A fast, concise, readable, pragmatic and open sourced programming language."
arch=(x86_64)
url="https://odin-lang.org/"
license=(BSD)
depends=(llvm11-libs)
makedepends=(patchelf)
provides=(odin)
conflicts=(odin)
options=(!strip)
source=("https://github.com/odin-lang/Odin/archive/refs/tags/dev-${_pkgver}.tar.gz")
source_x86_64=("https://github.com/odin-lang/Odin/releases/download/dev-${_pkgver}/odin-ubuntu-amd64-dev-${_pkgver}.zip")
sha256sums=('44fcae303462f95b042423e93f08e096b14a55f2db1cfcf3d6b5a64f10621833')
sha256sums_x86_64=('cd702e10367b466b251dc5a693c4bcc1cb8c2ea09dbee0ec8141ee69a6259b96')

build() {
  patchelf --replace-needed libLLVM-11.so.1 libLLVM-11.so odin
}

package() {
  install -d "${pkgdir}/usr/bin"
  install -d "${pkgdir}/usr/lib/odin"

  chmod +x odin
  cp odin "${pkgdir}/usr/lib/odin/odin"
  cp -r core "${pkgdir}/usr/lib/odin/core"

  ln -s "/usr/lib/odin/odin" "${pkgdir}/usr/bin/odin"

  install -Dm644 "${srcdir}/Odin-dev-${_pkgver}/README.md" "${pkgdir}/usr/share/doc/odin/README.md"
  install -Dm644 "${srcdir}/Odin-dev-${_pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  cp -r "${srcdir}/Odin-dev-${_pkgver}/examples" "${pkgdir}/usr/share/doc/odin/examples"
  cp -r "${srcdir}/Odin-dev-${_pkgver}/vendor" "${pkgdir}/usr/lib/odin/vendor"
}

pyxel commented on 2021-08-23 16:07 (UTC)

FabioLolix: thanks! i'll update the pkgbuild to reflect this.

FabioLolix commented on 2021-08-23 15:22 (UTC)

Hello,

  • provides/conflicts 'odin' only is enough
  • typing license as 'BSD' only is enough
  • this is repackaging the dev version while this is a stable pkgbuild, last stable is v0.13.0, make an odin-dev-bin pkgbuild for the dev builds
  • using pkgrel in source is prohibited

For pkgver use

  • _pkgver=2021-08
  • pkgver=${_pkgver//-/.}

This will replace - with . so makepkg don't complain and use ${_pkgver} in source=()

pyxel commented on 2021-08-22 11:09 (UTC)

I have adopted this package and updated it to use the latest dev build from the github.

zhangkaizhao commented on 2020-08-31 10:31 (UTC)

For the latest version (0.13.0 at the moment) please use https://aur.archlinux.org/packages/odin/ to compile Odin yourself unless there is an official binary package available.