summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a3a014c88ff3e0c3681b057608c1668c160af967 (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
# Maintainer: Michał Wojdyła < micwoj9292 at gmail dot com >

pkgname=backseat-signed
pkgver=0.1.0
pkgrel=3
pkgdesc=' Authenticate cryptographic links from a signed derivate to its source input.'
url='https://crates.io/crates/backseat-signed'
arch=('x86_64')
license=('GPL-3.0-or-later')
depends=('gcc-libs'  'glibc' 'openssl')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
b2sums=('2b0ed792ea4e360a4c7bd94c9795d7731e995c41e8434673e52b39264d5f15cbb4ab10c450bf65793087483f0ba1f4bf678e9705ab64c9ec4575cf4fad3b5606')

prepare() {
  cd $pkgname-$pkgver 
  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}

build() {
  cd $pkgname-$pkgver
  RUSTFLAGS='-C link-args=-Wl,-z,shstk' cargo build --frozen --release
}

check() {
  cd $pkgname-$pkgver
  RUSTFLAGS='-C link-args=-Wl,-z,shstk' cargo test --frozen
}

package() {
  cd $pkgname-$pkgver
  install -Dm 755 -t "${pkgdir}/usr/bin" \
    target/release/backseat-signed
}