summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 95b4fe929ef143843cd64998e754dd1e7dda8e05 (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
43
44
45
46
47
48
49
50
51
52
# Maintainer: FranoGames

pkgname=euro-office-desktopeditors-git
pkgver=r401.bc9a9e5

pkgver=r401.bc9a9e5

pkgrel=1
pkgdesc="Fork of OnlyOffice"
arch=('x86_64')
url="https://github.com/Euro-Office/DesktopEditors"
license=('AGPL-3.0-only')
provides=('euro-office-desktopeditors')
depends=('libxrandr' 'libglvnd' 'expat' 'libxext' 'libxi' 'wayland' 'qt5-wayland' 'pango' 'libdrm' 'cairo' 'qt5-svg' 'bash' 'hunspell' 'gstreamer' 'libice' 'qt5-x11extras' 'glibc' 'libtiff5' 'libstdc++' 'gtk3' 'dbus' 'freetype2' 'libcups' 'qt5-base' 'mesa' 'gst-plugins-base-libs' 'libxkbcommon' 'libsm' 'glib2' 'hicolor-icon-theme' 'libxdamage' 'nss' 'libgcc' 'libxcomposite' 'libpulse' 'qt5-multimedia' 'libx11' 'fontconfig' 'at-spi2-core' 'libxkbcommon-x11' 'libnotify' 'qt5-declarative' 'alsa-lib' 'libxcb' 'harfbuzz' 'libxfixes' 'nspr')
makedepends=('docker' 'docker-buildx' 'git' 'libarchive')

source=(
  "git+https://github.com/Euro-Office/DesktopEditors.git"
)

sha256sums=(
  "SKIP"
)

pkgver() {
  cd "$srcdir/DesktopEditors"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

prepare() {
  if ! docker buildx inspect euro-office-desktopeditors-git &>/dev/null; then
    docker buildx create --name euro-office-desktopeditors-git --driver docker-container
  fi

  cd "$srcdir/DesktopEditors"
  git submodule update --init --recursive

}

build() {
  cd "DesktopEditors/build/linux"
  BUILDX_BAKE_ENTITLEMENTS_FS=0 BUILDX_BUILDER=euro-office-desktopeditors-git ./build.sh
}

package() {
  cd "$srcdir/DesktopEditors/build/linux/deploy/packages"
  bsdtar xvf $(ls -t | grep "x86_64.tar.xz" | head -n1)
  chmod +x "usr/bin/euro-office-desktopeditors"
  bsdtar xvf $(ls -t | grep "any.tar.xz" | head -n1)
  cp -r "$srcdir/DesktopEditors/build/linux/deploy/packages/usr" "$pkgdir/"
  cp -r "$srcdir/DesktopEditors/build/linux/deploy/packages/opt" "$pkgdir/"
}