milis/talimatname/genel/l/libreoffice-bin/talimat

58 lines
1.6 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Tam özellikli çapraz platform ofis paketi (ikili)
2016-02-24 01:27:23 +01:00
# URL: http://www.libreoffice.org
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: cups xorg-libxaw xorg-libxcursor xorg-libxft xorg-libxinerama xorg-libxi xorg-libxrandr dbus-glib krb5
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
isim=libreoffice-bin
2016-06-08 17:37:19 +02:00
namep=libreoffice
2017-10-28 14:10:23 +02:00
surum=5.1.3
devir=1
kaynak=(http://tdf.c3sl.ufpr.br/libreoffice/stable/5.1.3/rpm/x86_64/LibreOffice_5.1.3_Linux_x86-64_rpm.tar.gz)
2016-02-24 01:27:23 +01:00
2017-10-27 23:59:41 +02:00
derle() {
2016-03-14 17:11:40 +01:00
local workd="$SRC/tmp_work"
mkdir $workd
2017-10-28 14:10:23 +02:00
cd LibreOffice_${surum}*/RPMS
2016-03-14 17:11:40 +01:00
for rpm in *.rpm; do
bsdtar -p -o -C $workd -xf $rpm
done
bsdtar -p -o -C $workd -xf \
2017-10-28 14:10:23 +02:00
$isimp${surum%.*}*.noarch.rpm
2016-03-14 17:11:40 +01:00
cd $workd
2017-10-28 14:10:23 +02:00
mkdir -p $PKG/usr/lib/$isimp
mv opt/$isimp*/* $PKG/usr/lib/$isimp
2016-03-14 17:11:40 +01:00
2017-10-28 14:10:23 +02:00
cd $PKG/usr/lib/$isimp
ln -sf basis${surum%.*} basis-link
2016-03-14 17:11:40 +01:00
mkdir -p $PKG/usr/bin
local programs=(sbase scalc sdraw simpress smath soffice spadmin swriter)
for program in ${programs[@]}; do
2017-10-28 14:10:23 +02:00
ln -sf /usr/lib/$isimp/program/$program $PKG/usr/bin/$program
2016-03-14 17:11:40 +01:00
done
mkdir -p $PKG/usr/share/applications
2017-10-28 14:10:23 +02:00
cd $PKG/usr/lib/$isimp/share/xdg/
2016-03-14 17:11:40 +01:00
for desktop in *.desktop; do
sed -i '/^Exec=/s/libreoffice[^ ]*/soffice/' $desktop
2017-10-28 14:10:23 +02:00
ln -sf /usr/lib/$isimp/share/xdg/$desktop $PKG/usr/share/applications/$desktop
2016-03-14 17:11:40 +01:00
done
mv $workd/usr/share/{mime,icons} $PKG/usr/share
find $PKG \(\
2016-06-08 17:37:19 +02:00
-inamep '*readme*' -o \
-inamep '*changelog*' -o \
-namep '*TODO*' -o \
-inamep '*news*' -o \
-inamep '*license*' -o \
-inamep '*credits*' \
2016-03-14 17:11:40 +01:00
\) -exec rm -rf '{}' \; || true
2016-02-24 01:27:23 +01:00
}
2016-03-14 17:11:40 +01:00