summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 125aae0941fa96db64a388d5a99a95eab26f3d73 (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
# Maintainer: Charims <charims@gmail.com>
pkgname=opencode-cursor-auth
pkgver=1.0.16
pkgrel=1
pkgdesc="Cursor Auth Plugin for opencode"
arch=('any')
url="https://github.com/POSO-PocketSolutions/opencode-cursor-auth"
license=('ISC')
depends=('opencode' 'npm')
options=('!strip' '!debug')
conflicts=("${pkgname}-debug")
install=$pkgname.install


source=("$pkgname-$pkgver.tar.gz::https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
sha256sums=('91b07e997ef82a3456c8a118104d5bf1024e7a920ff924fbc0f3b51a7cdd7ae5')

package() {
  depends=('opencode' 'cursor-cli')
  cd "$srcdir/package"
  npm install
  mkdir -p "$pkgdir/usr/lib/opencode/plugins/$pkgname"
  cp -r . "$pkgdir/usr/lib/opencode/plugins/$pkgname"
}