Add OnlyOffice and Palemoon (initial) templates

This commit is contained in:
Kevin F 2022-04-22 14:09:23 -04:00
parent c25700e507
commit 1bd515a346
2 changed files with 74 additions and 0 deletions

View file

@ -0,0 +1,26 @@
# Template file for 'onlyoffice-desktopeditors'
pkgname=onlyoffice-desktopeditors
version=7.0.2
revision=1
archs="x86_64"
#wrksrc=
#create_wrksrc=yes
hostmakedepends="tar xz"
depends="libstdc++ curl xdg-utils dejavu-fonts-ttf GConf"
short_desc="OnlyOffice office suite for desktops"
maintainer="Kevin F. <https://github.com/KF-Art>"
license="AGPL-3.0"
homepage="https://www.onlyoffice.com"
#changelog=""
distfiles="https://github.com/ONLYOFFICE/DesktopEditors/releases/download/v${version}/onlyoffice-desktopeditors_amd64.deb"
checksum=70ddaef2773f19e24dd8d474b98aba2bdfa9191d81dccc787bf13bd877f2e898
nostrip=yes
do_extract() {
mkdir -p ${DESTDIR}
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/onlyoffice-desktopeditors_amd64.deb
}
do_install() {
tar -xf data.tar.xz -C ${DESTDIR}
}

48
srcpkgs/palemoon/template Normal file
View file

@ -0,0 +1,48 @@
# Template file for 'palemoon'
pkgname=palemoon
version=29.4.6
revision=1
_release=1
archs="i686 x86_64"
hostmakedepends="curl python3-html2text tar xz"
depends="libvpx alsa-lib dbus-glib libXt gtk+ "
short_desc="An optimized Web Browser forked from Firefox Browser"
maintainer="David C. <https://github.com/David-Castro16>"
license="Mozilla Public License v2.0"
homepage="https://www.palemoon.org"
checksum=
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
_debarch=amd64
checksum=
else
_debarch=i386
checksum=
fi
distfiles="https://download.opensuse.org/repositories/home:/stevenpusser/Debian_10/${_debarch}/${pkgname}_${version}-${_release}.gtk2_${_debarch}.deb"
_licenseURL="https://www.palemoon.org/redist.shtml"
do_extract() {
ar x ${XBPS_SRCDISDIR}/${pkgname}-${version}/${pkgname}_${version}-${_release}.gtk2_${_debarch}.deb
tar xf data.tar.xz
}
do_install() {
vinstall usr/share/applications/${pkgname}.desktop 0644 \
usr/share/applications
vmkdir opt
vmkdir usr/bin
vcopy /usr/lib/palemoon opt
ln -s /opt/palemoon/palemoon "${DESTDIR}/usr/bin/palemoon"
for res in 16 32 48 128; do
vinstall usr/share/icons/hicolor/${res}x${res}/apps/${pkgname}.png 0644 \ usr/share/icons/hicolor/${res}x${res}/apps ${pkgname}.png
done
}
post_install(){
curl ${_licenseURL} | html2text | sed '1,57d' > EULA.md
vlicense EULA.md
}