diff options
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 16 |
2 files changed, 13 insertions, 10 deletions
@@ -1,14 +1,15 @@ pkgbase = novel-cli - pkgdesc = tool for downloading novels from the web, manipulating text, and generating EPUB + pkgdesc = tool for downloading novels from the web, manipulating text, and generating EPUBs pkgver = 0.3.1 - pkgrel = 0 + pkgrel = 1 url = https://github.com/novel-rs/cli arch = x86_64 license = Apache license = MIT - makedepends = cargo + makedepends = rustup makedepends = clang makedepends = cmake + makedepends = sqlite depends = gcc-libs source = https://github.com/novel-rs/cli/archive/0.3.1/cli-0.3.1.tar.gz sha256sums = 01dca1b084488b455d8355bbfeea783d68b8a795d7166c82f0eef70daaa5e7e7 @@ -2,35 +2,37 @@ pkgname=novel-cli pkgver=0.3.1 -pkgrel=0 -pkgdesc='tool for downloading novels from the web, manipulating text, and generating EPUB ' +pkgrel=1 +pkgdesc='tool for downloading novels from the web, manipulating text, and generating EPUBs' arch=(x86_64) url='https://github.com/novel-rs/cli' license=(Apache MIT) depends=(gcc-libs) -makedepends=(cargo +makedepends=(rustup clang - cmake) + cmake + sqlite) _archive="cli-$pkgver" source=("$url/archive/$pkgver/$_archive.tar.gz") sha256sums=('01dca1b084488b455d8355bbfeea783d68b8a795d7166c82f0eef70daaa5e7e7') prepare() { cd "$_archive" - cargo fetch --locked --target "$CARCH-unknown-linux-gnu" + rustup toolchain install stable + cargo +stable fetch --locked --target "$CARCH-unknown-linux-gnu" } build() { cd "$_archive" export RUSTUP_TOOLCHAIN=stable export CARGO_TARGET_DIR=target - cargo build --frozen --release --all-features + cargo +stable build --frozen --release --all-features } check() { cd "$_archive" export RUSTUP_TOOLCHAIN=stable - cargo test --frozen --all-features + cargo +stable test --frozen --all-features } package() { |