aboutsummaryrefslogtreecommitdiff
path: root/genpass/APKBUILD
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-10-14 21:04:20 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-10-14 21:09:35 +0200
commit307af8fd5a3e74ebcb64ac5bbe57493b59ead233 (patch)
treed7f1e97a46713925041a6fa4de4dab5694529c7c /genpass/APKBUILD
parent6d706f14b057e25b4b116ed1ee8c4db4b89454ab (diff)
downloadapkbuilds-307af8fd5a3e74ebcb64ac5bbe57493b59ead233.tar.gz
apkbuilds-307af8fd5a3e74ebcb64ac5bbe57493b59ead233.tar.bz2
apkbuilds-307af8fd5a3e74ebcb64ac5bbe57493b59ead233.zip
feat: shamelessly copy pkgkit from sr.ht-apkbuilds
Copy some code from sourcehut's alpine build[0] to build my own packages. [0]: https://git.sr.ht/~sircmpwn/sr.ht-apkbuilds
Diffstat (limited to 'genpass/APKBUILD')
-rw-r--r--genpass/APKBUILD54
1 files changed, 0 insertions, 54 deletions
diff --git a/genpass/APKBUILD b/genpass/APKBUILD
deleted file mode 100644
index 3c74124..0000000
--- a/genpass/APKBUILD
+++ /dev/null
@@ -1,54 +0,0 @@
-# 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/"
-subpackages="$pkgname-nginx:_nginx"
-
-source="
- https://artifacts.gabrielgio.me/$pkgname/$pkgname-$pkgver.tar.gz
- $pkgname.nginx.conf
-"
-
-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
-}
-
-_nginx() {
- depends="nginx"
- pkgdesc="nginx configuration for $pkgname"
- install -Dm644 "$srcdir"/"$package"/"$pkgname".nginx.conf \
- "$subpkgdir"/etc/nginx/http.d/"$pkgname".nginx.conf
-}
-
-package() {
- mkdir -p "$pkgdir"/var/www
- cp -dr public "$pkgdir"/var/www/"$pkgname"
-}
-
-sha512sums="
-1b3079701557f97a0380dcfb4d67e7b96fb340a1c5f9b822a718a4c68b638ad09ba33afe33babc8bd4454390d128ed0b55bb1cd7aa513ced90fe443cddf022d1 genpass-0.1.0.tar.gz
-6e6b9d80b26006efd5b6e368bd3925425b2080bf88dca38c91a9dd8a1db2b3774b2cb8ecba67ac01d2c822f0ad75106d6e103cc3371076f3f40232dd38b57fd4 genpass.nginx.conf
-"