summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
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
}