Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alpine
aports
Commits
b146be38
Commit
b146be38
authored
2 years ago
by
Hoang Nguyen
Committed by
alice
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
testing/opcr-policy: new aport
parent
5d92a9f0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!45338
testing/opcr-policy: new aport
Pipeline
#157496
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testing/opcr-policy/APKBUILD
+37
-0
37 additions, 0 deletions
testing/opcr-policy/APKBUILD
with
37 additions
and
0 deletions
testing/opcr-policy/APKBUILD
0 → 100644
+
37
−
0
View file @
b146be38
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname
=
opcr-policy
pkgver
=
0.1.51
pkgrel
=
0
pkgdesc
=
"CLI for building, versioning and publishing authorization policies"
url
=
"https://www.openpolicycontainers.com/"
arch
=
"all"
license
=
"Apache-2.0"
makedepends
=
"go"
source
=
"
$pkgname
-
$pkgver
.tar.gz::https://github.com/opcr-io/policy/archive/refs/tags/v
$pkgver
.tar.gz"
builddir
=
"
$srcdir
/policy-
$pkgver
"
export
GOCACHE
=
"
${
GOCACHE
:-
"
$srcdir
/go-cache"
}
"
export
GOTMPDIR
=
"
${
GOTMPDIR
:-
"
$srcdir
"
}
"
export
GOMODCACHE
=
"
${
GOMODCACHE
:-
"
$srcdir
/go"
}
"
build
()
{
local
_goldflags
=
"
-X github.com/opcr-io/policy/pkg/version.ver=
$pkgver
-X github.com/opcr-io/policy/pkg/version.commit=AlpineLinux
-X github.com/opcr-io/policy/pkg/version.date=
$(
date
-u
"+%Y-%m-%dT%H:%M:%SZ"
${
SOURCE_DATE_EPOCH
:+-d
@
$SOURCE_DATE_EPOCH
}
)
"
go build
-v
-ldflags
"
$_goldflags
"
./cmd/policy/
}
check
()
{
go
test
./...
}
package
()
{
install
-Dm755
policy
-t
"
$pkgdir
"
/usr/bin/
}
sha512sums
=
"
34706cf0b1025eaea7446de30726873cdbf917247eca3cb40a104e9f453d91551ebedce7902286b1f4cc965e8322234e64f27162af48577ee71a2d4757123d93 opcr-policy-0.1.51.tar.gz
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment