[arch-commits] Commit in (4 files)
Kpcyrd
kpcyrd at archlinux.org
Sun Nov 8 20:53:58 UTC 2020
Date: Sunday, November 8, 2020 @ 20:53:58
Author: kpcyrd
Revision: 746728
addpkg: cargo-release 0.13.8-2
Added:
cargo-release/
cargo-release/repos/
cargo-release/trunk/
cargo-release/trunk/PKGBUILD
----------+
PKGBUILD | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
Added: cargo-release/trunk/PKGBUILD
===================================================================
--- cargo-release/trunk/PKGBUILD (rev 0)
+++ cargo-release/trunk/PKGBUILD 2020-11-08 20:53:58 UTC (rev 746728)
@@ -0,0 +1,26 @@
+# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
+
+pkgname=cargo-release
+pkgver=0.13.8
+pkgrel=2
+pkgdesc='Cargo subcommand "release": everything about releasing a rust crate'
+url='https://github.com/sunng87/cargo-release'
+arch=('x86_64')
+license=('MIT' 'APACHE')
+depends=('openssl' 'zlib')
+makedepends=('cargo')
+source=(https://github.com/sunng87/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+b2sums=('0dc3f2177920d12bda2ab209340960aa13ae2e20a113ffabf671f9d5bc274dbbb5ba5e93c8e82c0c5cb478dcb507b8f61e68af43cf8f893514d198ae51489a16')
+
+build() {
+ cd ${pkgname}-${pkgver}
+ cargo build --release --locked
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ install -Dm 755 target/release/${pkgname} "${pkgdir}/usr/bin/${pkgname}"
+ install -Dm 644 LICENSE-MIT -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list