refresh
Some checks are pending
Release Alpine apk for ARM64v8 / compilation-arm64v8 (push) Waiting to run
Some checks are pending
Release Alpine apk for ARM64v8 / compilation-arm64v8 (push) Waiting to run
This commit is contained in:
parent
27b1358918
commit
4355d79c91
6 changed files with 34 additions and 35 deletions
|
|
@ -1,56 +1,55 @@
|
|||
name: 'Release Alpine apk for ARM64v8'
|
||||
name: "Release Alpine apk for ARM64v8"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
|
||||
|
||||
jobs:
|
||||
compilation-arm64v8:
|
||||
runs-on: arm64v8-alpine-latest-pv
|
||||
runs-on: alpine:latest
|
||||
steps:
|
||||
- name: Select faster mirror and add tools
|
||||
shell: sh
|
||||
run: |
|
||||
echo "https://alpine.sakamoto.pl/alpine/$(cat /etc/os-release | grep PRETT | cut -d ' ' -f 3 | cut -d '"' -f 1)/main" > /etc/apk/repositories
|
||||
echo "https://alpine.sakamoto.pl/alpine/$(cat /etc/os-release | grep PRETT | cut -d ' ' -f 3 | cut -d '"' -f 1)/community" >> /etc/apk/repositories
|
||||
apk -U upgrade
|
||||
apk add bash git wget curl nodejs sshfs alpine-sdk abuild sudo shadow
|
||||
echo "https://alpine.sakamoto.pl/alpine/$(cat /etc/os-release | grep PRETT | cut -d ' ' -f 3 | cut -d '"' -f 1)/main" > /etc/apk/repositories
|
||||
echo "https://alpine.sakamoto.pl/alpine/$(cat /etc/os-release | grep PRETT | cut -d ' ' -f 3 | cut -d '"' -f 1)/community" >> /etc/apk/repositories
|
||||
apk -U upgrade
|
||||
apk add bash git wget curl nodejs sshfs alpine-sdk abuild sudo shadow
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Set up environment and users
|
||||
run: |
|
||||
echo "user_allow_other" >> /etc/fuse.conf
|
||||
adduser runner -u 1001 -D -s /bin/bash -G wheel
|
||||
addgroup -g 1001 runner
|
||||
addgroup runner abuild
|
||||
addgroup runner runner
|
||||
chmod 660 /etc/sudoers
|
||||
echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||
chmod 440 /etc/sudoers
|
||||
mkdir -p /var/cache/distfiles
|
||||
chmod a+w /var/cache/distfiles
|
||||
chsh -s /bin/bash
|
||||
su - runner -c 'mkdir ~/.abuild'
|
||||
echo "setup done"
|
||||
echo "user_allow_other" >> /etc/fuse.conf
|
||||
adduser runner -u 1001 -D -s /bin/bash -G wheel
|
||||
addgroup -g 1001 runner
|
||||
addgroup runner abuild
|
||||
addgroup runner runner
|
||||
chmod 660 /etc/sudoers
|
||||
echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||
chmod 440 /etc/sudoers
|
||||
mkdir -p /var/cache/distfiles
|
||||
chmod a+w /var/cache/distfiles
|
||||
chsh -s /bin/bash
|
||||
su - runner -c 'mkdir ~/.abuild'
|
||||
echo "setup done"
|
||||
- name: Set up keys
|
||||
run: |
|
||||
wget -q https://static.itmodulo.eu/dl/repo/public_keys/alpine/itmodulo%40disroot.org-65b4f779.rsa.pub -P /etc/apk/keys
|
||||
su - runner -c 'wget -q https://static.itmodulo.eu/dl/repo/public_keys/alpine/itmodulo%40disroot.org-65b4f779.rsa.pub -P ~/.abuild/'
|
||||
echo "${{ secrets.REPO_PRIVKEY }}" > /home/runner/.abuild/${{ secrets.REPO_PRIVKEY_FILENAME }} && chown runner:runner /home/runner/.abuild/${{ secrets.REPO_PRIVKEY_FILENAME }}
|
||||
su - runner -c "echo 'PACKAGER_PRIVKEY="/home/runner/.abuild/${{ secrets.REPO_PRIVKEY_FILENAME }}"' >> ~/.abuild/abuild.conf"
|
||||
wget -q https://static.itmodulo.eu/dl/repo/public_keys/alpine/itmodulo%40disroot.org-65b4f779.rsa.pub -P /etc/apk/keys
|
||||
su - runner -c 'wget -q https://static.itmodulo.eu/dl/repo/public_keys/alpine/itmodulo%40disroot.org-65b4f779.rsa.pub -P ~/.abuild/'
|
||||
echo "${{ secrets.REPO_PRIVKEY }}" > /home/runner/.abuild/${{ secrets.REPO_PRIVKEY_FILENAME }} && chown runner:runner /home/runner/.abuild/${{ secrets.REPO_PRIVKEY_FILENAME }}
|
||||
su - runner -c "echo 'PACKAGER_PRIVKEY="/home/runner/.abuild/${{ secrets.REPO_PRIVKEY_FILENAME }}"' >> ~/.abuild/abuild.conf"
|
||||
- name: Compile in sequence
|
||||
run: |
|
||||
mv srcpkgs /home/runner && chown -R runner:runner /home/runner/srcpkgs
|
||||
su - runner -c 'export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"; cd srcpkgs/hunspell-pl; abuild -r'
|
||||
echo "/home/runner/packages/srcpkgs" >> /etc/apk/repositories
|
||||
su - runner -c 'export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"; cd srcpkgs; for i in $(ls ./ | grep -v hunspell-pl); do cd $i && abuild -r; cd .. ; done'
|
||||
mv srcpkgs /home/runner && chown -R runner:runner /home/runner/srcpkgs
|
||||
echo "/home/runner/packages/srcpkgs" >> /etc/apk/repositories
|
||||
su - runner -c 'export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"; cd srcpkgs; for i in $(ls ./ | grep -v hunspell-pl); do cd $i && abuild -r; cd .. ; done'
|
||||
- name: Mount and upload
|
||||
run: |
|
||||
su - runner -c 'mkdir hole'
|
||||
echo "${{ secrets.REPO_LOGIN }}" > /home/runner/id_ecdsa && chown runner:runner /home/runner/id_ecdsa && chmod 600 /home/runner/id_ecdsa
|
||||
su - runner -c 'sshfs -p "${{ secrets.LOGIN_PORT }}" -o StrictHostKeyChecking=accept-new -o default_permissions,allow_other -o IdentityFile=/home/runner/id_ecdsa "${{ secrets.SERVER_LOGIN_AND_ADDRESS }}":"${{ secrets.SERVER_REPO_PATH }}" /home/runner/hole'
|
||||
su - runner -c 'ls -lah /home/runner/hole/latest-stable/main/aarch64/'
|
||||
su - runner -c 'rm -rf hole/latest-stable/main/aarch64/*'
|
||||
su - runner -c 'cp packages/srcpkgs/aarch64/* hole/latest-stable/main/aarch64/'
|
||||
su - runner -c 'ls -lah /home/runner/hole/latest-stable/main/aarch64/'
|
||||
su - runner -c 'mkdir hole'
|
||||
echo "${{ secrets.REPO_LOGIN }}" > /home/runner/id_ecdsa && chown runner:runner /home/runner/id_ecdsa && chmod 600 /home/runner/id_ecdsa
|
||||
su - runner -c 'sshfs -p "${{ secrets.LOGIN_PORT }}" -o StrictHostKeyChecking=accept-new -o default_permissions,allow_other -o IdentityFile=/home/runner/id_ecdsa "${{ secrets.SERVER_LOGIN_AND_ADDRESS }}":"${{ secrets.SERVER_REPO_PATH }}" /home/runner/hole'
|
||||
su - runner -c 'ls -lah /home/runner/hole/latest-stable/main/aarch64/'
|
||||
su - runner -c 'rm -rf hole/latest-stable/main/aarch64/*'
|
||||
su - runner -c 'cp packages/srcpkgs/aarch64/* hole/latest-stable/main/aarch64/'
|
||||
su - runner -c 'ls -lah /home/runner/hole/latest-stable/main/aarch64/'
|
||||
|
|
|
|||
42
keep/dialect/APKBUILD
Normal file
42
keep/dialect/APKBUILD
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
# Contributor: ITmodulo <itmodulo@disroot.org>
|
||||
# Maintainer: ITmodulo <itmodulo@disroot.org>
|
||||
pkgname=dialect
|
||||
pkgver=2.2.0
|
||||
pkgrel=0
|
||||
pkgdesc="GTK/Libadwaita native translation app (LibreTranslate, Lingva) "
|
||||
arch="noarch"
|
||||
url="https://github.com/lemmygtk/lemoa"
|
||||
license="GPL-3.0-or-later"
|
||||
makedepends="cmake extra-cmake-modules gstreamer-dev gstreamer-tools desktop-file-utils pkgconf gtk4.0-dev libadwaita-dev meson ninja py3-gst py3-dbus-dev libsoup3-dev py3-gobject3-dev py3-gtts blueprint-compiler-dev appstream-glib-dev gobject-introspection-dev"
|
||||
subpackages="$pkgname-lang"
|
||||
source="
|
||||
$pkgname-$pkgver.tar.gz::https://github.com/dialect-app/$pkgname/archive/refs/tags/$pkgver.tar.gz
|
||||
po-$pkgver.tar.gz::https://github.com/dialect-app/po/archive/refs/tags/$pkgver.tar.gz
|
||||
"
|
||||
|
||||
prepare(){
|
||||
default_prepare
|
||||
rmdir po
|
||||
cd ..
|
||||
# Those are translations released same way same tag but in other repo
|
||||
mv po-$pkgver $pkgname-$pkgver/po
|
||||
cd $pkgname-$pkgver
|
||||
}
|
||||
|
||||
build() {
|
||||
abuild-meson . output
|
||||
meson compile -C output
|
||||
}
|
||||
|
||||
check() {
|
||||
meson test -C output --print-errorlogs
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
716509f55e3098895892005bc678a37ee87f2d9b2fcbdd95205e2c13e22966797d635f404b150fead4e7b8997513db8f53dadd1572ee0f33ec93af6b0158b6c8 dialect-2.2.0.tar.gz
|
||||
8186cfc7a74b7e9dd303a251fd8d70e8a92b72ba626d3b21089bc380687f9bdf9ba7d7d3ba6ed62f70f1f8f28bf6fd9eba8ae11aeeb2f129cbfbe8b0cd8dbb35 po-2.2.0.tar.gz
|
||||
"
|
||||
30
keep/dissent/APKBUILD
Normal file
30
keep/dissent/APKBUILD
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# Contributor: ITmodulo <itmodulo@disroot.org>
|
||||
# Maintainer: ITmodulo <itmodulo@disroot.org>
|
||||
pkgname=dissent
|
||||
pkgver=0.0.21
|
||||
pkgrel=0
|
||||
pkgdesc="GTK4/Libadwaita native discord client written in Go"
|
||||
url="https://github.com/diamondburned/dissent"
|
||||
license="GPL-3.0-or-later"
|
||||
arch="all"
|
||||
makedepends="go gobject-introspection-dev gtk4.0-dev libadwaita-dev libsecret-dev libcanberra-dev"
|
||||
depends="libsecret"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/diamondburned/$pkgname/archive/refs/tags/v$pkgver.tar.gz"
|
||||
|
||||
build() {
|
||||
go build -ldflags="-s -w" -o bin/$pkgname
|
||||
}
|
||||
|
||||
check() {
|
||||
go test ./...
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm755 bin/$pkgname "$pkgdir"/usr/bin/$pkgname
|
||||
install -Dm644 internal/icons/hicolor/scalable/apps/so.libdb.dissent.svg "$pkgdir"/usr/share/pixmaps/so.libdb.dissent.svg
|
||||
install -Dm644 nix/so.libdb.dissent.desktop "$pkgdir"/usr/share/applications/so.libdb.dissent.desktop
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
cedd3f9794f07f8a69bae5e86ba162854896510b76685012d607766c6c3049a299c23cefb0b5b7a6ab8a1568fc096027b8588eca0a0a35c7f9bbf9cea284260e dissent-0.0.21.tar.gz
|
||||
"
|
||||
33
keep/hunspell-pl/APKBUILD
Normal file
33
keep/hunspell-pl/APKBUILD
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# Contributor: ITmodulo <itmodulo@disroot.org>
|
||||
# Maintainer: ITmodulo <itmodulo@disroot.org>
|
||||
pkgname=hunspell-pl
|
||||
pkgver=20240301
|
||||
pkgrel=0
|
||||
pkgdesc="Polish dictionary for Hunspell"
|
||||
arch="noarch"
|
||||
url='https://www.sjp.pl/slownik/ort/'
|
||||
license="GPL-3.0-or-later"
|
||||
makedepends="unzip enca"
|
||||
depends="hunspell"
|
||||
source="https://sjp.pl/sl/ort/sjp-myspell-pl-$pkgver.zip"
|
||||
options="!check" # static files
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
unzip pl_PL.zip
|
||||
enca -L pl -x utf8 pl_PL.aff
|
||||
enca -L pl -x utf8 pl_PL.dic
|
||||
# fix encoding in .aff files
|
||||
sed -i "s/SET ISO8859-2/SET UTF-8/" pl_PL.aff
|
||||
}
|
||||
|
||||
package() {
|
||||
cd src/
|
||||
install -dm755 "$pkgdir"/usr/share/hunspell
|
||||
install -m644 pl_PL.aff "$pkgdir"/usr/share/hunspell
|
||||
install -m644 pl_PL.dic "$pkgdir"/usr/share/hunspell
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
557ea2eff54c806e3ca866deaef4c2bda8d714067dafe65a2a29041fa2816812bbd7cde86baa6b8fc9740cc268b3acbc1cdb6e054d19673b1437c02d1475efe7 sjp-myspell-pl-20240301.zip
|
||||
"
|
||||
60
keep/phosh-osk-stub/APKBUILD
Normal file
60
keep/phosh-osk-stub/APKBUILD
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
# Contributor: ITmodulo <itmodulo@disroot.org>
|
||||
# Maintainer: ITmodulo <itmodulo@disroot.org>
|
||||
pkgname=phosh-osk-stub
|
||||
pkgver=0.37.0
|
||||
pkgrel=1
|
||||
pkgdesc="Alternative experimental on-screen keyboard for phosh"
|
||||
arch="all"
|
||||
url="https://gitlab.gnome.org/guidog/phosh-osk-stub"
|
||||
license="GPL-3.0-or-later"
|
||||
subpackages="$pkgname-doc"
|
||||
makedepends="
|
||||
cmd:rst2man
|
||||
elogind-dev
|
||||
feedbackd-dev
|
||||
glib-dev
|
||||
gnome-desktop-dev
|
||||
gtk+3.0-dev
|
||||
hunspell-dev
|
||||
json-glib-dev
|
||||
libhandy1-dev
|
||||
meson
|
||||
cmake
|
||||
cmake-extras
|
||||
wayland-dev
|
||||
wayland-protocols
|
||||
fzf
|
||||
presage-dev
|
||||
appstream
|
||||
gtk+3.0-dev
|
||||
gobject-introspection-dev
|
||||
gi-docgen
|
||||
libmarisa
|
||||
"
|
||||
depends="!squeekboard libmarisa"
|
||||
checkdepends="xvfb-run"
|
||||
source="https://gitlab.gnome.org/guidog/phosh-osk-stub/-/archive/v$pkgver/phosh-osk-stub-v$pkgver.tar.gz"
|
||||
builddir="$srcdir/$pkgname-v$pkgver"
|
||||
|
||||
provides="phosh-keyboard"
|
||||
|
||||
build() {
|
||||
abuild-meson \
|
||||
-Dgtk_doc=true \
|
||||
-Db_lto=true \
|
||||
-Dman=true \
|
||||
. output
|
||||
meson compile -C output
|
||||
}
|
||||
|
||||
check() {
|
||||
xvfb-run -a meson test --no-rebuild --print-errorlogs -C output
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
880f0cd0c76dc45ca55b1e3f6aadc0488f4bd475ccfadcb11d628e8e0003a2413f14e44e00c75b21837dfc51ba0a6259965d6978eec7be75655bcc20bfe221b1 phosh-osk-stub-v0.37.0.tar.gz
|
||||
"
|
||||
32
keep/supersonic-desktop/APKBUILD
Normal file
32
keep/supersonic-desktop/APKBUILD
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# Contributor: ITmodulo <itmodulo@disroot.org>
|
||||
# Maintainer: ITmodulo <itmodulo@disroot.org>
|
||||
pkgname=supersonic-desktop
|
||||
pkgver=0.9.1
|
||||
pkgrel=0
|
||||
pkgdesc="Full-featured, mpv-based music player for Subsonic and Jellyfin servers"
|
||||
url="https://github.com/dweymouth/supersonic"
|
||||
license="GPL-3.0-or-later"
|
||||
arch="all"
|
||||
makedepends="go mpv-dev libayatana-appindicator-dev libsecret-dev glib-dev libx11-dev"
|
||||
depends="libayatana-appindicator libsecret"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/dweymouth/supersonic/archive/refs/tags/v$pkgver.tar.gz"
|
||||
|
||||
build() {
|
||||
cd "supersonic-$pkgver"
|
||||
go build -ldflags="-s -w" -o bin/$pkgname
|
||||
}
|
||||
|
||||
check() {
|
||||
go test ./...
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "src/supersonic-$pkgver"
|
||||
install -Dm755 bin/$pkgname "$pkgdir"/usr/bin/$pkgname
|
||||
install -Dm644 res/appicon.png "$pkgdir"/usr/share/pixmaps/supersonic-desktop.png
|
||||
install -Dm644 res/supersonic-desktop.desktop "$pkgdir"/usr/share/applications/supersonic-desktop.desktop
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
fe6e1b6777d365af71cd19f4f25fb6abd5651401ae88234216a8b2ccbae496d59a24f7c4ad66e43c493e857f504006027dc19e962a83cf551f6079a59ba38e2f supersonic-desktop-0.9.1.tar.gz
|
||||
"
|
||||
Loading…
Reference in a new issue