From 9c00b684d04a8d0718d0c48a261ea0fd8651a6a3 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sun, 17 Sep 2023 17:48:09 +0200 Subject: [PATCH] [PKGBUILD] Update and rename appwrite PKGBUILD --- code/PKGBUILDs/appwrite-cli/PKGBUILD | 28 +++++++++++++++++++++++++ code/PKGBUILDs/nodejs-appwrite/PKGBUILD | 25 ---------------------- 2 files changed, 28 insertions(+), 25 deletions(-) create mode 100644 code/PKGBUILDs/appwrite-cli/PKGBUILD delete mode 100644 code/PKGBUILDs/nodejs-appwrite/PKGBUILD diff --git a/code/PKGBUILDs/appwrite-cli/PKGBUILD b/code/PKGBUILDs/appwrite-cli/PKGBUILD new file mode 100644 index 0000000..8306027 --- /dev/null +++ b/code/PKGBUILDs/appwrite-cli/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Lucien Cartier-Tilet + +_pkgname=appwrite-cli +_orgname=appwrite +_ghpkgname=sdk-for-cli +pkgname="nodejs-${_pkgname}" +pkgver=4.1.0 +pkgrel=1 +pkgdesc="Command-line tool for building and testing Emacs Lisp packages" +url="https://github.com/${_orgname}/${_ghpkgname}" +license=("BSD-3-Clause") +arch=("any") +depends=("nodejs") +makedepends=("npm") +source=("https://registry.npmjs.org/${_pkgname}/-/${_pkgname}-${pkgver}.tgz") +sha256sums=('83f35fcc7c54fec519791e4bc28f2c6913971357a055eb9113cbaa7259f3edc4') +noextract=("$_pkgname-$pkgver.tgz") + +prepare() { + tar xzf "$_pkgname-$pkgver.tgz" +} + +package() { + npm i --location=global --cache "${srcdir}/npm-cache" --prefix "$pkgdir/usr" "$srcdir/$_pkgname-$pkgver.tgz" + install -Dm644 package/LICENSE.md "$pkgdir/usr/share/licenses/$_pkgname/COPYING" +} + +# vim:set ts=2 sw=2 et: diff --git a/code/PKGBUILDs/nodejs-appwrite/PKGBUILD b/code/PKGBUILDs/nodejs-appwrite/PKGBUILD deleted file mode 100644 index a56b593..0000000 --- a/code/PKGBUILDs/nodejs-appwrite/PKGBUILD +++ /dev/null @@ -1,25 +0,0 @@ -# Maintainer: Lucien Cartier-Tilet -_pkgname=appwrite -_orgname=appwrite -_reponame=sdk-for-cli -_dlcliname=appwrite-cli-linux-x64 -pkgname="nodejs-$_pkgname-cli" -pkgver=1.1.1 -pkgrel=1 -pkgdesc='Appwrite CLI' -arch=('any') -url="https://github.com/${_orgname}/${_reponame}" -license=('BSD-3-Clause') -depends=('nodejs') -makedepends=('npm') -options=() -install= -changelog= -source=("https://github.com/${_orgname}/${_reponame}/releases/download/${pkgver}/$_dlcliname") -sha256sums=('99c3aa4f3f9c240ac4e660546cd1a9bd0788e1dd56c018e07c19eb37273e13f6') - -package() { - install -Dm755 "$_dlcliname" "$pkgdir/usr/bin/$_pkgname" -} - -# vim:set ts=2 sw=2 et: