summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 54cc74aa3b605ce7da12ddf35a2f28a7c8f33d06 (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
27
28
29
30
31
32
# Maintainer: SO010 <stackoverflow010 at gmail com>

pkgname=vapor-toolbox-git
_pkgname=toolbox
_binname=vapor
pkgver=r1144.4a2b9ed
pkgrel=1
pkgdesc="Vapor Toolbox - A cmdline tool for the Vapor web framework"
arch=('x86_64')
url="https://github.com/vapor/toolbox"
license=('MIT')
depends=('git' 'swift-language' 'curl')
source=("git+https://github.com/vapor/toolbox.git")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgname"

  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$_pkgname"

  make
}

package() {
  cd "$_pkgname"

  make DEST="/usr/bin/$_binname" DESTDIR="$pkgdir/" install
}