This commit is contained in:
Ryan Hughes
2026-05-08 01:04:51 -04:00
parent 6928ced994
commit dc0b77ddc9
58 changed files with 174 additions and 0 deletions
@@ -0,0 +1,4 @@
{
"source": "aur",
"release_ring": "fast"
}
@@ -0,0 +1,4 @@
{
"source": "aur",
"release_ring": "fast"
}
@@ -0,0 +1,3 @@
{
"source": "local"
}
@@ -0,0 +1,3 @@
{
"source": "local"
}
@@ -13,3 +13,5 @@ starter/
# Makepkg files # Makepkg files
*.log *.log
*.sig *.sig
!.omarchy/
!.omarchy/**
@@ -0,0 +1,3 @@
{
"source": "local"
}
@@ -0,0 +1,3 @@
{
"source": "local"
}
+3
View File
@@ -0,0 +1,3 @@
{
"source": "aur"
}
+3
View File
@@ -0,0 +1,3 @@
{
"source": "aur"
}
@@ -0,0 +1,4 @@
{
"source": "aur",
"release_ring": "fast"
}
+3
View File
@@ -0,0 +1,3 @@
{
"source": "aur"
}
@@ -0,0 +1,3 @@
{
"source": "aur"
}
@@ -0,0 +1,3 @@
# Format: pkgver=pkgrel
# Applied after AUR sync when pkgver matches. Auto-removed when stale.
0.14.2=2
+3
View File
@@ -0,0 +1,3 @@
{
"source": "aur"
}
@@ -0,0 +1,3 @@
{
"source": "aur"
}
@@ -0,0 +1,4 @@
{
"source": "aur",
"sync": false
}
@@ -0,0 +1,53 @@
diff --git a/PKGBUILD b/PKGBUILD
index 98e2b17..c61fa48 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@ pkgver=7.77.1
pkgrel=1
pkgdesc="Signal Private Messenger for Linux"
license=('AGPL-3.0-only')
-arch=('x86_64')
+arch=('aarch64') # Only for aarch64 - already in Arch extra repo for x86_64
url="https://signal.org"
depends=(
'alsa-lib' 'libasound.so'
@@ -67,6 +67,19 @@ prepare() {
# Allow higher Node versions
sed 's#"node": "#&>=#' -i package.json
+ # Disable .deb packaging to avoid fpm architecture mismatch in cross-compilation
+ # electron-builder will still create the unpacked directory we need for packaging
+ # Use node to properly modify the JSON structure
+ node -e "
+ const fs = require('fs');
+ const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'));
+ if (pkg.build && pkg.build.linux && pkg.build.linux.target) {
+ pkg.build.linux.target = ['dir'];
+ fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2) + '\n');
+ console.log('Modified package.json to use dir target only');
+ }
+ "
+
# Install dependencies for sticker-creator
pnpm --prefix ./sticker-creator/ install
@@ -87,8 +100,18 @@ build() {
package() {
cd "${_pkgname}-${pkgver}"
+ # Determine the architecture-specific directory
+ case "${CARCH}" in
+ x86_64)
+ _releasedir="release/linux-unpacked"
+ ;;
+ aarch64)
+ _releasedir="release/linux-arm64-unpacked"
+ ;;
+ esac
+
install -d "${pkgdir}/usr/"{lib,bin}
- cp -a release/linux-unpacked "${pkgdir}/usr/lib/${pkgname}"
+ cp -a "${_releasedir}" "${pkgdir}/usr/lib/${pkgname}"
ln -s "/usr/lib/${pkgname}/${pkgname}" "${pkgdir}/usr/bin/"
chmod u+s "${pkgdir}/usr/lib/signal-desktop/chrome-sandbox"
+4
View File
@@ -0,0 +1,4 @@
{
"source": "aur",
"release_ring": "fast"
}
@@ -0,0 +1,4 @@
{
"source": "aur",
"release_ring": "fast"
}
@@ -0,0 +1,4 @@
{
"source": "aur",
"sync": false
}
@@ -0,0 +1,4 @@
{
"source": "aur",
"release_ring": "fast"
}
+3
View File
@@ -0,0 +1,3 @@
{
"source": "local"
}
@@ -0,0 +1,3 @@
{
"source": "aur"
}
@@ -0,0 +1,3 @@
{
"source": "aur"
}
+3
View File
@@ -0,0 +1,3 @@
{
"source": "aur"
}
+3
View File
@@ -0,0 +1,3 @@
{
"source": "aur"
}
@@ -0,0 +1,3 @@
{
"source": "aur"
}
@@ -0,0 +1,3 @@
{
"source": "aur"
}
@@ -0,0 +1,3 @@
{
"source": "aur"
}
@@ -0,0 +1,4 @@
{
"source": "aur",
"release_ring": "fast"
}
@@ -0,0 +1,4 @@
{
"source": "aur",
"release_ring": "fast"
}
@@ -0,0 +1,3 @@
{
"source": "local"
}
@@ -0,0 +1,3 @@
{
"source": "aur"
}
@@ -0,0 +1,3 @@
{
"source": "aur"
}
@@ -0,0 +1,4 @@
{
"source": "aur",
"aur": "yaru"
}
+3
View File
@@ -0,0 +1,3 @@
{
"source": "aur"
}
+3
View File
@@ -0,0 +1,3 @@
# Format: pkgver=pkgrel
# Applied after AUR sync when pkgver matches. Auto-removed when stale.
12.5.7=2
@@ -0,0 +1,3 @@
{
"source": "aur"
}