blob: a9f99f05a6445b9b07c3ddd01926aba29f269929 (
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
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Gabriel Arakaki Giovanini <mail@gabrielgio.me>
pkgname=genpass
pkgver=0.1.0
pkgrel=0
pkgdesc="Website password generator in wasm"
url="https://git.sr.ht/~gabrielgio/genpass"
arch="all"
license="MIT"
depends=""
makedepends="
curl
build-base
firefox
make
npm
cargo
openssl-dev
bzip2-dev
"
builddir="$srcdir/$pkgname-$pkgver/"
source="https://artifacts.gabrielgio.me/"$pkgname"/"$pkgname"-"$pkgver".tar.gz"
build() {
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal --quiet -y
source $HOME/.cargo/env
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
make
}
check() {
make test
}
package() {
mkdir -p "$pkgdir"/var/www
cp -dr public "$pkgdir"/var/www/"$pkgname"
}
sha512sums="
1b3079701557f97a0380dcfb4d67e7b96fb340a1c5f9b822a718a4c68b638ad09ba33afe33babc8bd4454390d128ed0b55bb1cd7aa513ced90fe443cddf022d1 genpass-0.1.0.tar.gz
"
|