summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 373868d0a7584067a70d4816b300c2ce5e259d29 (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
# Maintainer: Ivan Fedorov <i@ifedorov.me>

pkgname=rupost-desktop
pkgver=117.0.131
pkgrel=1
pkgdesc="RuPost Desktop - почтовый клиент, созданный на базе нового поколения Thunderbird (Supernova) компанией ООО 'РуПост'"
arch=("x86_64")
url="http://www.rupost.ru/desktop"
license=('custom')
depends=('dbus-glib' 'gtk3' 'libxt' 'nss' 'hunspell')
optdepends=('hyphen: Hyphenation'
            'libcanberra: Sound support')
provides=("$pkgname")
install=
source=(
    "https://www.rupost.ru/desktop/download/linux/${pkgname}-${pkgver}.ru.linux-x86_64.deb"
)
sha256sums=("505feb9dfe5557966b7c3fc0c4ae872255bc278f28722d42f4430df87c29ae4f")

package() {
    tar -xC "$pkgdir" -f data.tar.xz
    # Move license to correct directory
    mkdir -p "$pkgdir"/usr/share/licenses
    mv "$pkgdir"/usr/share/doc/"$pkgname" "$pkgdir"/usr/share/licenses/"$pkname"
    rm -r "$pkgdir"/usr/share/doc
    # Fix dock icon.
    sed -i -e 's/RemotingName=rupost-desktop-default/RemotingName=rupost-desktop/' "$pkgdir"/usr/lib/rupost-desktop/application.ini
    sed -i -e \
        's/$MOZ_LIBDIR\/$MOZ_APP_NAME "$@"/$MOZ_LIBDIR\/$MOZ_APP_NAME -app \/usr\/lib\/rupost-desktop\/application.ini "$@"/' \
        "$pkgdir"/usr/bin/rupost-desktop
    sed -i -e \
        's/$MOZ_LIBDIR\/$EXE "$@"/$MOZ_LIBDIR\/$EXE -app \/usr\/lib\/rupost-desktop\/application.ini "$@"/' \
        "$pkgdir"/usr/bin/rupost-desktop
}