[arch-commits] Commit in (binocle binocle/repos binocle/trunk binocle/trunk/PKGBUILD)
Orhun Parmaksiz
orhun at gemini.archlinux.org
Thu Nov 18 09:52:28 UTC 2021
Date: Thursday, November 18, 2021 @ 09:52:27
Author: orhun
Revision: 1052066
addpkg: binocle 0.2.0-1
Added:
binocle/
binocle/repos/
binocle/trunk/
binocle/trunk/PKGBUILD
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Added: binocle/trunk/PKGBUILD
===================================================================
--- binocle/trunk/PKGBUILD (rev 0)
+++ binocle/trunk/PKGBUILD 2021-11-18 09:52:27 UTC (rev 1052066)
@@ -0,0 +1,38 @@
+# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+# Contributor: Morteza NourelahiAlamdari <m at 0t1.me>
+
+pkgname=binocle
+pkgver=0.2.0
+pkgrel=1
+pkgdesc="A graphical tool to visualize binary data"
+arch=('x86_64')
+url="https://github.com/sharkdp/binocle"
+license=('MIT' 'Apache')
+depends=('gcc-libs')
+makedepends=('rust')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('8d2c2a54e1b59065350b0bc2cfded16c7822f5012e48df5f5162d330beddbf298b6c363357dc9a1625c8ae814af82ef57180680374d626ab61e0f55c6fb8766c')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ cargo fetch --locked
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ cargo build --release --frozen
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ cargo test --frozen
+}
+
+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-MIT -t "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list