[arch-commits] Commit in (hexyl hexyl/repos hexyl/trunk hexyl/trunk/PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Fri Jan 18 20:05:25 UTC 2019
Date: Friday, January 18, 2019 @ 20:05:25
Author: anthraxx
Revision: 424166
addpkg: hexyl 0.4.0-1
Added:
hexyl/
hexyl/repos/
hexyl/trunk/
hexyl/trunk/PKGBUILD
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Added: hexyl/trunk/PKGBUILD
===================================================================
--- hexyl/trunk/PKGBUILD (rev 0)
+++ hexyl/trunk/PKGBUILD 2019-01-18 20:05:25 UTC (rev 424166)
@@ -0,0 +1,32 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Attenuation <ouyangjun1999 at gmail.com>
+
+pkgname=hexyl
+pkgver=0.4.0
+pkgrel=1
+pkgdesc='Colored command-line hex viewer'
+url='https://github.com/sharkdp/hexyl'
+arch=('x86_64')
+license=('Apache' 'MIT')
+depends=('gcc-libs')
+makedepends=('rust' 'cargo')
+source=(https://github.com/sharkdp/hexyl/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('621d90e1521fd60a606471efb1974ad114b52d237e9992dd95304a9dfa4f16718f77946e7f0a326f581f900211c86f1ea227ab0f6903edabdd0f845f1ce6ff4d')
+
+build() {
+ cd ${pkgname}-${pkgver}
+ cargo build --release --locked
+}
+
+check() {
+ cd ${pkgname}-${pkgver}
+ cargo test --release --locked
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ install -Dm 755 target/release/${pkgname} -t "${pkgdir}/usr/bin"
+ install -Dm 644 LICENSE* -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list