[arch-commits] Commit in rustypaste-cli/repos (2 files)
Leonidas Spyropoulos
artafinde at gemini.archlinux.org
Sun Mar 13 16:36:57 UTC 2022
Date: Sunday, March 13, 2022 @ 16:36:57
Author: artafinde
Revision: 1151091
archrelease: copy trunk to community-x86_64
Added:
rustypaste-cli/repos/community-x86_64/
rustypaste-cli/repos/community-x86_64/PKGBUILD
(from rev 1151090, rustypaste-cli/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: rustypaste-cli/repos/community-x86_64/PKGBUILD (from rev 1151090, rustypaste-cli/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2022-03-13 16:36:57 UTC (rev 1151091)
@@ -0,0 +1,38 @@
+# Maintainer: Leonidas Spyropoulos <artafinde at archlinux.org>
+
+pkgname='rustypaste-cli'
+pkgdesc="A CLI tool for rustypaste."
+pkgver=0.1.3
+pkgrel=3
+arch=('x86_64')
+url="https://github.com/orhun/rustypaste-cli"
+license=('MIT')
+depends=('gcc-libs')
+makedepends=('rust' 'cargo')
+source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/v${pkgver}.tar.gz")
+sha256sums=('bfd5064783ca770cbbf5c07958709a37fbe5903c5c2f0dd89e170031ac4437ea')
+
+prepare() {
+ cd "${pkgname}-${pkgver}"
+ cargo fetch --locked --target "${CARCH}-unknown-linux-gnu"
+}
+
+build(){
+ cd "${pkgname}-${pkgver}"
+ CFLAGS+=' -ffat-lto-objects'
+ env CARGO_INCREMENTAL=0 cargo build --release --locked --offline
+}
+
+check(){
+ cd "${pkgname}-${pkgver}"
+ env CARGO_INCREMENTAL=0 cargo test --locked --offline
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+ install -D -m755 "target/release/rpaste" "${pkgdir}/usr/bin/rpaste"
+ install -D -m644 "config.toml" "${pkgdir}/usr/share/doc/rustypaste-cli/example/config.toml"
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list