blob: c28ffc673a264f6013e325b7fed254db93de5bc8 (
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
33
34
35
36
|
# Maintainer: John Luebs
pkgname=vapor-toolbox-git
_pkgname=toolbox
_binname=vapor
pkgver=r1191.3e9a23a
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=('swift-language')
makedepends=('git')
conflicts=('vapor-toolbox')
provides=('vapor-toolbox')
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"
swift build -c release
}
package() {
cd "$_pkgname"
install -Dm755 .build/release/vapor "$pkgdir/usr/bin/${_binname}"
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|