summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2145cb53962a68494dd0ce1799f763c99bf9c2be (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
25
26
# Maintainer: Changseo Jang <changseo.jang@korea.edu>
pkgname='pbkit'
pkgver='v0.0.22'
pkgrel=5
pkgdesc='Protobuf Dependency Manager'
arch=('x86_64')
url='https://github.com/pbkit/pbkit'
license=('MIT' 'APACHE')
depends=()
makedepends=('git' 'deno')
source=("pbkit::git://github.com/pbkit/pbkit.git#tag=${pkgver}")
sha256sums=('SKIP')

build() {
  cd "$pkgname"

  deno compile --unstable -A -o pollapo ./cli/pollapo/entrypoint.ts
  deno compile --unstable -A -o pb ./cli/pb/entrypoint.ts
}

package() {
  cd "$pkgname"

  install -Dm 755 pollapo -t "$pkgdir"/usr/bin
  install -Dm 755 pb -t "$pkgdir"/usr/bin
}