blob: a7c91d5fd8264760a54e1db9104a91e0248494d7 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# Maintainer: dr460nf1r3 <dr460nf1r3 at garudalinux dot org>
# Contributor: Simon Wilper <sxw@chronowerks.de>
pkgname=libreoffice-slim-fixed-git
_gitname=core
pkgver=7.2.0.r2009af1c0
pkgrel=1
pkgdesc="A slimmed down git version of LibreOffice"
arch=('x86_64')
url="https://www.libreoffice.org/community/developers/"
license=('GPL')
makedepends=('curl>=7.20.0' 'hunspell>=1.2.8' 'python>=3.7' 'libwpd>=0.9.2' 'libwps'
'neon>=0.28.6' 'pango' 'nspr' 'libjpeg' 'libxrandr' 'libgl' 'dbus-glib'
'libxslt' 'redland' 'hyphen' 'lpsolve' 'gcc-libs' 'sh' 'graphite' 'icu'
'lcms2' 'poppler>=0.24.0' 'libvisio' 'libetonyek' 'libodfgen' 'libcdr'
'libmspub' 'harfbuzz-icu' 'nss' 'hicolor-icon-theme'
'desktop-file-utils' 'shared-mime-info' 'gst-plugins-base-libs'
'sane' 'perl-archive-zip' 'zip' 'unzip' 'unixodbc'
'gperf' 'gtk3' 'qt5-base' 'plasma-framework' 'cppunit' 'clucene'
'libmythes' 'libwpg' 'postgresql-libs' 'mariadb-libs'
'libgl' 'bluez-libs' 'gdb' 'doxygen' 'libatomic_ops' 'mdds' 'glm'
'apr' 'serf' 'ttf-liberation' 'ttf-dejavu' 'ttf-carlito' 'libxinerama' 'libpagemaker'
'libabw' 'libmwaw' 'libe-book' 'coin-or-mp' 'liblangtag' 'liborcus'
'libexttextcat' 'libcmis' 'gobject-introspection'
'libtommath' 'libzmf' 'gpgme' 'xmlsec' 'rxvt-unicode'
'libepubgen' 'libfreehand' 'libqxp' 'libstaroffice' 'boost' 'libnumbertext'
'libffi' 'box2d' 'git')
depends=(python)
source=('git+https://gerrit.libreoffice.org/core.git'
'git+https://gitlab.com/chaotic-aur-pkgbuilds/libreoffice-slim-git.git')
pkgver() {
cd "${srcdir}/${_gitname}"
printf "7.2.0.r%s" "$(git log --pretty=%h | head -n1)"
}
prepare() {
cd "${srcdir}/${_gitname}"
[[ -d workdir ]] && make clean
build_hash=$(git log --pretty=%h | head -n1)
build_date=$(date +%Y%m%d)
./autogen.sh\
--enable-dbus\
--enable-gtk3-kde5\
--enable-kf5\
--enable-openssl\
--enable-qt5\
--disable-avahi\
--disable-coinmp\
--disable-crashdump\
--disable-cups\
--disable-dconf\
--disable-dependency-tracking\
--disable-firebird-sdbc\
--disable-gio\
--disable-gstreamer-1-0\
--disable-ldap\
--disable-lotuswordpro\
--disable-lpsolve\
--disable-mariadb-sdbc\
--disable-neon\
--disable-odk\
--disable-opencl\
--disable-postgresql-sdbc\
--disable-report-builder\
--enable-lto\
--enable-pdfimport\
--enable-optimized=yes\
--enable-python=system\
--enable-release-build\
--with-extra-buildid="${build_hash}-${build_date}"\
--with-galleries=no\
--with-java=no\
--with-package-format=archive\
--with-vendor="Chaotic-AUR"\
--without-fonts\
--without-help
}
build() {
cd "${srcdir}/${_gitname}"
make build-nocheck
cd workdir/installation/LibreOffice/archive/install/en-US
tar xf *.tar.gz
cd LibreOffice*/program
sed -i -e 's@^UserInstallation.*@UserInstallation=$SYSUSERCONFIG/libreoffice@g' bootstraprc
}
package() {
install -d -m755 ${pkgdir}/opt/libreoffice
cp -r ${srcdir}/${_gitname}/workdir/installation/LibreOffice/archive/install/en-US/LibreOffice*/* ${pkgdir}/opt/libreoffice
install -d -m755 ${pkgdir}/usr/share/applications
cp ${srcdir}/libreoffice-slim-git/starters/* ${pkgdir}/usr/share/applications
}
|