diff options
author | s-ol | 2019-05-10 23:01:38 +0200 |
---|---|---|
committer | s-ol | 2019-05-10 23:01:38 +0200 |
commit | 90aaefc672371b42f79cccfd3e1ba83f45beca86 (patch) | |
tree | e4c9168b88f5821860167106726f94374ed53fa7 | |
download | aur-90aaefc672371b42f79cccfd3e1ba83f45beca86.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 26 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 46 | ||||
-rw-r--r-- | system-wide-SPIRV-Tools.patch | 43 |
4 files changed, 120 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0ea63914a0f7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,26 @@ +pkgbase = scopes-hg + pkgdesc = Scopes is a retargetable programming language & infrastructure + pkgver = r1775+.c1e8ee6bd379+ + pkgrel = 1 + url = https://scopes.rocks + arch = x86_64 + license = MIT + makedepends = mercurial + makedepends = llvm + makedepends = genie-git + makedepends = make + makedepends = cmake + makedepends = spirv-headers + depends = clang + depends = spirv-tools + provides = scopes + conflicts = scopes + source = hg+https://hg@bitbucket.org/duangle/scopes + source = SPIRV-Cross.tar.gz::https://github.com/KhronosGroup/SPIRV-Cross/archive/2019-04-26.tar.gz + source = system-wide-SPIRV-Tools.patch + md5sums = SKIP + md5sums = 844c06fc801d321e060fd761b56fc246 + md5sums = cb97d62b263433cd5ee45cb3f3761a4d + +pkgname = scopes-hg + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..0de4d69300ec --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/src +/pkg +/*.tar.gz +/*.pkg.tar +/scopes diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4bc68c08b24f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Sol Bekic <s+aur at s-ol dot nu> + +_pkgname=scopes +pkgname=$_pkgname-hg +pkgver=r1775+.c1e8ee6bd379+ +pkgrel=1 +pkgdesc="Scopes is a retargetable programming language & infrastructure" +url="https://scopes.rocks" +arch=('x86_64') +license=('MIT') +depends=('clang' 'spirv-tools') +makedepends=('mercurial' 'llvm' 'genie-git' 'make' 'cmake' 'spirv-headers') +conflicts=('scopes') +provides=('scopes') + +source=('hg+https://hg@bitbucket.org/duangle/scopes' + 'SPIRV-Cross.tar.gz::https://github.com/KhronosGroup/SPIRV-Cross/archive/2019-04-26.tar.gz' + 'system-wide-SPIRV-Tools.patch') +md5sums=('SKIP' + '844c06fc801d321e060fd761b56fc246' + 'cb97d62b263433cd5ee45cb3f3761a4d') + +prepare() { + rm -rf ${srcdir}/${_pkgname}/SPIRV-Cross + mv ${srcdir}/SPIRV-Cross-* ${srcdir}/${_pkgname}/SPIRV-Cross + patch ${srcdir}/${_pkgname}/genie.lua ${srcdir}/system-wide-SPIRV-Tools.patch +} + +build() { + cd ${srcdir}/${_pkgname} + genie gmake + make -C build config=release +} + +package() { + mkdir -p ${pkgdir}/usr/bin + mkdir -p ${pkgdir}/usr/lib + cp ${srcdir}/${_pkgname}/bin/scopes ${pkgdir}/usr/bin/ + cp ${srcdir}/${_pkgname}/bin/libscopesrt.so ${pkgdir}/usr/lib/ + cp -r ${srcdir}/${_pkgname}/lib/* ${pkgdir}/usr/lib/ +} + +pkgver() { + cd ${srcdir}/${_pkgname} + printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)" +} diff --git a/system-wide-SPIRV-Tools.patch b/system-wide-SPIRV-Tools.patch new file mode 100644 index 000000000000..71a529e177b9 --- /dev/null +++ b/system-wide-SPIRV-Tools.patch @@ -0,0 +1,43 @@ +--- genie.lua 2019-05-10 22:42:22.968066743 +0200 ++++ genie.lua 2019-05-10 22:43:56.023245116 +0200 +@@ -203,7 +203,6 @@ + includedirs { + "external/linenoise-ng/include", + "external", +- "SPIRV-Tools/include", + "include", + "." + } +@@ -277,8 +276,8 @@ + --"-Wl,--export-dynamic", + --"-rdynamic", + +- THISDIR .. "/SPIRV-Tools/build/source/opt/libSPIRV-Tools-opt.a", +- THISDIR .. "/SPIRV-Tools/build/source/libSPIRV-Tools.a" ++ "-lSPIRV-Tools-opt", ++ "-lSPIRV-Tools" + } + linkoptions(LLVM_LDFLAGS) + linkoptions { +@@ -368,8 +367,8 @@ + "-Wl,--stack,8388608" + } + linkoptions { +- THISDIR .. "/SPIRV-Tools/build/source/opt/libSPIRV-Tools-opt.a", +- THISDIR .. "/SPIRV-Tools/build/source/libSPIRV-Tools.a" ++ "-lSPIRV-Tools-opt", ++ "-lSPIRV-Tools" + } + linkoptions(LLVM_LDFLAGS) + linkoptions { +@@ -438,8 +437,8 @@ + } + + linkoptions { +- THISDIR .. "/SPIRV-Tools/build/source/opt/libSPIRV-Tools-opt.a", +- THISDIR .. "/SPIRV-Tools/build/source/libSPIRV-Tools.a" ++ "-lSPIRV-Tools-opt", ++ "-lSPIRV-Tools" + } + + linkoptions(LLVM_LDFLAGS) |