summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorCaleb Maclennan2020-05-29 15:26:30 +0300
committerCaleb Maclennan2020-05-29 15:26:30 +0300
commit414d82ff703516515c885ebe2ab57d01644f87f4 (patch)
treeff8fb7ca86085c548a2fadeffb93b7268dd9fc50 /PKGBUILD
parent8ea528f6fc60703f5aa5bc901eb72b3cec7b965e (diff)
downloadaur-414d82ff703516515c885ebe2ab57d01644f87f4.tar.gz
upgpkg: comrak-git 0.7.0.r17.g500d73f-3
Setup to use Rust nightly toolchain required by Git HEAD use of #[feature]
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD18
1 files changed, 12 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index fe7ebf1ff38..3c85ddec76d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,14 @@
pkgname=comrak-git
pkgver=0.7.0.r17.g500d73f
-pkgrel=2
+pkgrel=3
pkgdesc='CommonMark + GFM compatible Markdown parser and renderer'
arch=('x86_64' 'i686')
url="https://github.com/kivikakk/${pkgname%-git}"
-license=('MIT' 'custom')
+license=('BSD')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
-makedepends=('cargo' 'git' 'rust')
+makedepends=('cargo-nightly' 'git' 'rust-nightly' 'rustup')
source=("git+$url.git")
sha256sums=('SKIP')
@@ -21,16 +21,22 @@ pkgver() {
prepare() {
cd "${pkgname%-git}"
- cargo fetch
+ rustup install --no-self-update nightly
+ cargo +nightly fetch
}
build() {
cd "${pkgname%-git}"
- cargo build --release --locked --all-features
+ cargo +nightly build --release --locked --all-features
+}
+
+check() {
+ cd "${pkgname%-git}"
+ cargo +nightly test --release --locked
}
package () {
cd "${pkgname%-git}"
- install -Dm0755 -t "$pkgdir/usr/bin/" target/release/${pkgname%-git}
+ install -Dm755 -t "$pkgdir/usr/bin/" "target/release/${pkgname%-git}"
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING
}