blob: c2f8ebb8e82ddfeeb970583713b346ba26b6f6ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: Dimitri Merejkowsky <dimitri@dmerej.info>
pkgname=ruplacer
pkgver="0.10.0"
pkgrel=1
pkgdesc="Find and replace text in source files"
url="http://github.com/your-tools/ruplacer"
arch=('x86_64')
license=('MIT')
depends=('glibc' 'gcc-libs')
makedepends=('cargo')
source=("ruplacer-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('64570d46e9d3587903bc6d553da5f1581be9771a08672fd7a1b08e65ee0e008a')
prepare() {
cd "${pkgname}-${pkgver}"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "${pkgname}-${pkgver}"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
check() {
cd "${pkgname}-${pkgver}"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo test --frozen --release --all-features
}
package() {
cd "${pkgname}-${pkgver}"
install -Dm755 target/release/ruplacer "${pkgdir}/usr/bin/ruplacer"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/ruplacer/LICENSE"
}
|