[arch-commits] Commit in hexyl/repos (community-x86_64 community-x86_64/PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Fri Jan 18 20:05:34 UTC 2019


    Date: Friday, January 18, 2019 @ 20:05:33
  Author: anthraxx
Revision: 424167

archrelease: copy trunk to community-x86_64

Added:
  hexyl/repos/community-x86_64/
  hexyl/repos/community-x86_64/PKGBUILD
    (from rev 424166, hexyl/trunk/PKGBUILD)

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

Copied: hexyl/repos/community-x86_64/PKGBUILD (from rev 424166, hexyl/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2019-01-18 20:05:33 UTC (rev 424167)
@@ -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