experimental new setup

This commit is contained in:
Luca Bilke 2024-05-21 13:12:59 +02:00
parent 480e408eff
commit 0904aa5121
No known key found for this signature in database
GPG Key ID: B753481DA0B6FA47
20 changed files with 531 additions and 380 deletions

View File

@ -3,12 +3,13 @@ name: Check build
on: on:
pull_request: pull_request:
paths: paths:
- 'srcpkgs/**' - "srcpkgs/**"
push: push:
branches: branches:
- 'ci-**' - "dev-**"
paths: paths:
- 'srcpkgs/**' - "srcpkgs/**"
- ".forgejo/**"
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
@ -21,9 +22,9 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: 'ghcr.io/void-linux/void-buildroot-musl:20231230R1' image: "ghcr.io/void-linux/void-buildroot-musl:20231230R1"
env: env:
PATH: '/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/tmp/bin' PATH: "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/tmp/bin"
LICENSE_LIST: common/travis/license.lst LICENSE_LIST: common/travis/license.lst
steps: steps:
@ -39,13 +40,13 @@ jobs:
# install tools needed for lints # install tools needed for lints
xbps-install -y grep curl git xbps-install -y grep curl git
- name: Clone and checkout - name: Clone and checkout
uses: classabbyamp/treeless-checkout-action@v1 uses: https://github.com/classabbyamp/treeless-checkout-action@v1
- name: Create hostrepo and prepare masterdir - name: Create hostrepo and prepare masterdir
run: | run: |
ln -s "$(pwd)" /hostrepo && ln -s "$(pwd)" /hostrepo &&
common/travis/set_mirror.sh && common/travis/set_mirror.sh &&
common/travis/prepare.sh && common/travis/prepare.sh &&
common/travis/fetch-xtools.sh common/travis/fetch-xtools.sh
- run: common/travis/changed_templates.sh - run: common/travis/changed_templates.sh
- name: Run lints - name: Run lints
run: | run: |
@ -62,25 +63,59 @@ 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
options: --platform ${{ matrix.config.platform }} # options: --platform ${{ matrix.config.platform }}
env: env:
PATH: '/usr/libexec/chroot-git:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/tmp/bin' PATH: "/usr/libexec/chroot-git:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/tmp/bin"
ARCH: '${{ matrix.config.arch }}' ARCH: "${{ matrix.config.arch }}"
BOOTSTRAP: '${{ matrix.config.host }}' BOOTSTRAP: "${{ matrix.config.host }}"
TEST: '${{ matrix.config.test }}' TEST: "${{ matrix.config.test }}"
HOSTREPO: /hostrepo HOSTREPO: /hostrepo
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
config: config:
- { arch: x86_64, host: x86_64, libc: glibc, platform: linux/amd64, test: 1 } - arch: x86_64
- { arch: i686, host: i686, libc: glibc, platform: linux/386, test: 1 } host: x86_64
- { arch: aarch64, host: x86_64, libc: glibc, platform: linux/amd64, test: 0 } libc: glibc
- { arch: armv7l, host: x86_64, libc: glibc, platform: linux/amd64, test: 0 } platform: linux/amd64
- { arch: x86_64-musl, host: x86_64-musl, libc: musl, platform: linux/amd64, test: 1 } test: 1
- { arch: armv6l-musl, host: x86_64-musl, libc: musl, platform: linux/amd64, test: 0 }
- { arch: aarch64-musl, host: x86_64-musl, libc: musl, platform: linux/amd64, test: 0 } - arch: i686
host: i686
libc: glibc
platform: linux/386
test: 1
- arch: aarch64
host: x86_64
libc: glibc
platform: linux/amd64
test: 0
- arch: armv7l
host: x86_64
libc: glibc
platform: linux/amd64
test: 0
- arch: x86_64-musl
host: x86_64-musl
libc: musl
platform: linux/amd64
test: 1
- arch: armv6l-musl
host: x86_64-musl
libc: musl
platform: linux/amd64
test: 0
- arch: aarch64-musl
host: x86_64-musl
libc: musl
platform: linux/amd64
test: 0
steps: steps:
- name: Prepare container - name: Prepare container
@ -94,37 +129,36 @@ jobs:
xbps-install -yu xbps-install -yu
- name: Clone and checkout - name: Clone and checkout
uses: classabbyamp/treeless-checkout-action@v1 uses: https://github.com/classabbyamp/treeless-checkout-action@v1
- name: Create hostrepo and prepare masterdir - name: Create hostrepo and prepare masterdir
run: | run: |
ln -s "$(pwd)" /hostrepo && ln -s "$(pwd)" /hostrepo &&
common/travis/set_mirror.sh && common/travis/set_mirror.sh &&
common/travis/prepare.sh && common/travis/prepare.sh &&
common/travis/fetch-xtools.sh common/travis/fetch-xtools.sh
- run: common/travis/changed_templates.sh - run: common/travis/changed_templates.sh
- name: Build and check packages - name: Build and check packages
run: | run: |
( (
here="$(pwd)" here="$(pwd)"
cd / cd /
"$here/common/travis/build.sh" "$BOOTSTRAP" "$ARCH" "$TEST" "$here/common/travis/build.sh" "$BOOTSTRAP" "$ARCH" "$TEST"
) )
- name: Show files - name: Show files
run: | run: |
( (
here="$(pwd)" here="$(pwd)"
cd / cd /
"$here/common/travis/show_files.sh" "$BOOTSTRAP" "$ARCH" "$here/common/travis/show_files.sh" "$BOOTSTRAP" "$ARCH"
) )
- name: Compare to previous - name: Compare to previous
run: | run: |
( (
here="$(pwd)" here="$(pwd)"
cd / cd /
"$here/common/travis/xpkgdiff.sh" "$BOOTSTRAP" "$ARCH" "$here/common/travis/xpkgdiff.sh" "$BOOTSTRAP" "$ARCH"
) )
- name: Check file conflicts - name: Check file conflicts
@ -138,7 +172,7 @@ jobs:
- name: Verify repository state - name: Verify repository state
run: | run: |
( (
here="$(pwd)" here="$(pwd)"
cd / cd /
"$here/common/travis/check-install.sh" "$BOOTSTRAP" "$ARCH" "$here/common/travis/check-install.sh" "$BOOTSTRAP" "$ARCH"
) )

View File

@ -1,73 +0,0 @@
name: Bug Report
description: File a bug report
labels: ["bug", "needs-testing"]
body:
- type: markdown
attributes:
value: >
#### Don't request an update of a package,
[We have a script for that](https://repo-default.voidlinux.org/void-updates/void-updates.txt).
However, a quality pull request may help.
- id: verified
type: dropdown
attributes:
label: Is this a new report?
description: I verified that there isn't already an open issue for this bug
options:
- "Yes"
- "No"
validations:
required: true
- id: xuname
type: input
attributes:
label: System Info
description: Output of `xuname` (part of [`xtools`](https://man.voidlinux.org/xtools.1))
placeholder: Void 5.x.y_z x86_64-musl ...
validations:
required: true
- id: packages
type: input
attributes:
label: Package(s) Affected
description: Affected package(s) including version (this can be found with `xbps-query -p pkgver foo`)
placeholder: foo-1.0.2_5, bar-5.6.7_1, baz-0.0.3_5, ...
validations:
required: true
- id: upstream
type: textarea
attributes:
label: Does a report exist for this bug with the project's home (upstream) and/or another distro?
description: If so, link it here (It's fine if there's none)
placeholder: |
For example:
https://bugs.kde.org/show_bug.cgi?id=432975
https://bugs.gentoo.org/767478
- id: expected
type: textarea
attributes:
label: Expected behaviour
description: A clear and concise description of what you expected to happen
placeholder: The package is supposed to do this thing.
validations:
required: true
- id: description
type: textarea
attributes:
label: Actual behaviour
description: A clear and concise description of what the bug is
placeholder: There was a crash when...
validations:
required: true
- id: steps
type: textarea
attributes:
label: Steps to reproduce
description: Clear steps to reproduce the bug
placeholder: |
1. Do the thing
2. Do the other thing
3. ???
4. Crash :(
validations:
required: true

View File

@ -1,5 +0,0 @@
blank_issues_enabled: true
contact_links:
- name: Other kind of issue
url: https://github.com/void-linux/void-packages/issues/new
about: For RFCs, tracking issues, etc (freeform text)

View File

@ -1,59 +0,0 @@
name: Package Request
title: "Package request: "
description: Request the addition of a package
labels: ["request"]
body:
- type: markdown
attributes:
value: >
#### Don't request an update of a package,
[We have a script for that](https://repo-default.voidlinux.org/void-updates/void-updates.txt).
However, a quality pull request may help.
- id: name
type: input
attributes:
label: Package name
placeholder: foobar9k
validations:
required: true
- id: homepage
type: input
attributes:
label: Package homepage
placeholder: https://example.com/foobar9k
validations:
required: true
- id: description
type: textarea
attributes:
label: Description
description: What does the package do?
placeholder: >
Foobar9k is a music player that turns your music up to 11.
It provides features X, Y, and Z, which other music players in Void don't.
validations:
required: true
- id: quality
type: dropdown
attributes:
label: Does the requested package meet the package requirements?
description: |
See [CONTRIBUTING.md](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements) for details
multiple: true
options:
- System
- Compiled
- Required
validations:
required: true
- id: released
type: dropdown
attributes:
label: Is the requested package released?
description: |
See [CONTRIBUTING.md](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements) for details
options:
- "Yes"
- "No"
validations:
required: true

View File

@ -1,8 +0,0 @@
<!--
if you are creating a bug report or package request, please fill out one of the forms here:
https://github.com/void-linux/void-packages/issues/new/choose
Don't request an update of a package, We have a script for that:
https://repo-default.voidlinux.org/void-updates/void-updates.txt
However, a quality pull request may help.
-->

View File

@ -1,23 +0,0 @@
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->

View File

@ -1,98 +0,0 @@
---
name: 'Build buildroot containers'
on:
workflow_dispatch:
pull_request:
branches:
- master
paths:
- common/container/**
push:
branches:
- master
paths:
- common/container/**
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
matrix:
libc:
- glibc
- musl
steps:
- name: Checkout
uses: classabbyamp/treeless-checkout-action@v1
- name: Get image release
id: release
run: |
# gets the list of all date-shaped tags for the image, finds the most recent one
tag="$(skopeo list-tags "docker://ghcr.io/${{ github.repository_owner }}/void-buildroot-${{ matrix.libc }}" | \
jq -r '.Tags | sort | reverse | map(select(test("^[0-9]{8}(R[0-9]+)?$")))[0]')"
# tags from a different day or pre-YYYYMMDDRN
if [ "${tag%R*}" != "$(date -u +%Y%m%d)" ] || [ "${tag%R*}" = "${tag}" ]; then
rel=1
else
rel=$(( ${tag##*R} + 1 ))
fi
echo "rel=${rel}" >> "${GITHUB_OUTPUT}"
- name: Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/${{ github.repository_owner }}/void-buildroot-${{ matrix.libc }}
tags: |
type=sha,prefix=
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value={{date 'YYYYMMDD'}}R${{ steps.release.outputs.rel }},enable={{is_default_branch}},priority=1000
flavor: latest=false
labels: |
org.opencontainers.image.authors=Void Linux team and contributors
org.opencontainers.image.url=https://voidlinux.org
org.opencontainers.image.documentation=https://github.com/${{ github.repository }}
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.vendor=Void Linux
org.opencontainers.image.title=Void Linux build root
org.opencontainers.image.description=Image for building packages with xbps-src on Void Linux
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GCHR
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push images
id: build_and_push
uses: docker/bake-action@v3
with:
push: ${{ github.event_name != 'pull_request' }}
targets: void-buildroot-${{ matrix.libc }}
files: |
common/container/docker-bake.hcl
${{ steps.meta.outputs.bake-file }}
set: |
_common.cache-to=type=gha
_common.cache-from=type=gha

View File

@ -1,48 +0,0 @@
name: 'Cycle Check'
on:
schedule:
- cron: '0 18 * * *'
jobs:
cycles:
runs-on: ubuntu-latest
permissions:
issues: write
container:
image: 'ghcr.io/void-linux/void-buildroot-musl:20231230R1'
env:
PATH: '/usr/libexec/chroot-git:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/tmp/bin'
steps:
- name: Prepare container
run: |
# switch to repo-ci mirror
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
# Sync and upgrade once, assume error comes from xbps update
xbps-install -Syu || xbps-install -yu xbps
# Upgrade again (in case there was a xbps update)
xbps-install -yu
# Install script dependencies
xbps-install -y python3-networkx github-cli
- name: Clone and checkout
uses: classabbyamp/treeless-checkout-action@v1
- name: Create hostrepo and prepare masterdir
run: |
ln -s "$(pwd)" /hostrepo &&
common/travis/set_mirror.sh &&
common/travis/prepare.sh
- name: Find cycles and open issues
run: |
common/scripts/xbps-cycles.py | tee cycles
grep 'Cycle:' cycles | while read -r line; do
if gh issue list -R "$GITHUB_REPOSITORY" -S "$line" | grep .; then
printf "Issue on '%s' already exists.\n" "$line"
else
gh issue create -R "$GITHUB_REPOSITORY" -b '' -t "$line"
fi
done
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN }}

View File

@ -1,25 +0,0 @@
---
name: Stale Cleanup
on:
workflow_dispatch:
schedule:
- cron: '30 1 * * *'
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v6
with:
stale-issue-message: 'Issues become stale 90 days after last activity and are closed 14 days after that. If this issue is still relevant bump it or assign it.'
stale-pr-message: 'Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.'
days-before-stale: 90
days-before-close: 14
exempt-all-assignees: true
ascending: true
operations-per-run: 250
exempt-issue-labels: 'request,bug,tracking'

4
.gitignore vendored
View File

@ -7,7 +7,7 @@
/* /*
!/.editorconfig !/.editorconfig
!/.gitattributes !/.gitattributes
!/.github !/.forgejo
!/.gitignore !/.gitignore
!/.mailmap !/.mailmap
!/CONTRIBUTING.md !/CONTRIBUTING.md
@ -17,6 +17,8 @@
!/common !/common
!/etc !/etc
!/srcpkgs !/srcpkgs
!/srcpkgsBACKUP
!/srcpkgsCUSTOM
!/xbps-src !/xbps-src
etc/conf etc/conf
etc/conf.* etc/conf.*

View File

@ -0,0 +1,224 @@
[Desktop Entry]
Version=1.0
Name=Brave
# Only KDE 4 seems to use GenericName, so we reuse the KDE strings.
# From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413.
GenericName=Web Browser
GenericName[ar]=متصفح الشبكة
GenericName[bg]=Уеб браузър
GenericName[ca]=Navegador web
GenericName[cs]=WWW prohlížeč
GenericName[da]=Browser
GenericName[de]=Web-Browser
GenericName[el]=Περιηγητής ιστού
GenericName[en_GB]=Web Browser
GenericName[es]=Navegador web
GenericName[et]=Veebibrauser
GenericName[fi]=WWW-selain
GenericName[fr]=Navigateur Web
GenericName[gu]=
GenericName[he]=דפדפן אינטרנט
GenericName[hi]=
GenericName[hu]=Webböngésző
GenericName[it]=Browser Web
GenericName[ja]=
GenericName[kn]=
GenericName[ko]=
GenericName[lt]=Žiniatinklio naršyklė
GenericName[lv]=Tīmekļa pārlūks
GenericName[ml]=
GenericName[mr]=
GenericName[nb]=Nettleser
GenericName[nl]=Webbrowser
GenericName[pl]=Przeglądarka WWW
GenericName[pt]=Navegador Web
GenericName[pt_BR]=Navegador da Internet
GenericName[ro]=Navigator de Internet
GenericName[ru]=Веб-браузер
GenericName[sl]=Spletni brskalnik
GenericName[sv]=Webbläsare
GenericName[ta]= ி
GenericName[th]=
GenericName[tr]=Web Tarayıcı
GenericName[uk]=Навігатор Тенет
GenericName[zh_CN]=
GenericName[zh_HK]=
GenericName[zh_TW]=
# Not translated in KDE, from Epiphany 2.26.1-0ubuntu1.
GenericName[bn]=
GenericName[fil]=Web Browser
GenericName[hr]=Web preglednik
GenericName[id]=Browser Web
GenericName[or]=
GenericName[sk]=WWW prehliadač
GenericName[sr]=Интернет прегледник
GenericName[te]= ి
GenericName[vi]=B duyt Web
# Gnome and KDE 3 uses Comment.
Comment=Access the Internet
Comment[ar]=الدخول إلى الإنترنت
Comment[bg]=Достъп до интернет
Comment[bn]=ি
Comment[ca]=Accedeix a Internet
Comment[cs]=Přístup k internetu
Comment[da]=Få adgang til internettet
Comment[de]=Internetzugriff
Comment[el]=Πρόσβαση στο Διαδίκτυο
Comment[en_GB]=Access the Internet
Comment[es]=Accede a Internet.
Comment[et]=Pääs Internetti
Comment[fi]=Käytä internetiä
Comment[fil]=I-access ang Internet
Comment[fr]=Accéder à Internet
Comment[gu]=
Comment[he]=גישה אל האינטרנט
Comment[hi]= ि
Comment[hr]=Pristup Internetu
Comment[hu]=Internetelérés
Comment[id]=Akses Internet
Comment[it]=Accesso a Internet
Comment[ja]=
Comment[kn]= ಿಿ
Comment[ko]=
Comment[lt]=Interneto prieiga
Comment[lv]=Piekļūt internetam
Comment[ml]=
Comment[mr]=
Comment[nb]=Gå til Internett
Comment[nl]=Verbinding maken met internet
Comment[or]=
Comment[pl]=Skorzystaj z internetu
Comment[pt]=Aceder à Internet
Comment[pt_BR]=Acessar a internet
Comment[ro]=Accesaţi Internetul
Comment[ru]=Доступ в Интернет
Comment[sk]=Prístup do siete Internet
Comment[sl]=Dostop do interneta
Comment[sr]=Приступите Интернету
Comment[sv]=Gå ut på Internet
Comment[ta]=
Comment[te]= ి
Comment[th]=
Comment[tr]=İnternet'e erişin
Comment[uk]=Доступ до Інтернету
Comment[vi]=Truy cp Internet
Comment[zh_CN]=访
Comment[zh_HK]=
Comment[zh_TW]=
StartupNotify=true
StartupWMClass=brave-browser
TryExec=brave
Exec=brave %U
Terminal=false
Icon=brave-desktop
Type=Application
Categories=Network;WebBrowser;
MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ipfs;x-scheme-handler/ipns;
Actions=new-window;new-private-window;
[Desktop Action new-window]
Name=New Window
Name[am]=
Name[ar]=نافذة جديدة
Name[bg]=Нов прозорец
Name[bn]=
Name[ca]=Finestra nova
Name[cs]=Nové okno
Name[da]=Nyt vindue
Name[de]=Neues Fenster
Name[el]=Νέο Παράθυρο
Name[en_GB]=New Window
Name[es]=Nueva ventana
Name[et]=Uus aken
Name[fa]=پنجره جدید
Name[fi]=Uusi ikkuna
Name[fil]=New Window
Name[fr]=Nouvelle fenêtre
Name[gu]= િ
Name[hi]= ि
Name[hr]=Novi prozor
Name[hu]=Új ablak
Name[id]=Jendela Baru
Name[it]=Nuova finestra
Name[iw]=חלון חדש
Name[ja]=
Name[kn]= ಿ
Name[ko]=
Name[lt]=Naujas langas
Name[lv]=Jauns logs
Name[ml]=ി ി
Name[mr]= ि
Name[nl]=Nieuw venster
Name[no]=Nytt vindu
Name[pl]=Nowe okno
Name[pt]=Nova janela
Name[pt_BR]=Nova janela
Name[ro]=Fereastră nouă
Name[ru]=Новое окно
Name[sk]=Nové okno
Name[sl]=Novo okno
Name[sr]=Нови прозор
Name[sv]=Nytt fönster
Name[sw]=Dirisha Jipya
Name[ta]=ி
Name[te]= ి
Name[th]=
Name[tr]=Yeni Pencere
Name[uk]=Нове вікно
Name[vi]=Ca s Mi
Name[zh_CN]=
Name[zh_TW]=
Exec=brave
[Desktop Action new-private-window]
Name=New Incognito Window
Name[ar]=نافذة جديدة للتصفح المتخفي
Name[bg]=Нов прозорец инкогнито
Name[bn]=
Name[ca]=Finestra d'incògnit nova
Name[cs]=Nové anonymní okno
Name[da]=Nyt inkognitovindue
Name[de]=Neues Inkognito-Fenster
Name[el]=Νέο παράθυρο για ανώνυμη περιήγηση
Name[en_GB]=New Incognito window
Name[es]=Nueva ventana de incógnito
Name[et]=Uus inkognito aken
Name[fa]=پنجره جدید حالت ناشناس
Name[fi]=Uusi incognito-ikkuna
Name[fil]=Bagong Incognito window
Name[fr]=Nouvelle fenêtre de navigation privée
Name[gu]= િ
Name[hi]= ि
Name[hr]=Novi anoniman prozor
Name[hu]=Új Inkognitóablak
Name[id]=Jendela Penyamaran baru
Name[it]=Nuova finestra di navigazione in incognito
Name[iw]=חלון חדש לגלישה בסתר
Name[ja]=
Name[kn]= ಿ
Name[ko]= 릿
Name[lt]=Naujas inkognito langas
Name[lv]=Jauns inkognito režīma logs
Name[ml]=ി ി
Name[mr]= ि
Name[nl]=Nieuw incognitovenster
Name[no]=Nytt inkognitovindu
Name[pl]=Nowe okno incognito
Name[pt]=Nova janela de navegação anónima
Name[pt_BR]=Nova janela anônima
Name[ro]=Fereastră nouă incognito
Name[ru]=Новое окно в режиме инкогнито
Name[sk]=Nové okno inkognito
Name[sl]=Novo okno brez beleženja zgodovine
Name[sr]=Нови прозор за прегледање без архивирања
Name[sv]=Nytt inkognitofönster
Name[ta]=ி ி
Name[te]= ి
Name[th]=
Name[tr]=Yeni Gizli pencere
Name[uk]=Нове вікно в режимі анонімного перегляду
Name[vi]=Ca s n danh mi
Name[zh_CN]=
Name[zh_TW]=
Exec=brave --incognito
MimeType=x-scheme-handler/unknown;x-scheme-handler/about;text/html;text/xml;application/xhtml_xml;image/webp;x-scheme-handler/http;x-scheme-handler/https;

View File

@ -0,0 +1,39 @@
# Template file for 'brave-bin'
pkgname=brave-bin
version=1.65.132
revision=1
archs="x86_64"
depends="alsa-lib gtk+3 libXScrnSaver nss dejavu-fonts-ttf"
provides="brave-browser"
short_desc="Web browser that blocks ads and trackers by default (binary release)"
maintainer="Luca Bilke <bilke@tralios.de>"
license="MPL-2.0"
homepage="https://brave.com"
changelog="https://raw.githubusercontent.com/brave/brave-browser/master/CHANGELOG_DESKTOP.md"
distfiles="https://github.com/brave/brave-browser/releases/download/v${version}/brave-browser-${version}-linux-amd64.zip"
pre_fetch() {
$fetch_cmd ${distfiles}.sha256
checksum=$(cat brave-browser-${version}-linux-amd64.zip.sha256 | cut -d' ' -f1)
rm brave-browser-${version}-linux-amd64.zip.sha256
}
do_install() {
vlicense LICENSE
vmkdir "usr/share/applications/"
vcopy "${FILESDIR}/brave-browser.desktop" "usr/share/applications/"
for size in 16 24 32 48 64 128 256; do
vmkdir "usr/share/icons/hicolor/${size}x${size}/apps/"
vcopy "product_logo_${size}.png" "usr/share/icons/hicolor/${size}x${size}/apps/brave-desktop.png"
done
vmkdir "opt/brave/"
vcopy * "opt/brave/"
chmod 4755 "${DESTDIR}/opt/brave/chrome-sandbox"
vmkdir "usr/bin/"
ln -s "/opt/brave/brave-browser" "${DESTDIR}/usr/bin/"
}

View File

@ -0,0 +1,12 @@
[Desktop Entry]
Name=Ferdium
GenericName=Ferdium
Icon=ferdium
Comment=A browser that allows you to combine your favorite messaging services into one application
Exec=ferdium %u
StartupNotify=true
Terminal=false
Type=Application
Categories=Network;InstantMessaging;Chat;WebBrowser;
StartupWMClass=ferdium
MimeType=x-scheme-handler/ferdium;

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -0,0 +1,46 @@
# Template file for 'ferdium-bin'
pkgname=ferdium-bin
version=6.7.3
revision=1
archs="x86_64"
homepage="https://ferdium.org/"
license="Apache-2.0"
depends="gtk+3 libXScrnSaver nss"
short_desc="A browser that allows you to combine your favorite messaging services into one application"
maintainer="luca <luca@snaile.de>"
distfiles="https://github.com/ferdium/ferdium-app/releases/download/v${version}/Ferdium-linux-${version}.tar.gz"
pre_fetch() {
if ! cd "$XBPS_SRCDISTDIR"; then
msg_error "$pkgver: cannot change dir to $XBPS_BUILDDIR!\n"
exit 1
fi
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}"
}
do_install() {
vmkdir "usr/share/pixmaps/"
vcopy "${FILESDIR}/ferdium.png" "usr/share/pixmaps/"
vmkdir "usr/share/applications/"
vcopy "${FILESDIR}/ferdium.desktop" "usr/share/applications/"
vmkdir "opt/ferdium/"
vcopy * "opt/ferdium/"
vmkdir "usr/bin/"
ln -s "/opt/ferdium/ferdium" "${DESTDIR}/usr/bin/"
vlicense LICENSE.electron.txt
vlicense LICENSES.chromium.html
}

View File

@ -0,0 +1,35 @@
# Template file for 'font-firacode-nf-ttf'
pkgname=font-firacode-nf-ttf
version=3.2.1
revision=2
homepage="https://nerdfonts.com/"
license="MIT"
depends="font-util"
short_desc="NerdFont patched Fira Code font"
maintainer="luca <luca@snaile.de>"
distfiles="https://github.com/ryanoasis/nerd-fonts/releases/download/v${version}/FiraCode.tar.xz"
conflicts="nerd-fonts-ttf"
font_dirs="/usr/share/fonts/NerdFonts/ttf"
pre_fetch() {
if ! cd "$XBPS_SRCDISTDIR"; then
msg_error "$pkgver: cannot change dir to $XBPS_BUILDDIR!\n"
exit 1
fi
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}"
}
do_install() {
vmkdir usr/share/fonts/NerdFonts/ttf/symbols
vcopy "*.ttf" usr/share/fonts/NerdFonts/ttf/symbols
}

View File

@ -0,0 +1,13 @@
[Desktop Entry]
Name=TIDAL Hi-Fi
GenericName=TIDAL Hi-Fi
Icon=tidal-hifi
Comment=The web version of listen.tidal.com running in electron with hifi support thanks to widevine.
Exec=tidal-hifi %u
StartupNotify=true
Terminal=false
Type=Application
Categories=Network;AudioVideo;Audio;Video
StartupWMClass=tidal-hifi
X-PulseAudio-Properties=media.role=music
MimeType=x-scheme-handler/tidal;

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

View File

@ -0,0 +1,46 @@
# Template file for 'tidal-hifi-bin'
pkgname=tidal-hifi-bin
version=5.11.0
revision=1
archs="x86_64"
homepage="https://github.com/Mastermindzh/tidal-hifi"
license="MIT"
depends="gtk+3 libXScrnSaver nss"
short_desc="The web version of listen.tidal.com running in electron with hifi support thanks to widevine."
maintainer="luca <luca@snaile.de>"
distfiles="https://github.com/Mastermindzh/tidal-hifi/releases/download/${version}/tidal-hifi-${version}.tar.gz"
pre_fetch() {
if ! cd "$XBPS_SRCDISTDIR"; then
msg_error "$pkgver: cannot change dir to $XBPS_BUILDDIR!\n"
exit 1
fi
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}"
}
do_install() {
vmkdir "usr/share/pixmaps/"
vcopy "${FILESDIR}/tidal-hifi.png" "usr/share/pixmaps/"
vmkdir "usr/share/applications/"
vcopy "${FILESDIR}/tidal-hifi.desktop" "usr/share/applications/"
vmkdir "opt/tidal-hifi/"
vcopy * "opt/tidal-hifi/"
vmkdir "usr/bin/"
ln -s "/opt/tidal-hifi/tidal-hifi" "${DESTDIR}/usr/bin/"
vlicense LICENSE.electron.txt
vlicense LICENSES.chromium.html
}

39
srcpkgsBACKUP/zk/template Normal file
View File

@ -0,0 +1,39 @@
# Template file for 'zk'
pkgname=zk
version=0.14.0
revision=2
homepage="https://github.com/zk-org/zk/"
license="GPL-3.0"
short_desc="A plain text note-taking assistant"
maintainer="luca <luca@snaile.de>"
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"
go_import_path=github.com/mickael-menu/zk
go_build_tags=fts5
build_style=go
pre_fetch() {
if ! cd "$XBPS_SRCDISTDIR"; then
msg_error "$pkgver: cannot change dir to $XBPS_BUILDDIR!\n"
exit 1
fi
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}"
}
do_check() {
go test -v
}
post_install() {
vlicense LICENSE
}