summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Maclennan2021-08-05 23:03:25 +0300
committerCaleb Maclennan2021-08-05 23:03:25 +0300
commitc47b231549772d8c71d0cd05a909eb9d7dfaf52e (patch)
treea93e2097a3c417b31521db2f2a20fd842efc79a1
parent52538099bbfe9614fa22e571b9360944c49e1a04 (diff)
downloadaur-c47b231549772d8c71d0cd05a909eb9d7dfaf52e.tar.gz
Follow new Rust package guidelines
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD18
2 files changed, 13 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9849f776cd3..ed61057bcf1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,16 @@
pkgbase = comrak-git
pkgdesc = CommonMark + GFM compatible Markdown parser and renderer
- pkgver = 0.8.2.r2.g1a802a8
+ pkgver = 0.11.0.r1.g49eef43
pkgrel = 1
url = https://github.com/kivikakk/comrak
arch = x86_64
arch = i686
license = BSD
- makedepends = cargo-nightly
+ makedepends = cargo
makedepends = git
- makedepends = rust-nightly
- makedepends = rustup
- provides = comrak
+ provides = comrak=0.11.0.r1.g49eef43
conflicts = comrak
source = git+https://github.com/kivikakk/comrak.git
sha256sums = SKIP
pkgname = comrak-git
-
diff --git a/PKGBUILD b/PKGBUILD
index 21a5dbfc2e0..b79b168ea49 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,15 +1,16 @@
# Maintainer: Caleb Maclennan <caleb@alerque.com>
pkgname=comrak-git
-pkgver=0.8.2.r2.g1a802a8
+pkgver=0.11.0.r1.g49eef43
pkgrel=1
pkgdesc='CommonMark + GFM compatible Markdown parser and renderer'
-arch=('x86_64' 'i686')
+arch=(x86_64 i686)
url="https://github.com/kivikakk/${pkgname%-git}"
-license=('BSD')
-provides=("${pkgname%-git}")
+license=(BSD)
+provides=("${pkgname%-git}=$pkgver")
conflicts=("${pkgname%-git}")
-makedepends=('cargo-nightly' 'git' 'rust-nightly' 'rustup')
+makedepends=(cargo
+ git)
source=("git+$url.git")
sha256sums=('SKIP')
@@ -21,17 +22,18 @@ pkgver() {
prepare() {
cd "${pkgname%-git}"
- cargo fetch
+ cargo update
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "${pkgname%-git}"
- cargo build --release --locked --features clap
+ cargo build --frozen --release --all-features
}
check() {
cd "${pkgname%-git}"
- cargo test --release --locked
+ cargo test --frozen --all-features
}
package () {