[arch-commits] Commit in (4 files)

Kpcyrd kpcyrd at archlinux.org
Sat May 9 01:43:09 UTC 2020


    Date: Saturday, May 9, 2020 @ 01:43:08
  Author: kpcyrd
Revision: 625824

upgpkg: cargo-watch 7.3.0-2

Added:
  cargo-watch/
  cargo-watch/repos/
  cargo-watch/trunk/
  cargo-watch/trunk/PKGBUILD

----------+
 PKGBUILD |   29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

Added: cargo-watch/trunk/PKGBUILD
===================================================================
--- cargo-watch/trunk/PKGBUILD	                        (rev 0)
+++ cargo-watch/trunk/PKGBUILD	2020-05-09 01:43:08 UTC (rev 625824)
@@ -0,0 +1,29 @@
+# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
+# Contributor: Vlad M. <vlad at archlinux.net>
+
+pkgname=cargo-watch
+pkgver=7.3.0
+pkgrel=2
+pkgdesc="Utility for Cargo to compile projects when sources change"
+url='https://github.com/passcod/cargo-watch'
+arch=('x86_64')
+license=('CC0-1.0')
+depends=('cargo')
+source=("https://github.com/passcod/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('c9a281e9b713a5dfc6a075a71ad2d8823b6eb8cd40d2f6e57c9a7849a906e2e641540826a972e991194e58c04050216f97ef305673c653ab00edf6444950b165')
+b2sums=('9df965d9d5dd0062f6c4a12b98ed35103cf295ee25b97f818d2494a7f76f713645685ee0c9acf062e070531640c7b130bec0af6cdb5fdb6a8388143c2057618b')
+
+build() {
+  cd ${pkgname}-${pkgver}
+  cargo build --release --locked
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  install -Dm 755 "target/release/${pkgname}" -t "${pkgdir}/usr/bin"
+
+  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list