[arch-commits] Commit in rust-script/repos/community-x86_64 (PKGBUILD PKGBUILD)
Orhun Parmaksiz
orhun at gemini.archlinux.org
Sat Apr 23 15:17:06 UTC 2022
Date: Saturday, April 23, 2022 @ 15:17:05
Author: orhun
Revision: 1187644
archrelease: copy trunk to community-x86_64
Added:
rust-script/repos/community-x86_64/PKGBUILD
(from rev 1187643, rust-script/trunk/PKGBUILD)
Deleted:
rust-script/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 97 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 50 insertions(+), 47 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-04-23 15:16:54 UTC (rev 1187643)
+++ PKGBUILD 2022-04-23 15:17:05 UTC (rev 1187644)
@@ -1,47 +0,0 @@
-# Maintainer: George Rawlinson <grawlinson at archlinux.org>
-# Contributor: Wenxuan Zhang <wenxuangm at gmail.com>
-
-pkgname=rust-script
-pkgver=0.20.0
-pkgrel=1
-pkgdesc='Run Rust files and expressions as scripts without any setup or compilation'
-arch=('x86_64')
-url='https://rust-script.org'
-license=('MIT' 'Apache')
-depends=('gcc-libs' 'rust')
-makedepends=('git')
-_commit='8b6f3d13d90c712002ec94123e5c0dc814976a68'
-source=("$pkgname::git+https://github.com/fornwall/rust-script#commit=$_commit")
-md5sums=('SKIP')
-
-pkgver() {
- cd "$pkgname"
-
- git describe --tags | sed 's/^v//'
-}
-
-prepare() {
- cd "$pkgname"
-
- # download dependencies
- cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
-}
-
-build() {
- cd "$pkgname"
-
- cargo build --frozen --release
-}
-
-package() {
- cd "$pkgname"
-
- # binary
- install -vDm755 -t "$pkgdir/usr/bin" target/release/rust-script
-
- # documentation
- install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
-
- # licenses
- install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE*
-}
Copied: rust-script/repos/community-x86_64/PKGBUILD (from rev 1187643, rust-script/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-04-23 15:17:05 UTC (rev 1187644)
@@ -0,0 +1,50 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+# Contributor: Wenxuan Zhang <wenxuangm at gmail.com>
+
+pkgname=rust-script
+pkgver=0.20.0
+pkgrel=2
+pkgdesc='Run Rust files and expressions as scripts without any setup or compilation'
+arch=('x86_64')
+url='https://rust-script.org'
+license=('MIT' 'Apache')
+depends=('gcc-libs')
+makedepends=('cargo')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/fornwall/rust-script/archive/v$pkgver.tar.gz")
+sha256sums=('c73ad090f43626c12b06008f5798f52fa422d315971bc4b65db885748ec2abdf')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+
+ # download dependencies
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ cargo build --frozen --release
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+
+ cargo test \
+ --frozen -- \
+ --skip "tests::script::test_nightly_toolchain" \
+ --skip "tests::script::test_stable_toolchain"
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ # binary
+ install -vDm755 -t "$pkgdir/usr/bin" "target/release/$pkgname"
+
+ # documentation
+ install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
+
+ # licenses
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE*
+}
More information about the arch-commits
mailing list