add xcursor-retrosmart template
Build/Publish XBPS / build-and-publish (push) Failing after 3s Details

enable test builds

cleanup (trigger build xd)

experimental new pipeline

"""cleanup"""

remove experimental changes
This commit is contained in:
Luca Bilke 2024-05-20 21:15:01 +02:00
parent 6ecb4d97fd
commit 208c9c5d9b
No known key found for this signature in database
GPG Key ID: C9E851809C1A5BDE
2 changed files with 41 additions and 9 deletions

View File

@ -3,8 +3,8 @@ name: Build/Publish XBPS
on:
push:
branches:
- main
# branches:
# - main
paths-ignore:
- ".forgejo**"
- ".renovaterc.json"
@ -12,16 +12,13 @@ on:
jobs:
build-and-publish:
runs-on: docker
container: git.snaile.de/snailed/xbps-builder:2024.0518.2200@sha256:19295b8f229fffa436956f35c6f0ce266adbe11e5a44edbe24d9e0ed29edabd6
runs-on: xbps-builder
env:
MAINTAINER: "Luca Bilke <luca@bil.ke>"
ARCH: "x86_64"
steps:
- name: Checkout
uses: https://code.forgejo.org/actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
with:
submodules: true
- name: Get changed packages
id: changed
@ -32,6 +29,7 @@ jobs:
- name: Build packages
run: |
set -xeu
echo "${{ steps.changed.outputs.all_changed_files }}"
packages=$(echo "${{ steps.changed.outputs.all_changed_files }}" | grep -oP '(?<=srcpkgs/)[^/]*' | xargs)
[ -z "${packages}" ] && exit 0
@ -39,14 +37,15 @@ jobs:
export XBPS_TARGET_ARCH
for package in $packages; do
cp -a "srcpkgs/${package}" "/void-packages-master/srcpkgs/"
cp -a "srcpkgs/${package}" "/vp-master/srcpkgs/"
set +e
bash -x /void-packages-master/xbps-src pkg "${package}" >"pkg.log"
bash -x /vp-master/xbps-src pkg "${package}" >"pkg.log"
set -e
mv /void-packages-master/hostdir/binpkgs/${package}-*.${{ env.ARCH }}.xbps "/target/"
mv /vp-master/hostdir/binpkgs/${package}-*.${{ env.ARCH }}.xbps "/target/"
done
- name: Push packages
if: github.ref == 'refs/heads/main'
run: |
set -xeu

View File

@ -0,0 +1,33 @@
# Template file for 'xcursor-retrosmart'
pkgname=xcursor-retrosmart
version=3.1a
revision=1
homepage="https://github.com/mdomlop/retrosmart-x11-cursors"
license="GPL-3.0"
build_style="gnu-makefile"
make_depends="ImageMagick xcursorgen"
short_desc="A retrosmart look collection of cursors for X."
maintainer="luca <luca@snaile.de>"
distfiles="https://github.com/mdomlop/retrosmart-x11-cursors/archive/refs/tags/3.1a.tar.gz"
pre_fetch() {
cd "$XBPS_SRCDISTDIR" || {
msg_error "$pkgver: cannot change dir to $XBPS_BUILDDIR!\n"
exit 1
}
url="${distfiles}"
distfile="$(basename "$url")"
flock "${distfile}.part" $fetch_cmd "$url"
flock -n "${distfile}.part" rm -f "${distfile}.part"
checksum="$(${XBPS_DIGEST_CMD} "$distfile")"
mkdir -p "$XBPS_SRCDISTDIR/by_sha256"
mv "$distfile" "$XBPS_SRCDISTDIR/by_sha256/${checksum}_${distfile}"
}
post_install() {
vlicense LICENSE
}