1 # Maintainer: Leonidas Spyropoulos <artafinde@archlinux.org>
2 # Maintainer: Orhun Parmaksız <orhun@archlinux.org>
4 pkgname='rustypaste-cli'
5 pkgdesc="A CLI tool for rustypaste"
9 url="https://github.com/orhun/rustypaste-cli"
14 source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/v${pkgver}.tar.gz")
15 sha256sums=('691fd3ddcf2c7c9c17728a304bd4299a35812940902b8b31059902abb49b037e')
18 cd "${pkgname}-${pkgver}"
19 cargo fetch --locked --target "${CARCH}-unknown-linux-gnu"
23 cd "${pkgname}-${pkgver}"
24 CFLAGS+=' -ffat-lto-objects'
25 env CARGO_INCREMENTAL=0 cargo build --release --frozen
29 cd "${pkgname}-${pkgver}"
30 env CARGO_INCREMENTAL=0 cargo test --frozen
34 cd "${pkgname}-${pkgver}"
35 install -D -m755 "target/release/rpaste" "${pkgdir}/usr/bin/rpaste"
36 install -D -m644 "config.toml" "${pkgdir}/usr/share/doc/rustypaste-cli/example/config.toml"
37 install -D -m644 "man/rpaste.1" -t "${pkgdir}/usr/share/man/man1"
38 install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
39 install -D -m644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
42 # vim:set ts=2 sw=2 et: