blob: b8f6418392e6aaa6b175d3fe12747a0a369dccd4 (
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
37
38
39
|
# Maintainer: Starry Wang <starry.wang@suse.com>
pkgname=hangar-git
pkgver=v1.7.1.r9.ga91579b
pkgrel=1
epoch=
pkgdesc="Command line utility to mirror container images"
arch=("x86_64" "i686" "aarch64" "armv7h" "armv6h")
url="https://github.com/cnrancher/hangar"
license=("Apache")
conflicts=("hangar-bin" "hangar")
depends=(
"gpgme"
"device-mapper"
"containers-common"
)
makedepends=(
"go"
"git"
"btrfs-progs"
)
provides=()
source=("git+$url")
sha256sums=("SKIP")
pkgver() {
cd "${srcdir}/hangar"
git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/hangar"
./scripts/build.sh
}
package() {
cd $srcdir
install -Dm755 "${srcdir}/hangar/bin/hangar" "${pkgdir}/usr/bin/hangar"
install -Dm644 "${srcdir}/hangar/LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}
|