CI: Add local Forgejo CI
Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
parent
ac86c0e5c3
commit
5ef8560f04
3 changed files with 79 additions and 0 deletions
31
.forgejo/workflows/build-alpine.yaml
Normal file
31
.forgejo/workflows/build-alpine.yaml
Normal file
|
@ -0,0 +1,31 @@
|
|||
name: PostmarketOS Build
|
||||
run-name: PostmarketOS Build
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: Pmbootstrap
|
||||
strategy:
|
||||
matrix:
|
||||
info:
|
||||
- arch: aarch64
|
||||
- arch: x86_64
|
||||
name: Build for ${{ matrix.info.arch }}
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- name: Build package
|
||||
id: build
|
||||
uses: actions/pmbootstrap-build@main
|
||||
with:
|
||||
name: q6meowd
|
||||
aports: ${{github.workspace}}/package/alpine
|
||||
arch: ${{ matrix.info.arch }}
|
||||
src: ${{github.workspace}}
|
||||
- name: "Upload packages"
|
||||
uses: actions/upload-alpine-package@main
|
||||
with:
|
||||
files: ${{steps.build.outputs.packages}}
|
||||
secret: ${{secrets.PACKAGE_TOKEN}}
|
34
package/alpine/APKBUILD
Normal file
34
package/alpine/APKBUILD
Normal file
|
@ -0,0 +1,34 @@
|
|||
# Maintainer: NekoCWD <nekodevelopper@gmail.com>
|
||||
pkgname=q6meowd
|
||||
pkgver=1.1
|
||||
pkgrel=0
|
||||
pkgdesc="Enable q6voice audio when call is performed with ModemManager"
|
||||
url="https://gitlab.postmarketos.org/NekoCWD/q6meowd"
|
||||
arch="all"
|
||||
license="GPL-3.0-or-later"
|
||||
makedepends="
|
||||
alsa-lib-dev
|
||||
dbus-glib-dev
|
||||
glib-dev
|
||||
meson
|
||||
vala
|
||||
"
|
||||
subpackages="$pkgname-openrc"
|
||||
source="q6meowd.initd"
|
||||
options="!check" # no tests
|
||||
builddir="$srcdir/q6meowd-v$pkgver"
|
||||
provides="q6voiced=$pkgver-r$pkgrel"
|
||||
|
||||
build() {
|
||||
abuild-meson . output
|
||||
meson compile ${JOBS:+-j ${JOBS}} -C output
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" meson install -C output
|
||||
install -Dm755 "$srcdir"/q6meowd.initd "$pkgdir"/etc/init.d/q6meowd
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
34b4aaead2e36fc1e246b84395ce470461e6385dcac4db7673043fd7fed980cbca08d1018076d3cbe3291b4082572e364a24f8765e37a2e0dc693a01e661adcf q6meowd.initd
|
||||
"
|
14
package/alpine/q6meowd.initd
Normal file
14
package/alpine/q6meowd.initd
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/sbin/openrc-run
|
||||
supervisor=supervise-daemon
|
||||
|
||||
name="q6meowd"
|
||||
description="Enable q6voice audio when call is performed with ModemManager"
|
||||
|
||||
# Note: q6voice_card/q6voice_device need to be set in /etc/conf.d/q6voiced
|
||||
command="/usr/bin/q6meowd"
|
||||
command_args=""
|
||||
supervise_daemon_args="--user root"
|
||||
|
||||
depend() {
|
||||
need dbus
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue