@@ -12,50 +12,50 @@ source=("$pkgname-$pkgver.tar.gz::https://github.com/andrewferrier/memy/archive/
1212sha256sums=(' ca46b47a06fd094ac20e2d881066fee9b5fe9f9470a05460bc8ffa76e22e1fe1' )
1313
1414prepare () {
15- cd " $srcdir /$pkgname -$pkgver "
16- export RUSTUP_TOOLCHAIN=stable
17- cargo fetch --locked --target " $( rustc -vV | sed -n ' s/host: //p' ) "
15+ cd " $srcdir /$pkgname -$pkgver "
16+ export RUSTUP_TOOLCHAIN=stable
17+ cargo fetch --locked --target " $( rustc -vV | sed -n ' s/host: //p' ) "
1818}
1919
2020build () {
21- cd " $srcdir /$pkgname -$pkgver "
22- export RUSTUP_TOOLCHAIN=stable
23- export CARGO_TARGET_DIR=target
24- # Strip GCC LTO flags: the bundled SQLite is compiled via the cc crate using
25- # CFLAGS, producing GCC GIMPLE IR. Arch's Rust uses lld, which cannot read
26- # GCC LTO IR, causing undefined symbol errors at link time.
27- CFLAGS=" ${CFLAGS// -flto*/ } "
28- cargo build --frozen --release
21+ cd " $srcdir /$pkgname -$pkgver "
22+ export RUSTUP_TOOLCHAIN=stable
23+ export CARGO_TARGET_DIR=target
24+ # Strip GCC LTO flags: the bundled SQLite is compiled via the cc crate using
25+ # CFLAGS, producing GCC GIMPLE IR. Arch's Rust uses lld, which cannot read
26+ # GCC LTO IR, causing undefined symbol errors at link time.
27+ CFLAGS=" ${CFLAGS// -flto*/ } "
28+ cargo build --frozen --release
2929}
3030
3131check () {
32- cd " $srcdir /$pkgname -$pkgver "
33- export RUSTUP_TOOLCHAIN=stable
34- export CARGO_TARGET_DIR=target
35- cargo test --frozen
32+ cd " $srcdir /$pkgname -$pkgver "
33+ export RUSTUP_TOOLCHAIN=stable
34+ export CARGO_TARGET_DIR=target
35+ cargo test --frozen
3636}
3737
3838package () {
39- cd " $srcdir /$pkgname -$pkgver "
39+ cd " $srcdir /$pkgname -$pkgver "
4040
41- install -Dm755 target/release/memy -t " $pkgdir /usr/bin/"
41+ install -Dm755 target/release/memy -t " $pkgdir /usr/bin/"
4242
43- install -Dm644 target/man/* .1 -t " $pkgdir /usr/share/man/man1/"
44- install -Dm644 target/man/memy.toml.5 -t " $pkgdir /usr/share/man/man5/"
43+ install -Dm644 target/man/* .1 -t " $pkgdir /usr/share/man/man1/"
44+ install -Dm644 target/man/memy.toml.5 -t " $pkgdir /usr/share/man/man5/"
4545
46- install -Dm644 target/completions/memy.bash \
47- " $pkgdir /usr/share/bash-completion/completions/memy"
48- install -Dm644 target/completions/_memy \
49- " $pkgdir /usr/share/zsh/site-functions/_memy"
50- install -Dm644 target/completions/memy.fish \
51- " $pkgdir /usr/share/fish/vendor_completions.d/memy.fish"
46+ install -Dm644 target/completions/memy.bash \
47+ " $pkgdir /usr/share/bash-completion/completions/memy"
48+ install -Dm644 target/completions/_memy \
49+ " $pkgdir /usr/share/zsh/site-functions/_memy"
50+ install -Dm644 target/completions/memy.fish \
51+ " $pkgdir /usr/share/fish/vendor_completions.d/memy.fish"
5252
53- install -Dm644 -t " $pkgdir /usr/share/memy/hooks/" hooks/*
53+ install -Dm644 -t " $pkgdir /usr/share/memy/hooks/" hooks/*
5454
55- install -Dm644 config/template-memy.toml \
56- " $pkgdir /usr/share/memy/template-memy.toml"
55+ install -Dm644 config/template-memy.toml \
56+ " $pkgdir /usr/share/memy/template-memy.toml"
5757
58- install -Dm644 LICENSE " $pkgdir /usr/share/licenses/$pkgname /LICENSE"
58+ install -Dm644 LICENSE " $pkgdir /usr/share/licenses/$pkgname /LICENSE"
5959
60- install -Dm644 README.md " $pkgdir /usr/share/doc/$pkgname /README.md"
60+ install -Dm644 README.md " $pkgdir /usr/share/doc/$pkgname /README.md"
6161}
0 commit comments