milis/talimatname/genel/libreoffice/talimat

121 lines
4.7 KiB
Plaintext
Raw Normal View History

2016-07-23 20:11:04 +02:00
# Description: LibreOffice is a full-featured office suite. It is largely compatible with Microsoft Office and is descended from OpenOffice.org.
# URL: http://www.libreoffice.org
# Packagers: alihan-ozturk28@hotmail.com
2016-08-01 16:27:40 +02:00
# Depends on: tar apache-ant junit openldap python3 cups curl libatomic-ops gtk2 gtk3 perl-archive-zip perl-xml-parser boost expat gstreamer-plugins-base gstreamer1-plugins-base libgsf librsvg libxml2 libxslt neon nss poppler postgresql redland icu hunspell gsfonts dejavu-ttf p7zip graphite2 npapi-sdk clucene serf unixodbc
2016-07-23 20:11:04 +02:00
name=libreoffice
2016-08-02 13:20:55 +02:00
version=5.2.0.4
2016-07-23 20:11:04 +02:00
release=1
source=(http://download.documentfoundation.org/libreoffice/src/${version%.*}/$name-$version.tar.xz
http://download.documentfoundation.org/libreoffice/src/${version%.*}/$name-dictionaries-$version.tar.xz
http://download.documentfoundation.org/libreoffice/src/${version%.*}/$name-help-$version.tar.xz
http://download.documentfoundation.org/libreoffice/src/${version%.*}/$name-translations-$version.tar.xz)
build() {
unset ACLOCAL
export LO_PREFIX=/usr
2016-07-24 16:00:22 +02:00
#cd $SRC
#tar -xf $name-$version.tar.xz --no-overwrite-dir
2016-07-23 20:11:04 +02:00
cd $name-$version
install -dm755 external/tarballs
ln -sv $SRC/$name-dictionaries-$version.tar.xz external/tarballs/
ln -sv $SRC/$name-help-$version.tar.xz external/tarballs/
2016-07-24 16:00:22 +02:00
ln -sv $SRC/$name-translations-$version.tar.xz external/tarballs/
2016-07-23 20:11:04 +02:00
sed -e "/gzip -f/d" \
-e "s|.1.gz|.1|g" \
-i bin/distro-install-desktop-integration
sed -e "/distro-install-file-lists/d" -i Makefile.in
sed -e "/ustrbuf/a #include <algorithm>" \
-i svl/source/misc/gridprinter.cxx
sed -i "s#isnan#std::&#g" xmloff/source/draw/ximp3dscene.cxx
# i686 build broken
[ "$PKGMK_ARCH" = "i686" ] && sed -i '/CppunitTest_sw_ooxmlimport/d' sw/Module_sw.mk
[ "$PKGMK_ARCH" = "i686" ] && sed -i '/CppunitTest_sw_ooxmlexport7/d' sw/Module_sw.mk
chmod -v +x bin/unpack-sources
./autogen.sh --prefix=$LO_PREFIX \
--sysconfdir=/etc \
2016-07-23 20:39:57 +02:00
--with-vendor="Milis" \
2016-08-01 16:37:34 +02:00
--with-lang="es tr ar ru" \
2016-07-23 20:11:04 +02:00
--with-help \
--with-myspell-dicts \
--with-alloc=system \
2016-07-23 20:39:57 +02:00
--with-java \
2016-07-23 20:11:04 +02:00
--without-system-dicts \
--disable-dconf \
--disable-odk \
--disable-firebird-sdbc \
--enable-release-build=yes \
--enable-python=system \
--with-system-apr \
--with-system-boost=yes \
--with-system-clucene \
--with-system-cairo \
--with-system-curl \
--with-system-expat \
--with-system-graphite \
--with-system-harfbuzz \
--with-system-icu \
--with-system-jpeg \
--with-system-lcms2 \
--with-system-libatomic_ops \
--with-system-libpng \
--with-system-libxml \
--with-system-neon \
--with-system-nss \
--with-system-odbc \
--with-system-openldap \
--with-system-openssl \
--with-system-poppler \
--with-system-postgresql \
--with-system-redland \
--with-system-serf \
--with-system-zlib \
2016-07-24 16:00:22 +02:00
--with-jdk-home=/opt/jdk \
--with-ant-home=/opt/ant \
2016-07-23 20:11:04 +02:00
--with-parallelism=$(getconf _NPROCESSORS_ONLN)
make build
make DESTDIR=$PKG distro-pack-install
install -v -m755 -d $PKG/$LO_PREFIX/share/appdata
install -v -m644 sysui/desktop/appstream-appdata/*.xml $PKG/$LO_PREFIX/share/appdata
# Installation des Dictionnaires
chown -cR 0:0 dictionaries/
for lang in en fr_FR es de it_IT pt_PT no nl_NL sv_SE da_DK
do
mkdir -pv $PKG/$LO_PREFIX/lib/libreoffice/share/extensions/dict-$lang
cp -R dictionaries/$lang/* $PKG/$LO_PREFIX/lib/libreoffice/share/extensions/dict-$lang
done
# This symlink is necessary for the desktop menu entries
ln -sv -f $LO_PREFIX/lib/libreoffice/program/soffice \
$PKG/usr/bin/libreoffice
# Icones
for res in 16 32 48 128 256
do
mkdir -p $PKG/$LO_PREFIX/share/icons/hicolor/${res}x${res}/{apps,mimetypes}
cp sysui/desktop/icons/hicolor/${res}x${res}/apps/*.png \
$PKG/$LO_PREFIX/share/icons/hicolor/${res}x${res}/apps
cp sysui/desktop/icons/hicolor/${res}x${res}/mimetypes/*.png \
$PKG/$LO_PREFIX/share/icons/hicolor/${res}x${res}/mimetypes
done
# Nettoyage
rm -rf $PKG/gid*
rm -rf $PKG/usr/share/man
}