New Package: palemoon-29.4.6_1
This commit is contained in:
parent
408f3d103b
commit
b266a767d9
1 changed files with 30 additions and 23 deletions
|
@ -1,48 +1,55 @@
|
|||
# Template file for 'palemoon'
|
||||
|
||||
# This template is based on tuxliban <tenshalito@gmail.com> work. All credits goes to him.
|
||||
# Original source: https://git.disroot.org/tuxliban/tutoriales_void/src/branch/master/Plantillas/palemoon/template
|
||||
|
||||
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"
|
||||
depends="libvpx alsa-lib dbus-glib libXt gtk+"
|
||||
short_desc="Open-source web browser based on Firefox focusing on efficiency"
|
||||
maintainer="David C. <https://github.com/David-Castro16>"
|
||||
license="Mozilla Public License v2.0"
|
||||
license="LGPL-2.1-or-later MPL-2.0-or-later GPL-3.0-or-later"
|
||||
homepage="https://www.palemoon.org"
|
||||
checksum=
|
||||
|
||||
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||
_debarch=amd64
|
||||
checksum=
|
||||
_debarch=amd64
|
||||
checksum=06ef3244b7b6cf0f99560d49b29bfb2cfb5687e85ab99d141137ff455c28910c
|
||||
else
|
||||
_debarch=i386
|
||||
checksum=
|
||||
_debarch=i386
|
||||
checksum=719de254edc97fd7caffe410c9c92d11241def6842a2a05e13ebab1408ceee55
|
||||
fi
|
||||
|
||||
distfiles="https://download.opensuse.org/repositories/home:/stevenpusser/Debian_10/${_debarch}/${pkgname}_${version}-${_release}.gtk2_${_debarch}.deb"
|
||||
distfiles="https://download.opensuse.org/repositories/home:/stevenpusser/Debian_11/${_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
|
||||
ar x ${XBPS_SRCDISTDIR}/${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
|
||||
vinstall usr/share/applications/${pkgname}.desktop 0644 \
|
||||
usr/share/applications
|
||||
|
||||
vcopy /usr/lib/palemoon opt
|
||||
ln -s /opt/palemoon/palemoon "${DESTDIR}/usr/bin/palemoon"
|
||||
# Crear directorio en path falso ($DESTDIR) para el paquete
|
||||
vmkdir opt
|
||||
vmkdir usr/bin
|
||||
|
||||
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
|
||||
# Mover archivos de forma recursiva
|
||||
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
|
||||
post_install() {
|
||||
curl ${_licenseURL} | html2text | sed '1,57d' > EULA.md
|
||||
vlicense EULA.md
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue