-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsnapcraft.yaml
More file actions
69 lines (60 loc) · 2.43 KB
/
snapcraft.yaml
File metadata and controls
69 lines (60 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: ld-cli
title: Linked Data CLI
version: 1.0.2
license: Apache-2.0
summary: Command-line tool for JSON-LD, RDF, RDFC, JCS, CBOR-LD, semantic processing
description: |
Linked Data CLI (`ld-cli`) is a command-line tool for processing and transforming linked data formats, including:
• JSON-LD (JavaScript Object Notation for Linked Data)
• RDF (Resource Description Framework)
• RDFC (RDF Canonicalization)
• JCS (JSON Canonicalization Scheme)
• CBOR-LD (Concise Binary Object Representation for Linked Data)
• multibase (Base-encoding format with self-describing prefixes)
• multicodec (Self-describing content type identifiers)
Supports batch workflows, canonicalization, serialization, encoding, decoding, and format conversion for linked data resources, binary identifiers, and content addressing formats in knowledge graphs, decentralized identifiers (DIDs), and semantic web applications.
source-code: https://github.com/filip26/ld-cli
issues: https://github.com/filip26/ld-cli/issues
contact: filip26@gmail.com
confinement: strict
base: core24
grade: stable
parts:
graalvm:
plugin: nil
source: https://download.oracle.com/graalvm/25/latest/graalvm-jdk-25_linux-x64_bin.tar.gz
build-packages:
- wget
- tar
override-build: |
echo "=== Entering GraalVM override-build ==="
mkdir -p $SNAPCRAFT_STAGE/opt
wget -qO- https://download.oracle.com/graalvm/25/latest/graalvm-jdk-25_linux-x64_bin.tar.gz | tar xz -C $SNAPCRAFT_STAGE/opt
GRAALVM_DIR=$(find $SNAPCRAFT_STAGE/opt -maxdepth 1 -type d -name "graalvm-*")
if [ -z "$GRAALVM_DIR" ]; then
ls -l "$GRAALVM_DIR"
echo "❌ Error: GraalVM directory not found."
exit 1
fi
echo "✅ Found GraalVM directory: $GRAALVM_DIR"
# Create symlink
ln -s "$GRAALVM_DIR" "$SNAPCRAFT_STAGE/opt/graalvm"
ld-cli:
after: [graalvm]
plugin: nil
source: .
build-packages:
- maven
- build-essential
override-build: |
export JAVA_HOME=$SNAPCRAFT_STAGE/opt/graalvm
export PATH=$JAVA_HOME/bin:$PATH
echo "JAVA_HOME is set to: $JAVA_HOME" # For debugging purposes
echo "PATH is set to: $PATH" # For debugging purposes
mvn package -Pnative
mkdir -p $SNAPCRAFT_PART_INSTALL/bin
cp target/ld-cli $SNAPCRAFT_PART_INSTALL/bin/
apps:
ld-cli:
command: bin/ld-cli
plugs: [home, network, network-bind]