Skip to content

Instantly share code, notes, and snippets.

@cbrgm
Created May 9, 2019 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cbrgm/e6d0919866f8df0316f09c836a4f32d8 to your computer and use it in GitHub Desktop.
Save cbrgm/e6d0919866f8df0316f09c836a4f32d8 to your computer and use it in GitHub Desktop.
PKGBUILD cuelang-cue-git
# Configure, Unify, Execute.
# CUE is an open source data constraint language which aims to simplify tasks involving defining and using data.
# It is a superset of JSON, allowing users familiar with JSON to get started quickly.
# Maintainer: Christian Bargmann <chris@cbrgm.net>
pkgname=cuelang-cue-git
pkgver=r157.ad10d9d
pkgrel=1
pkgdesc='The CUE Data Constraint Language'
arch=('x86_64')
url="https://github.com/cuelang/cue"
license=('Apache')
depends=('glibc')
source=("$pkgname"::'git+https://github.com/cuelang/cue.git')
md5sums=('SKIP')
pkgver() {
cd $pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd $pkgname
go build \
-gcflags "all=-trimpath=$PWD" \
-asmflags "all=-trimpath=$PWD" \
-o $pkgname ./cmd/cue
}
package() {
cd $pkgname
install -Dm755 $pkgname "$pkgdir"/usr/bin/cue
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment