summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasanori Ogino2022-07-15 09:39:36 +0900
committerMasanori Ogino2022-07-15 09:39:36 +0900
commite7e5e8ab0b9cce1e6ed5e41433616f17a12cce81 (patch)
treed00033ef908c48c220f3c83e426c7240d0bccc25
downloadaur-e7e5e8ab0b9cce1e6ed5e41433616f17a12cce81.tar.gz
Init at 1.7.5
Signed-off-by: Masanori Ogino <masanori.ogino@gmail.com>
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD33
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fdb1a2661bd
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = hunt
+ pkgdesc = Highly-opinionated simplified Find command made with Rust
+ pkgver = 1.7.5
+ pkgrel = 1
+ url = https://github.com/LyonSyonII/hunt-rs
+ arch = i686
+ arch = x86_64
+ license = Apache
+ makedepends = cargo
+ source = hunt-1.7.5.tar.gz::https://static.crates.io/crates/hunt/hunt-1.7.5.crate
+ sha256sums = cad6b3a85a10feea2acf04bc6ff563889e637856a832629492243cbc75ff5d48
+
+pkgname = hunt
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..96cdfc487a2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+pkgname=hunt
+pkgver=1.7.5
+pkgrel=1
+pkgdesc="Highly-opinionated simplified Find command made with Rust"
+arch=("i686" "x86_64")
+url="https://github.com/LyonSyonII/hunt-rs"
+license=("Apache")
+makedepends=("cargo")
+source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
+sha256sums=('cad6b3a85a10feea2acf04bc6ff563889e637856a832629492243cbc75ff5d48')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ export RUSTUP_TOOLCHAIN=stable
+ export CARGO_TARGET_DIR=target
+ cargo build --frozen --release --all-features
+}
+
+#check() {
+# cd "$pkgname-$pkgver"
+# export RUSTUP_TOOLCHAIN=stable
+# cargo test --frozen --all-features
+#}
+
+package() {
+ cd "$pkgname-$pkgver"
+ install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
+}