milis/talimatname/genel/l/libreoffice/talimat

133 lines
5.2 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Ofis Programı
2017-09-21 21:16:44 +02:00
# URL: http://www.libreoffice.org/
2017-10-27 20:46:27 +02:00
# Paketçi: Cihan Alkan
# Gerekler:hunspell python3 libwpd neon pango nspr clucene openjdk xmlsec libodfgen libwps libvisio libcdr libmspub libmwaw libe-book libabw libzmf libpagemaker libcmis cppunit libtommath graphite2 harfbuzz redland raptor hyphen mythes lpsolve libexttextcat liborcus gpgmepp beanshell libpng cairo apache-ant junit libetonyek openldap sane bluez poppler cups,curl,libatomic-ops,gperf,gtk2,gtk3,perl-archive-zip,perl-xml-parser boost expat gstreamer-plugins-base gstreamer1-plugins-base libgsf librsvg libxml2 libxslt nss postgresql icu gsfonts dejavu-ttf npapi-sdk serf unixodbc xdg-utils desktop-file-utils
2016-11-11 23:36:48 +01:00
2017-10-28 14:10:23 +02:00
isim=libreoffice
surum=5.4.1.2
devir=1
kaynak=(http://download.documentfoundation.org/libreoffice/src/5.4.1/$isim-$surum.tar.xz
http://download.documentfoundation.org/libreoffice/src/5.4.1/$isim-dictionaries-$surum.tar.xz
http://download.documentfoundation.org/libreoffice/src/5.4.1/$isim-help-$surum.tar.xz
http://download.documentfoundation.org/libreoffice/src/5.4.1/$isim-translations-$surum.tar.xz
2017-09-21 21:16:44 +02:00
http://kaynaklar.milislinux.org/libreofis-milis-ekler.tar.xz)
2016-07-23 20:11:04 +02:00
2017-10-27 23:59:41 +02:00
derle() {
2017-09-21 21:16:44 +02:00
unset ACLOCAL
export LO_PREFIX=/usr
2016-07-23 20:11:04 +02:00
2017-09-21 21:16:44 +02:00
#cd $SRC
2017-10-28 14:10:23 +02:00
#tar -xf $isim-$surum.tar.xz --no-overwrite-dir
2016-07-23 20:11:04 +02:00
2017-10-28 14:10:23 +02:00
cd $isim-$surum
2016-07-23 20:11:04 +02:00
2017-09-21 21:16:44 +02:00
install -dm755 external/tarballs
2017-10-28 14:10:23 +02:00
ln -sv $SRC/$isim-dictionaries-$surum.tar.xz external/tarballs/
ln -sv $SRC/$isim-help-$surum.tar.xz external/tarballs/
ln -sv $SRC/$isim-translations-$surum.tar.xz external/tarballs/
2016-07-23 20:11:04 +02:00
2017-09-21 21:16:44 +02:00
sed -e "/gzip -f/d" \
-e "s|.1.gz|.1|g" \
-i bin/distro-install-desktop-integration
2016-07-23 20:11:04 +02:00
2017-09-21 21:16:44 +02:00
sed -e "/distro-install-file-lists/d" -i Makefile.in
2016-07-23 20:11:04 +02:00
2017-09-21 21:16:44 +02:00
chmod -v +x bin/unpack-sources
2016-07-23 20:11:04 +02:00
./autogen.sh --prefix=$LO_PREFIX \
--sysconfdir=/etc \
2017-09-21 21:16:44 +02:00
--with-vendor="Milis Linux" \
--with-lang="tr" \
2016-07-23 20:11:04 +02:00
--with-help \
--with-myspell-dicts \
--with-alloc=system \
2017-09-21 21:16:44 +02:00
--without-junit \
2016-07-23 20:11:04 +02:00
--without-system-dicts \
--disable-dconf \
2017-09-21 21:16:44 +02:00
--enable-odk \
--with-jdk-home="/opt/jdk" \
--with-ant-home="/opt/ant" \
2016-07-23 20:11:04 +02:00
--disable-firebird-sdbc \
--enable-release-build=yes \
--enable-python=system \
--with-system-apr \
2017-09-21 21:16:44 +02:00
--with-system-boost \
2016-07-23 20:11:04 +02:00
--with-system-clucene \
--with-system-cairo \
--with-system-curl \
--with-system-expat \
--with-system-icu \
--with-system-jpeg \
--with-system-lcms2 \
--with-system-libatomic_ops \
--with-system-libpng \
--with-system-libxml \
2017-09-21 21:16:44 +02:00
--with-system-libodfgen \
--with-system-libmwaw \
--with-system-libetonyek \
--with-system-libvisio \
--with-system-libcmis \
--with-system-libmspub \
--with-system-libexttextcat \
--with-system-orcus \
--with-system-liblangtag \
2016-07-23 20:11:04 +02:00
--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 \
2017-09-21 21:16:44 +02:00
--with-system-beanshell \
--with-system-cppunit\
--with-system-graphite\
--with-system-harfbuzz\
--with-system-glm \
--with-system-libwpg \
--with-system-libwps \
--with-system-libzmf \
--with-system-gpgmepp \
2016-07-23 20:11:04 +02:00
--with-parallelism=$(getconf _NPROCESSORS_ONLN)
2017-09-21 21:16:44 +02:00
make -i build-nocheck
make -i DESTDIR=$PKG distro-pack-install
2016-07-23 20:11:04 +02:00
install -v -m755 -d $PKG/$LO_PREFIX/share/appdata
install -v -m644 sysui/desktop/appstream-appdata/*.xml $PKG/$LO_PREFIX/share/appdata
2017-09-21 21:16:44 +02:00
# Sözlük kurulumu
2016-07-23 20:11:04 +02:00
chown -cR 0:0 dictionaries/
2017-09-21 21:16:44 +02:00
for lang in en
2016-07-23 20:11:04 +02:00
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
2017-09-21 21:16:44 +02:00
# Bu sembolik bağ, masaüstü menü girdileri için gereklidir
2016-07-23 20:11:04 +02:00
ln -sv -f $LO_PREFIX/lib/libreoffice/program/soffice \
$PKG/usr/bin/libreoffice
2017-09-21 21:16:44 +02:00
# Simgeler
2016-07-23 20:11:04 +02:00
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
rm -rf $PKG/gid*
2017-09-21 21:16:44 +02:00
cp -R $SRC/flat_logo.svg $PKG/usr/lib/libreoffice/program/flat_logo.svg
cp -R $SRC/intro.png $PKG/usr/lib/libreoffice/program/intro.png
cp -R $SRC/*.desktop $PKG/usr/lib/libreoffice/share/xdg/
mkdir -p $PKG/tmp
mv $SRC/libreoffice $PKG/tmp/
2016-07-23 20:11:04 +02:00
}
2017-09-21 21:16:44 +02:00