diff options
author | guyinjeans | 2018-02-03 19:03:33 -0800 |
---|---|---|
committer | guyinjeans | 2018-02-03 19:03:33 -0800 |
commit | fb2ff80f3ae13a9b4979ece34c0e08d34d8d1c63 (patch) | |
tree | 0af1014449074e161420307eee99b07236d97e3c | |
download | aur-fb2ff80f3ae13a9b4979ece34c0e08d34d8d1c63.tar.gz |
add odin-git
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8ada89a57957 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = odin-git + pkgdesc = compiler for the odin programming language + pkgver = r973.0134c38 + pkgrel = 1 + url = http://github.com/odin-lang/odin + arch = x86_64 + license = BSD + makedepends = clang + makedepends = llvm + makedepends = git + provides = odin + conflicts = odin + source = git+https://github.com/odin-lang/odin.git + sha256sums = SKIP + +pkgname = odin-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1d37d90a5ecd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: J.D. Broberg <jdbroberg72 at gmail dot com> + +pkgname=odin-git +_pkgname=odin +pkgver=r973.0134c38 +pkgrel=1 +pkgdesc="compiler for the odin programming language" +arch=('x86_64') +url="http://github.com/odin-lang/odin" +license=('BSD') +source=('git+https://github.com/odin-lang/odin.git') +makedepends=('clang' 'llvm' 'git') +conflicts=('odin') +provides=('odin') +sha256sums=('SKIP') + +pkgver() { + cd "${_pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${_pkgname}" + make debug +} + +package() { + cd "${_pkgname}" + + install -d "${pkgdir}/opt/${_pkgname}" + install -Dm755 "./odin" "${pkgdir}/opt/${_pkgname}/odin" + + install -d "${pkgdir}/usr/bin" + ln -sf "${pkgdir}/opt/${_pkgname}/odin" "${pkgdir}/usr/bin/odin" + + cp -av "./core" "${pkgdir}/opt/${_pkgname}" + + install -Dm644 "./LICENSE" "${pkgdir}/opt/${_pkgname}/LICENSE" +} |