Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Simon Wilper <sxw@chronowerks.de>
- pkgname=libreoffice-slim-git
- pkgver=latest
- pkgrel=1
- pkgdesc="A slimmed down Git version of LibreOffice"
- arch=('x86_64' 'i386')
- url="https://www.libreoffice.org/community/developers/"
- license=('GPL')
- makedepends=('git')
- _gitroot=https://anongit.freedesktop.org/git/libreoffice/core.git
- _gitname=core
- prepare() {
- cd "$srcdir"
- msg "Connecting to GIT server...."
- if [[ -d "$_gitname" ]]; then
- cd "$_gitname" && git pull -r
- msg "The local files are updated."
- else
- git clone --depth 1 "$_gitroot" "$_gitname"
- fi
- msg "GIT checkout done or server timeout"
- msg "Starting build..."
- cd "${srcdir}/${_gitname}"
- [[ -d workdir ]] && make clean
- build_hash=$(git log --pretty=%h | head -n1)
- build_date=$(date +%Y%m%d)
- ./autogen.sh \
- --enable-release-build \
- --enable-python=internal \
- --enable-epm \
- --with-package-format=archive \
- --with-galleries=no \
- --with-java=no \
- --without-fonts \
- --disable-odk \
- --without-help \
- --without-helppack-integration \
- --with-build-version="${pkgver}-${pkgrel}" \
- --disable-avahi \
- --disable-avmedia \
- --disable-gstreamer-1-0 \
- --disable-cups \
- --disable-database-connectivity \
- --disable-report-builder \
- --disable-pdfimport \
- --disable-lpsolve \
- --disable-coinmp \
- --disable-dbus \
- --disable-firebird-sdbc \
- --disable-postgresql-sdbc \
- --disable-database-connectivity \
- --disable-randr \
- --with-system-libcmis \
- --with-system-expat \
- --with-system-xmlsec \
- --with-system-libeot \
- --with-system-lcms2 \
- --with-system-cppunit \
- --with-system-libatomic_ops \
- --with-system-mdds \
- --with-system-nss \
- --with-system-orcus \
- --with-boost-system \
- --with-system-graphite \
- --with-system-harfbuzz \
- --with-system-apr \
- --with-system-serf \
- --with-system-neon \
- --with-system-openssl \
- --with-system-redland \
- --with-system-libexttextcat \
- --with-system-libnumbertext \
- --with-system-epoxy \
- --with-system-libpng \
- --enable-lto
- #--without-doxygen (in odk enthalten)
- #--with-system-mariadb \
- #--disable-bundle-mariadb \
- }
- build() {
- cd "${srcdir}/${_gitname}"
- LC_ALL=C make build-nocheck
- cd workdir/installation/LibreOffice/archive/install/en-US
- msg "Extracting LibreOffice Installation Tarball..."
- tar xf *.tar.gz
- }
- package() {
- cd "${pkgdir}"
- install -d -m755 ${pkgdir}/opt/lo
- cp -r ${srcdir}/${_gitname}/workdir/installation/LibreOffice/archive/install/en-US/LibreOffice*/* ${pkgdir}/opt/lo
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement