summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c075a0a767c5f19dbe7f6fb1b1130e2bacaa0a01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
pkgname=genenv
pkgver=1.1.0
pkgrel=1
pkgdesc='Generate .env.example from .env file'
arch=('x86_64' 'aarch64')
url='https://github.com/robiot/genenv'
license=('GPL-3.0')
makedepends=('cargo')
sha512sums=('SKIP')
source=("${url}/archive/refs/tags/v${pkgver}.tar.gz")

build() {
  cd $pkgname-$pkgver

  cargo build --release
}

package() {
  cd $pkgname-$pkgver
  install -Dm 755 target/release/${pkgname} ${pkgdir}/usr/bin/${pkgname}
}