Created
May 9, 2019 22:01
-
-
Save cbrgm/e6d0919866f8df0316f09c836a4f32d8 to your computer and use it in GitHub Desktop.
PKGBUILD cuelang-cue-git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 <[email protected]> | |
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