first commit
This commit is contained in:
commit
84e28e3fc4
3 changed files with 79 additions and 0 deletions
14
.SRCINFO
Normal file
14
.SRCINFO
Normal file
|
@ -0,0 +1,14 @@
|
|||
pkgbase = ember-language-server
|
||||
pkgdesc = The Ember Language Server (ELS) implements the Language Server Protocol for Ember.js projects.
|
||||
pkgver = 2.7.0
|
||||
pkgrel = 1
|
||||
url = https://github.com/lifeart/ember-language-server
|
||||
arch = any
|
||||
license = MIT
|
||||
makedepends = npm
|
||||
makedepends = jq
|
||||
noextract = ember-language-server-2.7.0.tgz
|
||||
source = https://registry.npmjs.org/@lifeart/ember-language-server/-/ember-language-server-2.7.0.tgz
|
||||
sha256sums = ec2006c6d00efce0e159f24e16df8ed3115ff7b5ac80483415fc9d1c5ddfc232
|
||||
|
||||
pkgname = ember-language-server
|
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
pkg/
|
||||
src/
|
||||
*.tar.zst
|
||||
*.tgz
|
61
PKGBUILD
Normal file
61
PKGBUILD
Normal file
|
@ -0,0 +1,61 @@
|
|||
# Maintainer: Bruno Carlin <bruno@bcarlin.net>
|
||||
pkgname=ember-language-server
|
||||
pkgver=2.7.0
|
||||
pkgrel=1
|
||||
pkgdesc="The Ember Language Server (ELS) implements the Language Server Protocol for Ember.js projects. "
|
||||
arch=( 'any' )
|
||||
url="https://github.com/lifeart/ember-language-server"
|
||||
license=('MIT')
|
||||
#depends=()
|
||||
makedepends=('npm' 'jq')
|
||||
#checkdepends=()
|
||||
#optdepends=()
|
||||
#provides=()
|
||||
#conflicts=()
|
||||
#replaces=()
|
||||
#backup=()
|
||||
#options=()
|
||||
#install=
|
||||
#changelog=
|
||||
source=("https://registry.npmjs.org/@lifeart/$pkgname/-/$pkgname-$pkgver.tgz")
|
||||
sha256sums=('ec2006c6d00efce0e159f24e16df8ed3115ff7b5ac80483415fc9d1c5ddfc232')
|
||||
noextract=("${pkgname}-${pkgver}.tgz")
|
||||
#validpgpkeys=()
|
||||
|
||||
#prepare() {
|
||||
# cd "$pkgname-$pkgver"
|
||||
# patch -p1 -i "$srcdir/$pkgname-$pkgver.patch"
|
||||
#}
|
||||
#
|
||||
#build() {
|
||||
# cd "$pkgname-$pkgver"
|
||||
# ./configure --prefix=/usr
|
||||
# make
|
||||
#}
|
||||
#
|
||||
#check() {
|
||||
# cd "$pkgname-$pkgver"
|
||||
# make -k check
|
||||
#}
|
||||
|
||||
package() {
|
||||
npm install -g \
|
||||
--prefix "${pkgdir}/usr" \
|
||||
--cache "${srcdir}/npm-cache" \
|
||||
"${srcdir}/${pkgname}-${pkgver}.tgz"
|
||||
|
||||
# npm gives ownership of ALL FILES to build user
|
||||
# https://bugs.archlinux.org/task/63396
|
||||
chown -R root:root "${pkgdir}"
|
||||
|
||||
# Remove references to $pkgdir
|
||||
find "$pkgdir" -type f -name package.json -print0 | xargs -0 sed -i "/_where/d"
|
||||
|
||||
# Remove references to $srcdir
|
||||
local tmppackage pkgjson
|
||||
tmppackage="$(mktemp)"
|
||||
pkgjson="$pkgdir/usr/lib/node_modules/@lifeart/$pkgname/package.json"
|
||||
jq '.|=with_entries(select(.key|test("_.+")|not))' "$pkgjson" > "$tmppackage"
|
||||
mv "$tmppackage" "$pkgjson"
|
||||
chmod 644 "$pkgjson"
|
||||
}
|
Loading…
Reference in a new issue