|
|
|
@@ -1,5 +1,5 @@
|
|
|
|
pkgname = "rustc"
|
|
|
|
pkgname = "rustc" # TODO WEN UPDATING VERSION, RENEW BOOTSTRAP.TOML!!!!!
|
|
|
|
pkgver = "1.91.0"
|
|
|
|
pkgver = "1.92.0"
|
|
|
|
source = f"https://static.rust-lang.org/dist/rustc-{pkgver}-src.tar.xz"
|
|
|
|
source = f"https://static.rust-lang.org/dist/rustc-{pkgver}-src.tar.xz"
|
|
|
|
builddir = f"/tmp/fempkg/build/{pkgname}/{pkgname}-{pkgver}-src"
|
|
|
|
builddir = f"/tmp/fempkg/build/{pkgname}/{pkgname}-{pkgver}-src"
|
|
|
|
fembuilddir = f"/tmp/fempkg/build/{pkgname}"
|
|
|
|
fembuilddir = f"/tmp/fempkg/build/{pkgname}"
|
|
|
|
@@ -21,7 +21,8 @@ build = [
|
|
|
|
f"cd {builddir} && {exports} && ./x.py build",
|
|
|
|
f"cd {builddir} && {exports} && ./x.py build",
|
|
|
|
f"cd {builddir} && {exports} && DESTDIR={destdir} ./x.py install",
|
|
|
|
f"cd {builddir} && {exports} && DESTDIR={destdir} ./x.py install",
|
|
|
|
f"cd {builddir} && {exports} && rm -fv {destdir}/opt/rustc-{pkgver}/share/doc/rustc-{pkgver}/*.old",
|
|
|
|
f"cd {builddir} && {exports} && rm -fv {destdir}/opt/rustc-{pkgver}/share/doc/rustc-{pkgver}/*.old",
|
|
|
|
f"cd {builddir} && {exports} && install -vm644 README.md {destdir}/opt/rustc-{pkgver}/share/doc/rustc-{pkgver}",
|
|
|
|
f"mkdir -p {destdir}/opt/rustc-{pkgver}/share/doc/rustc-{pkgver}/",
|
|
|
|
|
|
|
|
f"cd {builddir} && {exports} && install -vm644 README.md {destdir}/opt/rustc-{pkgver}/share/doc/rustc-{pkgver}/README.md",
|
|
|
|
f"cd {builddir} && {exports} && install -vdm755 {destdir}/usr/share/zsh/site-functions",
|
|
|
|
f"cd {builddir} && {exports} && install -vdm755 {destdir}/usr/share/zsh/site-functions",
|
|
|
|
f"cd {builddir} && {exports} && install -vdm755 {destdir}/usr/share/bash-completion/completions",
|
|
|
|
f"cd {builddir} && {exports} && install -vdm755 {destdir}/usr/share/bash-completion/completions",
|
|
|
|
f"cd {builddir} && {exports} && ln -sfv {destdir}/opt/rustc/share/zsh/site-functions/_cargo {destdir}/usr/share/zsh/site-functions",
|
|
|
|
f"cd {builddir} && {exports} && ln -sfv {destdir}/opt/rustc/share/zsh/site-functions/_cargo {destdir}/usr/share/zsh/site-functions",
|
|
|
|
@@ -44,5 +45,6 @@ build = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
triggers = [
|
|
|
|
triggers = [
|
|
|
|
f"cd /tmp && find /opt -maxdepth 1 -type d -name \"rustc-*\" ! -name \"rustc-{pkgver}\" -exec rm -rf {{}} +"
|
|
|
|
f"cd /tmp && find /opt -maxdepth 1 -type d -name \"rustc-*\" ! -name \"rustc-{pkgver}\" -exec rm -rf {{}} +",
|
|
|
|
|
|
|
|
f"ldconfig",
|
|
|
|
]
|
|
|
|
]
|