blob: 587f8ea011afc15f384daf0622b497826312e373 (
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
|
# Maintainer: Pablo Alessandro Santos Hugen <PabloASHugen@protonmail.com>
pkgname="vscode-bash-debug"
pkgver="0.3.0"
pkgrel="1"
pkgdesc="Bash shell debugger extension for VSCode (based on bashdb)"
arch=(any)
url="https://github.com/rogalmic/vscode-bash-debug"
license=(MIT)
depends=(bun)
makedepends=(
git
bun
typescript
)
source=("git+$url.git")
sha256sums=('SKIP')
build() {
cd $pkgname || exit
bun i
tsc -p ./src
}
package() {
sed -i '1i #!/usr/bin/env bun' "$pkgname/out/bashDebug.js"
chmod +x "$pkgname/out/bashDebug.js"
install -d "$pkgdir/usr/share/$pkgname"
cp -r "$pkgname/out" "$pkgdir/usr/share/$pkgname/out"
install -D -m 644 "$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -d "$pkgdir/usr/bin"
ln -s "/usr/share/$pkgname/out/bashDebug.js" "$pkgdir/usr/bin/vscode-bash-debug"
}
|