summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaizhao Zhang2020-08-31 18:21:33 +0800
committerKaizhao Zhang2020-08-31 18:21:33 +0800
commit4231497e83fa7f2e41956c9f70d4824452657fde (patch)
treed129063663b0aff0cc8c9cefc0820dd44edadd9b
downloadaur-4231497e83fa7f2e41956c9f70d4824452657fde.tar.gz
Initial import with version 0.13.0
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore7
-rw-r--r--PKGBUILD41
3 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..dd0eb7c9c60
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = odin
+ pkgdesc = A fast, concise, readable, pragmatic and open sourced programming language.
+ pkgver = 0.13.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/archive/v0.13.0.tar.gz
+ sha256sums = ae88c4dcbb8fdf37f51abc701d94fb4b2a8270f65be71063e0f85a321d54cdf0
+
+pkgname = odin
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..11762378c06
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+*
+!.gitignore
+!PKGBUILD
+!*.patch
+!*.install
+!*.sysusers
+!.SRCINFO
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fb1860c961c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Kaizhao Zhang <zhangkaizhao@gmail.com>
+
+_srcname=Odin
+
+pkgname=odin
+pkgver=0.13.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/archive/v${pkgver}.tar.gz"
+)
+sha256sums=(
+ 'ae88c4dcbb8fdf37f51abc701d94fb4b2a8270f65be71063e0f85a321d54cdf0'
+)
+
+build() {
+ cd "${srcdir}/${_srcname}-${pkgver}/"
+ make release
+}
+
+package() {
+ install -d "${pkgdir}/usr/bin"
+ install -d "${pkgdir}/usr/lib/${pkgname}"
+
+ cd "${srcdir}/${_srcname}-${pkgver}/"
+
+ cp odin "${pkgdir}/usr/lib/${pkgname}/odin"
+ cp -r core "${pkgdir}/usr/lib/${pkgname}/core"
+
+ ln -s "/usr/lib/${pkgname}/odin" "${pkgdir}/usr/bin/odin"
+
+ install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
+ install -Dm644 PROPOSAL-PROCESS.md "${pkgdir}/usr/share/doc/${pkgname}/PROPOSAL-PROCESS.md"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}