summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaizhao Zhang2019-08-01 15:16:45 +0800
committerKaizhao Zhang2019-08-01 15:16:45 +0800
commita6a50d6550e39358f32af75a02a40302415af6a7 (patch)
treea937969d6869a795d5ed02099972af063022bf6a
downloadaur-odin-bin.tar.gz
Initial import with version 0.10.0
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore6
-rw-r--r--PKGBUILD35
3 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d343c556235
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = odin-bin
+ pkgdesc = A fast, concise, readable, pragmatic and open sourced programming language.
+ pkgver = 0.10.0
+ pkgrel = 1
+ url = https://odin-lang.org/
+ arch = x86_64
+ license = BSD-2-Clause
+ depends = llvm
+ depends = clang
+ provides = odin
+ conflicts = odin
+ source = https://github.com/odin-lang/Odin/releases/download/v0.10.0/odin-v0.10.0-linux-amd64.tar.gz
+ sha256sums = d934d95a080cd24fcff67ede00117bd8fde4de7110214cbb7138b7a74b22b552
+
+pkgname = odin-bin
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..fb476c40885
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+*
+!.gitignore
+!PKGBUILD
+!*.install
+!*.sysusers
+!.SRCINFO
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f9239090a09
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Kaizhao Zhang <zhangkaizhao@gmail.com>
+
+_srcname=odin
+
+pkgname=odin-bin
+pkgver=0.10.0
+pkgrel=1
+pkgdesc="A fast, concise, readable, pragmatic and open sourced programming language."
+arch=('x86_64')
+url="https://odin-lang.org/"
+license=('BSD-2-Clause')
+depends=('llvm' 'clang')
+provides=('odin')
+conflicts=('odin')
+source=(
+ "https://github.com/odin-lang/Odin/releases/download/v${pkgver}/${_srcname}-v${pkgver}-linux-amd64.tar.gz"
+)
+sha256sums=(
+ 'd934d95a080cd24fcff67ede00117bd8fde4de7110214cbb7138b7a74b22b552'
+)
+
+package() {
+ install -d "${pkgdir}/usr/bin"
+ install -d "${pkgdir}/usr/lib/${_srcname}"
+
+ cd "${srcdir}/${_srcname}-v${pkgver}-linux-amd64/"
+
+ cp odin "${pkgdir}/usr/lib/${_srcname}/odin"
+ cp -r core "${pkgdir}/usr/lib/${_srcname}/core"
+
+ ln -s "/usr/lib/${_srcname}/odin" "${pkgdir}/usr/bin/odin"
+
+ install -Dm644 README.md "${pkgdir}/usr/share/doc/${_srcname}/README.md"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_srcname}/LICENSE"
+}