summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 94e3bdc7d9b6553ccdb1427348c9c5a2330808c4 (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
# Maintainer: Xuanwo <xuanwo@archlinuxcn.org>
pkgname=makisu
pkgver=0.1.11
pkgrel=1
pkgdesc='Fast and flexible Docker image building tool, works in unprivileged containerized environments like Mesos and Kubernetes.'
depends=('glibc')
makedepends=('go' 'make' 'git')
arch=('x86_64')
url='https://github.com/uber/makisu'
license=('Apache')
provides=('makisu')
source=(makisu-${pkgver}.tar.gz::https://github.com/uber/makisu/archive/v${pkgver}.tar.gz)
sha256sums=('8d28948e0bf4f56693c836fd86d35e38c7a457206dd3f62386059f1741e4bac1')

build() {
  export GOPATH="$srcdir/build"
  export PATH=$GOPATH/bin:$PATH

  cd $pkgname-${pkgver}  

  BUILD_LDFLAGS="-X ${pkgname}/lib/utils.BuildHash=v${pkgver}"

  BUILD_LDFLAGS=$BUILD_LDFLAGS make bin/makisu/makisu
}

package() {
  # Install binary
  install -Dm755 "$srcdir/$pkgname-${pkgver}/bin/makisu/makisu" "$pkgdir/usr/bin/makisu"
}

# vim: ft=sh syn=sh et