summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD105
2 files changed, 28 insertions, 95 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c6dd06409b23..c5ae828e2095 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,8 @@
-# Generated by mksrcinfo v8
-# Thu Apr 5 15:27:07 UTC 2018
pkgbase = libreoffice-fresh-rpm
- pkgdesc = LGPL Office Suite installed from rpms
- pkgver = 6.0.3
+ pkgdesc = Libre Office Suite installed from rpms
+ pkgver = 7.6.0
pkgrel = 1
- url = http://www.libreoffice.org
- arch = i686
+ url = https://www.libreoffice.org
arch = x86_64
license = LGPL
makedepends = curl
@@ -19,8 +16,11 @@ pkgbase = libreoffice-fresh-rpm
optdepends = gst-plugins-good
optdepends = gst-plugins-bad
optdepends = gst-plugins-ugly
- source = https://download.documentfoundation.org/libreoffice/stable/6.0.3/rpm/x86_64/LibreOffice_6.0.3_Linux_x86-64_rpm.tar.gz
- sha256sums = 3a7572bd18ec13aede3bd7217fd42840182ffbdb7c12835032a4e9e664a5937d
+ provides = libreoffice
+ conflicts = libreoffice-fresh
+ conflicts = libreoffice-base
+ conflicts = libreoffice-still
+ source = https://download.documentfoundation.org/libreoffice/stable/7.6.0/rpm/x86_64/LibreOffice_7.6.0_Linux_x86-64_rpm.tar.gz
+ sha256sums = 7920cad87e7bfb12798ea58df20982a13bf8a3163aeeaa791da6f369680887e7
pkgname = libreoffice-fresh-rpm
-
diff --git a/PKGBUILD b/PKGBUILD
index 01641136c3e2..0b9bb7863125 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,101 +1,33 @@
-# Maintainer : FadeMind <fademind@gmail.com>
+# Maintainer : Uwe Grasshoff <aurpackages@crazyideas.dee>
+# Contributor: Felix Golatofski <contact@xdfr.de>
# Contributor: Red_Squirrel <evangelion87d@gmail.com>
# Contributor: Xavier114fch <xavier114fch@gmail.com>
# Contributor: nachoig <areta@outlook.com.br>
# Contributor: nTia89 <mattia.b89@gmail.com>
# Contributor: Mark E. Lee <mark@markelee.com>
-## Changelog :
-## changed build function to package function (since nothing is built)
-## removed rpmextract dependency since bsdtar can already extract rpms (per Red_Squirrel's advice)
-## removed double posting query
-## fixed up pkgver and pkgrel variables
-## updated to libreoffice 4.0.1
-## added libnp12 as a dependency due to <https://bugassistant.libreoffice.org/show_bug.cgi?id=61571> as reported by xavier114fch
-## fixed up some file permissions for :
-## FILE/DIR PERMISSIONS
-## -------- -----------
-## /usr/bin/ 755
-## /opt/libreoffice4.0/LICENSE 644
-## /opt/libreoffice4.0/CREDITS.odt 644
-## /opt/libreoffice4.0/LICENSE.odt 644
-## Using package defaults for rest
-## Updated to pkgver 4.0.2
-## Updated to pkgver 4.0.3
-## Updated to pkgver 4.0.4
-## Changed ${pkgver%.3} to $(echo $pkgver | awk -F'.' 'OFS="." {print $1,$2}') for easy upgrades (just change the pkver and pkgrel variable)
-## Updated to pkgver 4.1.0
-## Moved language packs to prepare function
-## removed code to extract 4.0 desktop integration; it is now extracted in a usr directory; added code to copy the usr directory
-## changed directory copying code to copy all */ in the RPMS directories
-## updated to upstream 4.1.1
-## updated to upstream 4.1.2
-## updated to upstream 4.1.3
-## updated to upstream 4.1.4
-## switched to sha256 sums + PGP sigs (see mailing list : <https://mailman.archlinux.org/pipermail/arch-general/2014-January/034744.html>)
-## using custom linux kernel version check in package() due usage of custom kernels (the issue was brought up by nachoig, the fix was from Mark E. Lee)
-## updated to upstream 4.2.0
-## using curl instead of wget due to Arch upstream change as requested by nTia89
-## updated to upstream 4.2.1
-## updated to upstream 4.2.2
-## updated to upstream 4.2.3
-## updated to upstream 4.2.4
-## updated to upstream 4.2.5
-## removed gnome from opt-depends and added gstreamer0.10-plugins per nachoig's suggestion
-## removed gstreamer0.10-plugins and added gst-plugins per nachoig's suggestion
-## updated to upstream 4.3.0
-## changed pkgname to libreoffice-fresh-rpm per nachoig's suggestion
-## updated to upstream 4.3.1
-## updated to upstream 4.3.2
-## updated to upstream 4.3.3
-## updated to upstream 4.3.4
-## updated to upstream 4.3.5
-## updated to upstream 4.4.0
-## temporarily removing GPG sig checks
-## updated to upstream 4.4.1
-## updated to upstream 4.4.2
-## updated to remove "Y2K" problem. Credit to FadeMind for reporting the error. Credit to Mark Lee for identifying the cause and fix.
-## updated to upstream 4.4.3
-## updated to upstream 4.4.4
-## updated to upstream 5.0.0
-## updated to upstream 5.0.1
-## updated to upstream 5.0.2
-## updated to upstream 5.0.2
-## updated to upstream 5.0.4
-## updated to upstream 5.1.0
-## updated to upstream 5.1.1
-## updated to upstream 5.1.2
-## updated to upstream 5.1.3
-## updated to upstream 5.2.0
-## updated to upstream 5.2.1
-## updated to upstream 5.2.3
-## updated to upstream 5.3.0
-## updated to upstream 6.0.1
-## updated to upstream 6.0.2
-
## Check for new LibreOffice releases:
# $ wget "https://download.documentfoundation.org/libreoffice/stable/" -q -O /tmp/lo.html && echo "LibreOffice versions" && awk '{print $3;}' /tmp/lo.html|cut -b 7-11|grep --color=never [0-9].[0-9].[0-9]; rm /tmp/lo.html
+# site to look for the sha256sum
+# https://download.documentfoundation.org/libreoffice/stable/7.6.0/rpm/x86_64/LibreOffice_7.6.0_Linux_x86-64_rpm.tar.gz.mirrorlist
+# makepkg --printsrcinfo > .SRCINFO
pkgname=libreoffice-fresh-rpm
-pkgver=6.0.3
+pkgver=7.6.0
pkgrel=1
-pkgdesc="LGPL Office Suite installed from rpms"
-arch=('i686' 'x86_64')
-url='http://www.libreoffice.org'
+pkgdesc="Libre Office Suite installed from rpms"
+arch=('x86_64')
+url='https://www.libreoffice.org'
license=('LGPL')
depends=('glibc>=2.5' 'gtk2>=2.10.4' 'xorg-server')
+provides=(libreoffice)
+conflicts=('libreoffice-fresh' 'libreoffice-base' 'libreoffice-still')
makedepends=('curl' 'awk')
optdepends=('jre8-openjdk' 'gtk3' 'gst-plugins-base' 'gst-plugins-good' 'gst-plugins-bad' 'gst-plugins-ugly')
# WARNING sha256sums values should be taken from details page about rpm.tar.gz files from servers. DO NOT USE _updpgksums_ tool.
-if [ "$(uname -m)" == "i686" ]; then ## convert bit architecture to libreoffice format
- arch_mod='x86';
- sha256sums+=('bee78eea0095f6ec0ca4f332792ac88d7171611ba017d1386cabc6b4a86ab7d6');
- source+=("https://download.documentfoundation.org/libreoffice/stable/${pkgver}/rpm/${arch_mod}/LibreOffice_${pkgver}_Linux_${arch_mod/_/-}_rpm.tar.gz")
- else
- arch_mod='x86_64';
- sha256sums+=('3a7572bd18ec13aede3bd7217fd42840182ffbdb7c12835032a4e9e664a5937d')
- source+=("https://download.documentfoundation.org/libreoffice/stable/${pkgver}/rpm/${arch_mod}/LibreOffice_${pkgver}_Linux_${arch_mod/_/-}_rpm.tar.gz")
-fi;
+arch_mod='x86_64';
+sha256sums=('7920cad87e7bfb12798ea58df20982a13bf8a3163aeeaa791da6f369680887e7')
+source=("https://download.documentfoundation.org/libreoffice/stable/${pkgver}/rpm/${arch_mod}/LibreOffice_${pkgver}_Linux_${arch_mod/_/-}_rpm.tar.gz")
prepare() { ## prepare function
@@ -111,15 +43,15 @@ for a in ${opt_pak[@]}; do ## loop for all optional extensions
select opt_ext in $(cat index.html | awk -F'_' "/${a}/ && !/.asc/ {print \$7}" | awk -F'.' '{print $1}'); do
## download the rpm package
msg "Retrieving LibreOffice_${pkgver}_Linux_${arch_mod/_/-}_rpm_${a}_${opt_ext}.tar.gz...";
- curl -L -O "http://download.documentfoundation.org/libreoffice/stable/${pkgver}/rpm/${arch_mod}/LibreOffice_${pkgver}_Linux_${arch_mod/_/-}_rpm_${a}_${opt_ext}.tar.gz";
+ curl -L -O "https://download.documentfoundation.org/libreoffice/stable/${pkgver}/rpm/${arch_mod}/LibreOffice_${pkgver}_Linux_${arch_mod/_/-}_rpm_${a}_${opt_ext}.tar.gz";
## download the rpm sha256
- curl -L -O "http://download.documentfoundation.org/libreoffice/stable/${pkgver}/rpm/${arch_mod}/LibreOffice_${pkgver}_Linux_${arch_mod/_/-}_rpm_${a}_${opt_ext}.tar.gz.sha256";
+ curl -L -O "https://download.documentfoundation.org/libreoffice/stable/${pkgver}/rpm/${arch_mod}/LibreOffice_${pkgver}_Linux_${arch_mod/_/-}_rpm_${a}_${opt_ext}.tar.gz.sha256";
## check the sha256 sum for the package
msg "Done";
msg "Validating LibreOffice_${pkgver}_Linux_${arch_mod/_/-}_rpm_${a}_${opt_ext}.tar.gz with sha256sum...";
sha256sum -c "LibreOffice_${pkgver}_Linux_${arch_mod/_/-}_rpm_${a}_${opt_ext}.tar.gz.sha256"
if [ ! $? -eq 0 ]; then ## check the sha256sum error
- echo "Failed sha256sum check for http://download.documentfoundation.org/libreoffice/stable/${pkgver}/rpm/${arch_mod}/LibreOffice_${pkgver}_Linux_${arch_mod/_/-}_rpm_${a}_${opt_ext}.tar.gz";
+ echo "Failed sha256sum check for https://download.documentfoundation.org/libreoffice/stable/${pkgver}/rpm/${arch_mod}/LibreOffice_${pkgver}_Linux_${arch_mod/_/-}_rpm_${a}_${opt_ext}.tar.gz";
exit;
else
msg "Done";
@@ -175,10 +107,11 @@ for a in $(ls -d */); do ## loop for all directories found
cp -rf */ ${pkgdir}/; ## copy and merge all found directories to the package directory
## change the permissions for files that shouldn't be executable
- declare -a wrongexec=("opt/libreoffice$(echo $pkgver | awk -F'.' 'OFS="." {print $1,$2}')/CREDITS.fodt" "opt/libreoffice$(echo $pkgver | awk -F'.' 'OFS="." {print $1,$2}')/LICENSE.fodt" "opt/libreoffice$(echo $pkgver | awk -F'.' 'OFS="." {print $1,$2}')/NOTICE"); ## set the array to change permissions
+ declare -a wrongexec=("opt/libreoffice$(echo $pkgver | awk -F'.' 'OFS="." {print $1,$2}')/CREDITS.fodt" "opt/libreoffice$(echo $pkgver | awk -F'.' 'OFS="." {print $1,$2}')/LICENSE" "opt/libreoffice$(echo $pkgver | awk -F'.' 'OFS="." {print $1,$2}')/NOTICE"); ## set the array to change permissions
for a in ${wrongexec[@]}; do
chmod 644 ${pkgdir}/$a; ## change permissions to read/write for root, read only for users
done;
done;
}
+