-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPKGBUILD
More file actions
34 lines (29 loc) · 922 Bytes
/
PKGBUILD
File metadata and controls
34 lines (29 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: luvcie <lucielove9@proton.me>
pkgname=pokescope
pkgver=0.1.0
pkgrel=1
pkgdesc="Pokémon Showdown info commands in your terminal"
arch=('any')
url="https://github.com/luvcie/pokescope"
license=('MIT')
depends=('bun')
makedepends=('bun')
source=("$pkgname-$pkgver.tar.gz::https://github.com/luvcie/$pkgname/archive/v$pkgver.tar.gz")
b2sums=('SKIP')
build() {
cd "$pkgname-$pkgver"
bun install --frozen-lockfile --ignore-scripts
rm -rf node_modules/.bin
}
package() {
cd "$pkgname-$pkgver"
install -dm755 "$pkgdir/usr/share/pokescope"
cp -r pokescope.ts tsconfig.json src node_modules "$pkgdir/usr/share/pokescope/"
install -dm755 "$pkgdir/usr/bin"
cat > "$pkgdir/usr/bin/pokescope" <<'EOF'
#!/bin/sh
exec bun run /usr/share/pokescope/pokescope.ts "$@"
EOF
chmod 755 "$pkgdir/usr/bin/pokescope"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}