mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-17 19:20:20 +00:00
Modify OpenBSD package creation for ZoiteChat
Update package creation script for ZoiteChat to include full package path and comment.
This commit is contained in:
committed by
GitHub
parent
3225a28e12
commit
cc359bd3e3
18
.github/workflows/openbsd-build.yml
vendored
18
.github/workflows/openbsd-build.yml
vendored
@@ -73,37 +73,43 @@ jobs:
|
|||||||
|
|
||||||
version="$(meson introspect --projectinfo build | sed -n 's/.*"version"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p')"
|
version="$(meson introspect --projectinfo build | sed -n 's/.*"version"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p')"
|
||||||
pkg_name="zoitechat-${version}"
|
pkg_name="zoitechat-${version}"
|
||||||
|
pkg_file="${pkg_name}.tgz"
|
||||||
plist="$work/openbsd-plist"
|
plist="$work/openbsd-plist"
|
||||||
desc="$work/DESCR"
|
desc="$work/DESCR"
|
||||||
|
|
||||||
cat >"$desc" <<'EOF'
|
cat >"$desc" <<'EOF'
|
||||||
ZoiteChat is an IRC client (HexChat-derived) with a GTK UI and optional tools.
|
ZoiteChat is an IRC client (HexChat-derived) with a GTK UI and optional tools.
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
{
|
{
|
||||||
echo "@name ${pkg_name}"
|
|
||||||
echo "@cwd /usr/local"
|
echo "@cwd /usr/local"
|
||||||
|
|
||||||
|
# Files + symlinks
|
||||||
find "$snap/usr/local" \( -type f -o -type l \) -print \
|
find "$snap/usr/local" \( -type f -o -type l \) -print \
|
||||||
| LC_ALL=C sort \
|
| LC_ALL=C sort \
|
||||||
| sed "s#^$snap/usr/local/##"
|
| sed "s#^$snap/usr/local/##"
|
||||||
|
|
||||||
|
# Directories (reverse so children removed first)
|
||||||
find "$snap/usr/local" -mindepth 1 -type d -print \
|
find "$snap/usr/local" -mindepth 1 -type d -print \
|
||||||
| LC_ALL=C sort -r \
|
| LC_ALL=C sort -r \
|
||||||
| sed "s#^$snap/usr/local/##" \
|
| sed "s#^$snap/usr/local/##" \
|
||||||
| sed 's#^#@dir #'
|
| sed 's#^#@dir #'
|
||||||
} > "$plist"
|
} > "$plist"
|
||||||
|
|
||||||
|
# OpenBSD pkg_create: COMMENT is set via -D COMMENT=... (mandatory), no -c flag exists.
|
||||||
|
# Create the .tgz in $work so we can copy it back out.
|
||||||
|
cd "$work"
|
||||||
pkg_create \
|
pkg_create \
|
||||||
-B "$snap" \
|
-B "$snap" \
|
||||||
-p /usr/local \
|
-p /usr/local \
|
||||||
-f "$plist" \
|
-f "$plist" \
|
||||||
-c "ZoiteChat IRC client" \
|
|
||||||
-d "$desc" \
|
-d "$desc" \
|
||||||
"$work/${pkg_name}.tgz"
|
-D "COMMENT=ZoiteChat IRC client" \
|
||||||
|
-D "FULLPKGPATH=net/zoitechat" \
|
||||||
|
"$pkg_file"
|
||||||
|
|
||||||
mkdir -p "$GITHUB_WORKSPACE/artifacts"
|
mkdir -p "$GITHUB_WORKSPACE/artifacts"
|
||||||
cp "$work/${pkg_name}.tgz" "$GITHUB_WORKSPACE/artifacts/"
|
cp "$work/$pkg_file" "$GITHUB_WORKSPACE/artifacts/"
|
||||||
|
|
||||||
- name: Upload OpenBSD package
|
- name: Upload OpenBSD package
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user