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

Alexander Rødseth arodseth at archlinux.org
Sun Jun 3 18:17:09 UTC 2018


    Date: Sunday, June 3, 2018 @ 18:17:09
  Author: arodseth
Revision: 339499

archrelease: copy trunk to community-x86_64

Added:
  bat/repos/community-x86_64/PKGBUILD
    (from rev 339498, bat/trunk/PKGBUILD)

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

Copied: bat/repos/community-x86_64/PKGBUILD (from rev 339498, bat/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-06-03 18:17:09 UTC (rev 339499)
@@ -0,0 +1,31 @@
+# $Id$
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Wesley Moore <wes at wezm.net>
+
+pkgname=bat
+pkgver=0.4.1
+pkgrel=2
+pkgdesc='cat clone with syntax highlighting and Git integration'
+arch=('x86_64')
+url='https://github.com/sharkdp/bat'
+license=('MIT' 'APACHE')
+makedepends=('cmake' 'rust')
+depends=('curl' 'libssh2' 'oniguruma')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('3ae66854da59d691b8740672708a2e7f2f240c76e8a00283f59a6e39127e4583')
+
+build() {
+  cd "$pkgname-$pkgver"
+
+  cargo build --release
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+
+  install -Dm755 target/release/$pkgname "$pkgdir/usr/bin/$pkgname"
+  install -Dm644 LICENSE-APACHE "$pkgdir/usr/share/licenses/$pkgname/LICENSE-APACHE"
+  install -Dm644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list