diff --git a/.SRCINFO b/.SRCINFO deleted file mode 100644 index acf873a..0000000 --- a/.SRCINFO +++ /dev/null @@ -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 diff --git a/.gitignore b/.gitignore index cf9e604..e087cfe 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -*.tar.gz -*.pkg.tar* -pkg/ -src/ +* +!.gitignore +!PKGBUILD diff --git a/PKGBUILD b/PKGBUILD index a512cfb..4ccdfe9 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,25 +1,26 @@ -# Maintainer: JayceCao +# Maintainer: Knut Ahlers +# Contributor: JayceCao + pkgname=oras -pkgver=1.0.0 +pkgver=1.2.0 pkgrel=1 pkgdesc='A command line tool that allows you to push and pull files from any OCI registry' arch=(x86_64) url='https://github.com/oras-project/oras' license=(MIT) makedepends=('go' 'git') -source=("$pkgname::git+https://github.com/oras-project/oras#commit=v$pkgver") -sha512sums=('SKIP') +source=("$pkgname-${pkgver}.tgz::https://github.com/oras-project/oras/archive/refs/tags/v${pkgver}.tar.gz") +sha256sums=('1f3fc661c90cfb48b4b0e6ef4817b86b28c784186ab0da1a778809938899f574') 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" + cd "$pkgname-${pkgver}" make build-linux-amd64 } 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" }