summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c3e847822c4efa9dda1d876bd44bbb7596e53d2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Matt Quintanilla <matt @ matt quintanilla . xyz>

pkgname=reclog
_pkgname=reclog
pkgver=0.1.3
pkgrel=2
pkgdesc="Command-line tool to capture command output to a file."
url="https://github.com/gavv/reclog"
makedepends=('cargo')
depends=('glibc' 'gcc-libs')
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
license=('MIT')
source=("$pkgname-$pkgver.tar.gz::https://crates.io/api/v1/crates/$_pkgname/$pkgver/download")
sha256sums=('496d3120f162b7226c85638a1686128cfb2afea861395d208eae627a56e3e7ba')

prepare() {
  cd "$_pkgname-$pkgver"
  export RUSTUP_TOOLCHAIN=stable
  cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"

}



build() {
  cd "$_pkgname-$pkgver"
  export RUSTUP_TOOLCHAIN=stable
  export CARGO_TARGET_DIR=target
  cargo build --frozen --release --all-features
}

package() {
  cd "$_pkgname-$pkgver"
   install -Dm755 target/release/reclog "$pkgdir/usr/bin/reclog"
   install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
   install -Dm644 "reclog.1" "$pkgdir/usr/share/man/man1/reclog.1"

 }