blob: 7d1f42c4f1d2f8d0db79091fb556f43d6098a44e (
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
|
# Maintainer: Grzegorz Baranski <root@gbaranski.com>
pkgname=safedotenv-git
pkgver=1.0.0
pkgrel=1
pkgdesc="Tool to ensure that all .env secrets are safe by scanning your code"
arch=('x86_64')
url="https://github.com/gbaranski/safedotenv"
license=('MIT')
makedepends=('git' 'cargo')
source=("$pkgname::git+https://github.com/gbaranski/safedotenv")
md5sums=('SKIP')
build() {
cd "$pkgname"
if command -v rustup > /dev/null 2>&1; then
RUSTFLAGS="-C target-cpu=native" rustup run stable \
cargo build --release
elif rustc --version | grep -q stable; then
RUSTFLAGS="-C target-cpu=native" \
cargo build --release
else
cargo build --release
fi
}
package() {
cd "$pkgname"
install -Dm755 "target/release/safedotenv" "$pkgdir/usr/bin/safedotenv"
}
|