summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6a811bacd81f666eab9d14aad6cfbdbbb60538c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: Zhanibek Adilbekov <zhanibek.adilbekov@proton.me>
pkgname=vscode-php-debug
pkgver=1.37.0
pkgrel=1
pkgdesc='PHP Debug Adapter (DAP)'
arch=('any')
url="https://github.com/xdebug/$pkgname"
license=('MIT')
depends=('nodejs')
source=(
	"$pkgname-${epoch:+"$epoch:"}$pkgver-$pkgrel.zip::https://github.com/xdebug/vscode-php-debug/releases/download/v$pkgver/php-debug-$pkgver.vsix"
	'vscode-php-debug'
)
b2sums=('521fa08c3d74b1d7b07907c01e624d04b6cf52387c9ebfcfbf9d912b4dd605def2ee9044196aec67c3a21286db048634adb7b8a03d625ffb05cce035a4e361a6'
        'd22937d8e805829fc267914c201f9a0d61ef4b204fcda5928517c15706f13be479c338aae7c100fb902780042f2bfd0de956d92a87b2535aa4060a97d42d9743')

package() {
	install -dm755 "$pkgdir/usr/lib/node_modules/php-debug"
	cp -r "$srcdir/extension"/. "$pkgdir/usr/lib/node_modules/php-debug"
	install -Dm644 "$srcdir/extension/LICENSE.txt" "$pkgdir/usr/share/licenses/vscode-php-debug/LICENSE.txt"
	install -Dm755 "$srcdir/vscode-php-debug" "$pkgdir/usr/bin/vscode-php-debug"
}