summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3f52c0b77a0231c2f72224bb7af18a089461ee21 (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
# Maintainer: Yigit Dallilar <yigit.dallilar@gmail.com>
# Maintainer: Prasad Kumar
# Contributor: Philip Müller <philm@manjaro.org>

# Taken From here: https://gitlab.manjaro.org/packages/community/microsoft-office-online-jak/blob/master/PKGBUILD

pkgname=('ms-office-online')
pkgver=19.06.2
pkgrel=6
pkgdesc="Microsoft Office Suite Online as a native application"
url="https://www.office.com/"
depends=('jade-application-kit' 'qt5-webengine')
license=('GPL3' 'CC')
arch=('any')
provides=('ms-office-online')
source=("https://gitlab.manjaro.org/applications/ms-office-online-launcher/-/archive/${pkgver}/ms-office-online-launcher-${pkgver}.tar.gz"
        add-mslogin.patch::https://gitlab.manjaro.org/applications/ms-office-online-launcher/commit/afa0d9e64bef5711180fe5072e48536a05ed313d.patch
        sharepoint.patch::https://gitlab.manjaro.org/applications/ms-office-online-launcher/commit/0c3f2a441b1f83daeaaaf51d956daba7ef156b63.patch)
sha256sums=('b72b31e199ce6467fdce821ecff9344fe7f1b314db03e09db162b39558c43c2b'
            '67f5dbb3ef35940a72307ced8e1a11495ef26c67c129a92c01d89d96f00f2e00'
            '5fb660b7964fd95b55c67236b4f7ed87bd063d4b4a8e1850edcad4875270d7ca')

prepare() {
    cd "ms-office-online-launcher-${pkgver}"
    patch -p1 -i ../add-mslogin.patch
    patch -p1 -i ../sharepoint.patch

}

package() {
    cd "ms-office-online-launcher-${pkgver}"
    mkdir -p $pkgdir/usr/bin
    mkdir -p $pkgdir/usr/share/{applications,pixmaps}
    cp launcher.desktop $pkgdir/usr/share/applications/ms-office-online.desktop
    cp icons/office.png $pkgdir/usr/share/pixmaps/ms-office.png
    cp ms-office-online $pkgdir/usr/bin
    chmod a+x $pkgdir/usr/bin
}