blob: 3734d942cf9a92c258681ab41a8387d7c0db1fdc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: "Amhairghin" Oscar Garcia Amor (https://ogarcia.me)
# Contributor: Utsob Roy <uroybd(at)gmail(dot)com>
pkgname=franz-bin
pkgver=5.10.0
pkgrel=1
pkgdesc='Franz is a free messaging app for services like WhatsApp, Slack, Messenger and many more'
arch=('x86_64')
url='https://meetfranz.com'
license=('Apache')
depends=('gtk3' 'libxss' 'nss')
optdepends=('org.freedesktop.secrets: Keyring password store support')
conflicts=('franz')
options=('!strip' '!emptydirs')
source=("https://github.com/meetfranz/franz/releases/download/v${pkgver//_/-}/franz_${pkgver//_/-}_amd64.deb"
"${pkgname}.patch")
b2sums=('4af35dd41c14845be359029fecb23f2bb5d19164f7eb5a3ddf8e71a0eaaea2dcb5f254f82026496a7ec5e34b38b68b60c6bac5f7d4fca9aa923b27b9b5e38bba'
'4858e42f18b33ae58da2871bf7ba654ebd49c98ebfe13631355b8b0534ae8cd5558f5f7903fbe51791cc069ed3cccdb9519561dce38d2ed98090d00c703cfb3a')
package() {
# Extract package data
bsdtar -xJf data.tar.xz
# Install package data
mv "usr" "${pkgdir}"
install -dm755 "${pkgdir}/usr/bin" "${pkgdir}/usr/lib"
mv "opt/Franz" "${pkgdir}/usr/lib/franz"
ln -s "../lib/franz/franz" "${pkgdir}/usr/bin/franz"
# Permission fix
chmod 644 "${pkgdir}/usr/lib/franz/"*.so
# Fix binary path in .desktop file
patch -d "${pkgdir}" -p1 <"${pkgname}".patch
# Link licenses
install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
ln -s "/usr/lib/franz/LICENSE.electron.txt" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.electron.txt"
ln -s "/usr/lib/franz/LICENSES.chromium.html" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSES.chromium.html"
}
|