summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Maclennan2020-05-29 15:26:30 +0300
committerCaleb Maclennan2020-05-29 15:26:30 +0300
commit414d82ff703516515c885ebe2ab57d01644f87f4 (patch)
treeff8fb7ca86085c548a2fadeffb93b7268dd9fc50
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]
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD18
2 files changed, 17 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index da830725e43..ae4f248c21a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,15 @@
pkgbase = comrak-git
pkgdesc = CommonMark + GFM compatible Markdown parser and renderer
pkgver = 0.7.0.r17.g500d73f
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/kivikakk/comrak
arch = x86_64
arch = i686
- license = MIT
- license = custom
- makedepends = cargo
+ license = BSD
+ makedepends = cargo-nightly
makedepends = git
- makedepends = rust
+ makedepends = rust-nightly
+ makedepends = rustup
provides = comrak
conflicts = comrak
source = git+https://github.com/kivikakk/comrak.git
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
}