Skip to content

Instantly share code, notes, and snippets.

@Libbum
Created March 11, 2018 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Libbum/ccd5be184bc6a6eceedbd45f05678b44 to your computer and use it in GitHub Desktop.
Save Libbum/ccd5be184bc6a6eceedbd45f05678b44 to your computer and use it in GitHub Desktop.
rustup-dummy
pkgname=rustup-dummy
pkgver=0.0.1
pkgrel=1
pkgdesc='Makes pacman think that rustup, rust, and cargo are installed. (For users who installed via rustup.rs)'
arch=('any')
license=('custom:CC0')
provides=('cargo' 'rust' 'rustup')
source=('https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt')
md5sums=('65d3616852dbf7b1a6d4b53b00626032')
package() {
install -D -m644 legalcode.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
cat << EOF
╭────────────────────────────────────────────────────╮
│ │
│ Make sure that you actually have rust installed! │
│ 'curl https://sh.rustup.rs -sSf | sh' │
│ │
╰────────────────────────────────────────────────────╯
EOF
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment