summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a1dc258f773b81170405aa0170bd33cc49cd6fd1 (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: Bryn Edwards <bryn at openmailbox dot org>
# Contributor: Timothée Ravier <tim@siosm.fr>

pkgname=docker2aci
pkgver=0.17.2
pkgrel=1
pkgdesc="CLI tool to convert Docker images to ACI"
arch=('x86_64' 'i686')
url="https://github.com/appc/docker2aci"
source=("https://github.com/appc/docker2aci/archive/v${pkgver}.tar.gz")
sha1sums=('a50b069cb4b4f67f7cc367377562f2b518230968')
license=('Apache2')
makedepends=('go' 'bash')
conflicts=('docker2aci-git')

prepare() {
    cd ${pkgname}-${pkgver}
    # Instead of getting version from git, use ${pkgver}.
    # The git command output is different but it still seems to build
    sed -i "s/\$(git describe --dirty --always)/v${pkgver}/" build.sh
}

build() {
    cd ${pkgname}-${pkgver}
    sh build.sh
}

package() {
    cd ${pkgname}-${pkgver}
    install -D -m 0755 "bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
    install -D -m 0644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}