blob: 434578c6792c2f7d98f782b4e434cd475cf83036 (
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
|
# Maintainer: Francisco Brito <francisco.brito.developer@gmail.com>
pkgname=wizardjs-appimage
pkgver=1.0.0
pkgrel=1
pkgdesc="WizardJS - JavaScript & TypeScript playground (AppImage build)"
arch=('x86_64')
url="https://github.com/modalesxd/WizardJS"
license=('MIT')
depends=('nodejs' 'git')
makedepends=('git')
source=()
noextract=()
build() {
cd "$srcdir"
git clone https://github.com/modalesxd/WizardJS.git
cd WizardJS
# Instalar dependencias de npm localmente
npm install
# Construir y hacer make
npm run make
}
package() {
cd "$srcdir/WizardJS/out/make/AppImage/x64"
APPIMAGE=$(ls *.AppImage | head -n1)
if [[ -z "$APPIMAGE" ]]; then
echo "No se encontrĂ³ AppImage en $(pwd)"
return 1
fi
install -Dm755 "$APPIMAGE" "$pkgdir/usr/bin/wizardjs"
}
|