diff options
author | Chris Lane | 2021-10-08 09:16:15 +0100 |
---|---|---|
committer | Chris Lane | 2021-10-08 09:16:15 +0100 |
commit | 5dfcaa3e4bc7ea20543c297344fc817f8e377039 (patch) | |
tree | c1545c7b19fb7e9fb593fac41d40043762d3078c | |
parent | acd3a1dfd97330a30ce9409b1eab76714eb51b21 (diff) | |
download | aur-ripgrep-all.tar.gz |
Update to follow rust packaging guidelines
Also disabled lto since this breaks the build
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 17 |
2 files changed, 15 insertions, 7 deletions
@@ -1,14 +1,13 @@ pkgbase = ripgrep-all pkgdesc = rga: ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, etc. pkgver = 0.9.6 - pkgrel = 1 + pkgrel = 2 url = https://github.com/phiresky/ripgrep-all arch = i686 arch = x86_64 arch = armv6h arch = armv7h license = AGPL3 - makedepends = rust makedepends = cargo depends = ripgrep optdepends = ffmpeg: for the ffmpeg adapter @@ -18,8 +17,8 @@ pkgbase = ripgrep-all optdepends = tesseract: for the tesseract adapter conflicts = ripgrep-all-git conflicts = ripgrep-all-bin + options = !lto source = ripgrep-all-0.9.6::https://github.com/phiresky/ripgrep-all/archive/v0.9.6.tar.gz sha512sums = 45fc258e8ef44ddd7ce6b4c7dc5c60a439c8e5aafd253ea41621afcc50aaecd300d8792c4cbdc9247a5656d9c3db0a33053de96ca41f0831421ea8ce382ca7de pkgname = ripgrep-all - @@ -4,13 +4,13 @@ pkgname=ripgrep-all pkgver=0.9.6 -pkgrel=1 +pkgrel=2 pkgdesc="rga: ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, etc." arch=('i686' 'x86_64' 'armv6h' 'armv7h') url="https://github.com/phiresky/ripgrep-all" license=('AGPL3') depends=('ripgrep') -makedepends=('rust' 'cargo') +makedepends=('cargo') optdepends=( 'ffmpeg: for the ffmpeg adapter' 'graphicsmagick: for the pdfpages adapter' @@ -20,15 +20,24 @@ optdepends=( conflicts=("${pkgname}-git" "${pkgname}-bin") source=("${pkgname}-${pkgver}"::"${url}/archive/v${pkgver}.tar.gz") sha512sums=('45fc258e8ef44ddd7ce6b4c7dc5c60a439c8e5aafd253ea41621afcc50aaecd300d8792c4cbdc9247a5656d9c3db0a33053de96ca41f0831421ea8ce382ca7de') +options=(!lto) + +prepare() { + cd "${srcdir}/ripgrep-all-${pkgver}" + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} build() { cd "${srcdir}/ripgrep-all-${pkgver}" - cargo build --release --locked --target-dir=$PWD/target + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release --all-features } check() { cd "${srcdir}/ripgrep-all-${pkgver}" - cargo test --release --locked --target-dir=$PWD/target + export RUSTUP_TOOLCHAIN=stable + cargo test --frozen --all-features } package() { |