1# Maintainer: Gabriel A. Giovanini <mail@gabrielgio.me>
2pkgname=genpass
3pkgver=0.1.0
4pkgrel=0
5pkgdesc="Website password generator in wasm"
6url="https://git.sr.ht/~gabrielgio/genpass"
7arch="all"
8license="MIT"
9depends=""
10makedepends="
11 curl
12 build-base
13 firefox
14 make
15 npm
16 cargo
17 openssl-dev
18 bzip2-dev
19"
20builddir="$srcdir/$pkgname-$pkgver/"
21source="https://artifacts.gabrielgio.me/"$pkgname"/"$pkgname"-"$pkgver".tar.gz"
22
23build() {
24 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal --quiet -y
25 source $HOME/.cargo/env
26 curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
27 make
28
29}
30
31check() {
32 make test
33}
34
35package() {
36 mkdir -p "$pkgdir"/var/www
37 cp -dr public "$pkgdir"/var/www/"$pkgname"
38}
39
40sha512sums="
411b3079701557f97a0380dcfb4d67e7b96fb340a1c5f9b822a718a4c68b638ad09ba33afe33babc8bd4454390d128ed0b55bb1cd7aa513ced90fe443cddf022d1 genpass-0.1.0.tar.gz
42"