New package: zk-0.14.0
This commit is contained in:
parent
2edbd2df5a
commit
3f62162855
2 changed files with 29 additions and 30 deletions
|
@ -4,7 +4,7 @@ name: Build/Publish XBPS
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- "master"
|
||||||
paths:
|
paths:
|
||||||
- "srcpkgs/**"
|
- "srcpkgs/**"
|
||||||
|
|
||||||
|
@ -66,30 +66,17 @@ jobs:
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/void-linux/void-buildroot-${{ matrix.config.libc }}:20231230R1
|
image: ghcr.io/void-linux/void-buildroot-${{ matrix.config.libc }}:20231230R1
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Clone and checkout
|
||||||
uses: https://code.forgejo.org/actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
|
uses: https://github.com/classabbyamp/treeless-checkout-action@v1
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
|
|
||||||
- name: Get changed packages
|
|
||||||
id: changed
|
|
||||||
uses: https://github.com/tj-actions/changed-files@a29e8b565651ce417abb5db7164b4a2ad8b6155c # v44
|
|
||||||
with:
|
|
||||||
since_last_remote_commit: true
|
|
||||||
|
|
||||||
- name: Prepare container
|
- name: Prepare container
|
||||||
if: ${{ steps.changed.outputs.all_changed_files != '' }}
|
|
||||||
run: |
|
run: |
|
||||||
# switch to repo-ci mirror
|
|
||||||
mkdir -p /etc/xbps.d && cp /usr/share/xbps.d/*-repository-*.conf /etc/xbps.d/
|
mkdir -p /etc/xbps.d && cp /usr/share/xbps.d/*-repository-*.conf /etc/xbps.d/
|
||||||
sed -i 's|repo-default|repo-ci|g' /etc/xbps.d/*-repository-*.conf
|
sed -i 's|repo-default|repo-ci|g' /etc/xbps.d/*-repository-*.conf
|
||||||
# Sync and upgrade once, assume error comes from xbps update
|
xbps-install -Syu || { xbps-install -yu xbps && xbps-install -yu; }
|
||||||
xbps-install -Syu || xbps-install -yu xbps
|
xbps-install -y grep curl git node
|
||||||
# Upgrade again (in case there was a xbps update)
|
|
||||||
xbps-install -yu
|
|
||||||
|
|
||||||
- name: Create hostrepo and prepare masterdir
|
- name: Create hostrepo and prepare masterdir
|
||||||
if: ${{ steps.changed.outputs.all_changed_files != '' }}
|
|
||||||
run: |
|
run: |
|
||||||
ln -s "$(pwd)" /hostrepo &&
|
ln -s "$(pwd)" /hostrepo &&
|
||||||
common/travis/set_mirror.sh &&
|
common/travis/set_mirror.sh &&
|
||||||
|
@ -99,7 +86,6 @@ jobs:
|
||||||
curl -so "/hostdir/binpkgs/${{ matrix.config.arch }}-repodata" "https://xbps.snaile.de/${{ matrix.config.arch }}-repodata" || true
|
curl -so "/hostdir/binpkgs/${{ matrix.config.arch }}-repodata" "https://xbps.snaile.de/${{ matrix.config.arch }}-repodata" || true
|
||||||
|
|
||||||
- name: Build packages
|
- name: Build packages
|
||||||
if: ${{ steps.changed.outputs.all_changed_files != '' }}
|
|
||||||
run: |
|
run: |
|
||||||
(
|
(
|
||||||
here="$(pwd)"
|
here="$(pwd)"
|
||||||
|
@ -107,20 +93,15 @@ jobs:
|
||||||
"$here/common/travis/build.sh" "$BOOTSTRAP" "$ARCH" "$TEST"
|
"$here/common/travis/build.sh" "$BOOTSTRAP" "$ARCH" "$TEST"
|
||||||
)
|
)
|
||||||
|
|
||||||
- name: Sign packages
|
- name: Sign and upload packages
|
||||||
if: ${{ steps.changed.outputs.all_changed_files != '' }}
|
|
||||||
run: |
|
run: |
|
||||||
echo '${{ secrets.XBPS_SIGNING_KEY }}' >"/tmp/privkey.pem"
|
echo '${{ secrets.XBPS_SIGNING_KEY }}' >"/tmp/privkey.pem"
|
||||||
|
|
||||||
for package in ${{ steps.changed.outputs.all_changed_files }}; do
|
for package in $(echo /hostdir/binpkgs/*.${{ matrix.config.arch }}.xbps | cut -d ' ' -f 1); do
|
||||||
file=$(echo /hostdir/binpkgs/${package}-*.${{ matrix.config.arch }}.xbps | cut -d ' ' -f 1)
|
XBPS_PASSPHRASE=${{ secrets.XBPS_SIGNING_PASSPHRASE }} xbps-rindex --privkey "/tmp/privkey.pem" --sign-pkg --signedby "${{ env.MAINTAINER }}" "$package"
|
||||||
[ -r "$file" ]
|
for item in "$package" "${package}.sig2"; do
|
||||||
XBPS_PASSPHRASE=${{ secrets.XBPS_SIGNING_PASSPHRASE }} xbps-rindex --privkey "/tmp/privkey.pem" --sign-pkg --signedby "${{ env.MAINTAINER }}" "$file"
|
curl -X PUT --digest -u "${{ vars.XBPS_WEBDAV_USER }}:${{ secrets.XBPS_WEBDAV_KEY }}" -T "${item}" "https://xbps.snaile.de/$(basename $item)"
|
||||||
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
rm /tmp/privkey.pem
|
rm /tmp/privkey.pem
|
||||||
|
|
||||||
- name: Upload packages
|
|
||||||
if: ${{ steps.changed.outputs.all_changed_files != '' }}
|
|
||||||
run: |
|
|
||||||
find /hostdir/binpkgs -type f -exec sh -c 'curl -X PUT --digest -u "${{ vars.XBPS_WEBDAV_USER }}:${{ secrets.XBPS_WEBDAV_KEY }}" -T "${1}" "https://xbps.snaile.de/$(basename $1)"' find-shell {} \;
|
|
||||||
|
|
18
srcpkgs/zk/template
Normal file
18
srcpkgs/zk/template
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# Template file for 'zk'
|
||||||
|
pkgname=zk
|
||||||
|
version=0.14.0
|
||||||
|
revision=2
|
||||||
|
build_style=go
|
||||||
|
go_import_path=github.com/mickael-menu/zk
|
||||||
|
go_build_tags=fts5
|
||||||
|
short_desc="Plain text note-taking assistant"
|
||||||
|
maintainer="luca <luca@bil.ke>"
|
||||||
|
license="GPL-3.0-or-later"
|
||||||
|
homepage="https://github.com/zk-org/zk/"
|
||||||
|
changelog="https://raw.githubusercontent.com/zk-org/zk/main/CHANGELOG.md"
|
||||||
|
distfiles="https://github.com/zk-org/zk/archive/refs/tags/v${version}.tar.gz"
|
||||||
|
checksum=bd96f93d50e2e72ce05f36c3dab5b7942ae205756f26d4c68ba2a7ccc783abc8
|
||||||
|
|
||||||
|
do_check() {
|
||||||
|
go test -v
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue