apkbuilds @ ef9e52a017b9afa06d398c651050deb86c044819

 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"
18builddir="$srcdir/$pkgname-$pkgver/"
19source="https://artifacts.gabrielgio.me/"$pkgname"/"$pkgname"-"$pkgver".tar.gz"
20
21build() {
22    source $HOME/.cargo/env
23    #cargo install wasm-pack
24    make
25
26}
27
28check() {
29    make test
30}
31
32package() {
33    mkdir -p "$pkgdir"/var/www
34    cp -dr public "$pkgdir"/var/www/"$pkgname"
35}
36
37sha512sums="
381b3079701557f97a0380dcfb4d67e7b96fb340a1c5f9b822a718a4c68b638ad09ba33afe33babc8bd4454390d128ed0b55bb1cd7aa513ced90fe443cddf022d1  genpass-0.1.0.tar.gz
39"