Adopt and update

This commit is contained in:
Knut Ahlers 2024-09-10 12:35:11 +02:00
parent 5d02c0f4e6
commit 2be3aa8683
Signed by: luzifer
SSH key fingerprint: SHA256:/xtE5lCgiRDQr8SLxHMS92ZBlACmATUmF1crK16Ks4E
3 changed files with 11 additions and 24 deletions

View file

@ -1,13 +0,0 @@
pkgbase = oras
pkgdesc = A command line tool that allows you to push and pull files from any OCI registry
pkgver = 1.0.0
pkgrel = 1
url = https://github.com/oras-project/oras
arch = x86_64
license = MIT
makedepends = go
makedepends = git
source = oras::git+https://github.com/oras-project/oras#commit=v1.0.0
sha512sums = SKIP
pkgname = oras

7
.gitignore vendored
View file

@ -1,4 +1,3 @@
*.tar.gz *
*.pkg.tar* !.gitignore
pkg/ !PKGBUILD
src/

View file

@ -1,25 +1,26 @@
# Maintainer: JayceCao <jaycecao520@gmail.com> # Maintainer: Knut Ahlers <knut@ahlers.me>
# Contributor: JayceCao <jaycecao520@gmail.com>
pkgname=oras pkgname=oras
pkgver=1.0.0 pkgver=1.2.0
pkgrel=1 pkgrel=1
pkgdesc='A command line tool that allows you to push and pull files from any OCI registry' pkgdesc='A command line tool that allows you to push and pull files from any OCI registry'
arch=(x86_64) arch=(x86_64)
url='https://github.com/oras-project/oras' url='https://github.com/oras-project/oras'
license=(MIT) license=(MIT)
makedepends=('go' 'git') makedepends=('go' 'git')
source=("$pkgname::git+https://github.com/oras-project/oras#commit=v$pkgver") source=("$pkgname-${pkgver}.tgz::https://github.com/oras-project/oras/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=('SKIP') sha256sums=('1f3fc661c90cfb48b4b0e6ef4817b86b28c784186ab0da1a778809938899f574')
build() { build() {
# Flags to trim path from binary # Flags to trim path from binary
export GOFLAGS="-gcflags=all=-trimpath=${PWD} -asmflags=all=-trimpath=${PWD} -ldflags=-extldflags=-zrelro -ldflags=-extldflags=-znow" export GOFLAGS="-gcflags=all=-trimpath=${PWD} -asmflags=all=-trimpath=${PWD} -ldflags=-extldflags=-zrelro -ldflags=-extldflags=-znow"
export VERSION=$pkgver export VERSION=$pkgver
cd "$pkgname" cd "$pkgname-${pkgver}"
make build-linux-amd64 make build-linux-amd64
} }
package() { package() {
install -Dm 755 "$srcdir/$pkgname/bin/linux/amd64/$pkgname" "$pkgdir/usr/bin/$pkgname" install -Dm 755 "$srcdir/$pkgname-${pkgver}/bin/linux/amd64/$pkgname" "$pkgdir/usr/bin/$pkgname"
} }