blob: 684dd2844867171659e7a3c0bf550697a81c9a0f (
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
|
# Maintainer: Prasanth Bupd <bupdprasanth@gmail.com>
pkgname=oras-git
pkgver=1.2.0
pkgrel=2
pkgdesc='OCI registry client - managing content like artifacts, images, packages'
arch=(x86_64)
url='https://github.com/oras-project/oras'
license=(MIT)
makedepends=('go' 'git')
conflicts=('oras')
source=("$pkgname::git+https://github.com/oras-project/oras#commit=v$pkgver")
sha512sums=('SKIP')
build() {
# Flags to trim path from binary
export GOFLAGS="-gcflags=all=-trimpath=${PWD} -asmflags=all=-trimpath=${PWD} -ldflags=-extldflags=-zrelro -ldflags=-extldflags=-znow"
export VERSION=$pkgver
cd "$pkgname"
make build-linux-amd64
}
package() {
install -Dm755 "$srcdir/$pkgname/bin/linux/amd64/oras" "$pkgdir/usr/bin/oras"
}
|