apkbuilds @ 2bac589ca6d0aa95e467df349ba4f608805510fe

 1# Maintainer: Gabriel Arakaki 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
30check() {
31    make test
32}
33
34package() {
35    mkdir -p "$pkgdir"/var/www
36    cp -dr public "$pkgdir"/var/www/"$pkgname"
37}
38
39sha512sums="
401b3079701557f97a0380dcfb4d67e7b96fb340a1c5f9b822a718a4c68b638ad09ba33afe33babc8bd4454390d128ed0b55bb1cd7aa513ced90fe443cddf022d1  genpass-0.1.0.tar.gz
41"