summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Jaap Korpershoek2018-11-24 15:04:24 +0100
committerJan-Jaap Korpershoek2018-11-24 15:04:24 +0100
commit283889a6818d62ccb0ceaf30f988fd79c381a357 (patch)
tree1b29949859d0d42a66c4da535ebaec4a6f650bc4
downloadaur-283889a6818d62ccb0ceaf30f988fd79c381a357.tar.gz
Initial package creation
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD31
-rw-r--r--php-language-server2
3 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5cdbedc1087
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = php-language-server
+ pkgdesc = PHP language server implementation
+ pkgver = 5.4.6
+ pkgrel = 1
+ url = https://github.com/felixfbecker/php-language-server
+ arch = x86_64
+ license = ISC
+ makedepends = composer
+ depends = php>=7
+ source = php-language-server-5.4.6.tar.gz::https://github.com/felixfbecker/php-language-server/archive/v5.4.6.tar.gz
+ source = php-language-server
+ md5sums = 3934a16509185f1def5040099710fbc9
+ md5sums = cb882eef5bc51ae553fdc7c43d181544
+
+pkgname = php-language-server
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c665d0b1ad5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Jan-Jaap Korpershoek <jjkorpershoek96 at gmail dot com>
+pkgname=php-language-server
+pkgver=5.4.6
+pkgrel=1
+pkgdesc="PHP language server implementation"
+arch=('x86_64')
+url="https://github.com/felixfbecker/php-language-server"
+license=('ISC')
+depends=('php>=7')
+makedepends=('composer')
+source=(
+ "$pkgname-$pkgver.tar.gz::https://github.com/felixfbecker/$pkgname/archive/v$pkgver.tar.gz"
+ "php-language-server"
+)
+md5sums=('3934a16509185f1def5040099710fbc9'
+ 'cb882eef5bc51ae553fdc7c43d181544')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ composer install
+ composer run-script parse-stubs
+}
+
+package() {
+ path=$pkgdir/usr/share/php/$pkgname
+ mkdir -p $path
+ mkdir -p "$pkgdir/usr/bin"
+ install -Dm755 php-language-server "$pkgdir/usr/bin/"
+ cd "$srcdir/$pkgname-$pkgver"
+ cp -dr --no-preserve=ownership . "$path"
+}
diff --git a/php-language-server b/php-language-server
new file mode 100644
index 00000000000..3fbc1f4de56
--- /dev/null
+++ b/php-language-server
@@ -0,0 +1,2 @@
+#!/bin/bash
+php /usr/share/php/php-language-server/bin/php-language-server.php