# Maintainer: Cedric Roijakkers . # Inspired from the PKGBUILD for ferdi-bin. _pkgname='ferdium' pkgname="$_pkgname-bin" _electron='electron27' _electronpackage='electron27' pkgverorg='6.7.0' pkgver='6.7.0' pkgrel='2' pkgdesc='A messaging browser that allows you to combine your favorite messaging services into one application (binary release).' arch=('x86_64' 'armv7l' 'aarch64') url="https://$_pkgname.org" license=('Apache') depends=('nss' 'atk' 'at-spi2-atk' 'libcups' 'libdrm' 'gdk-pixbuf2' 'gtk3' 'alsa-lib' 'c-ares' 'ffmpeg' 'libevent' 'libxkbfile' 'libxslt' 'minizip' 're2' 'snappy' "$_electronpackage") makedepends=('asar') options=(!strip) provides=( 'ferdium' ) conflicts=( 'ferdium' 'ferdium-nightly-bin' 'ferdium-nightly' 'ferdium-beta-bin' 'ferdium-beta' 'ferdium-git' 'ferdium-electron' ) _releaseurl="https://github.com/$_pkgname/$_pkgname-app/releases/download/v$pkgverorg" source_x86_64=("$pkgname-$pkgverorg-$pkgrel-amd64.zip::${_releaseurl}/Ferdium-linux-${pkgverorg}-amd64.deb") source_armv7l=("$pkgname-$pkgverorg-$pkgrel-armv7l.zip::${_releaseurl}/Ferdium-linux-${pkgverorg}-armv7l.deb") source_aarch64=("$pkgname-$pkgverorg-$pkgrel-arm64.zip::${_releaseurl}/Ferdium-linux-${pkgverorg}-arm64.deb") sha512sums_x86_64=('499d5897d31344ad8b5b5c06b9216788c7a00c7e72e5d2bfe2fa1fd602eca53b2022e1f8637236a2ab58f8a622f0e1333035b5014a5da6b1577552cd7996f590') sha512sums_armv7l=('a6510a0f9ed36ccdea27d2dacc91eb676029ea683d706699d0ff54d8ccec2e4156fc9b06d5f9a8436baa103acea8f54caf253955f8ec7758973c378b9c44e3c9') sha512sums_aarch64=('a57dbc79cecc265d404067fa6f94da2a30d60e28fcfa566fb26f6fd8581c3e35d2a3107a945e59bc95cfc9c89042040980929f187754a92d2c73d2a24448f6fb') _sourcedirectory="$pkgname-$pkgverorg-$pkgrel" prepare() { cd "$srcdir/" mkdir -p "$_sourcedirectory/" bsdtar -xf 'data.tar.xz' -C "$_sourcedirectory/" cd "$srcdir/$_sourcedirectory/" sed -E -i -e "s|Exec=/opt/${_pkgname^}/$_pkgname|Exec=/usr/bin/$_pkgname|" "usr/share/applications/$_pkgname.desktop" } package() { cd "$srcdir/$_sourcedirectory/" # Create a shell script to start Ferdium with Electron install -d -m755 "${pkgdir}/usr/bin/" cat > "$pkgdir/usr/bin/$_pkgname" <