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'
|
# 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
|
pkgname=palemoon
|
||||||
version=29.4.6
|
version=29.4.6
|
||||||
revision=1
|
revision=1
|
||||||
_release=1
|
_release=1
|
||||||
archs="i686 x86_64"
|
archs="i686 x86_64"
|
||||||
hostmakedepends="curl python3-html2text tar xz"
|
hostmakedepends="curl python3-html2text tar xz"
|
||||||
depends="libvpx alsa-lib dbus-glib libXt gtk+ "
|
depends="libvpx alsa-lib dbus-glib libXt gtk+"
|
||||||
short_desc="An optimized Web Browser forked from Firefox Browser"
|
short_desc="Open-source web browser based on Firefox focusing on efficiency"
|
||||||
maintainer="David C. <https://github.com/David-Castro16>"
|
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"
|
homepage="https://www.palemoon.org"
|
||||||
checksum=
|
|
||||||
|
|
||||||
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||||
_debarch=amd64
|
_debarch=amd64
|
||||||
checksum=
|
checksum=06ef3244b7b6cf0f99560d49b29bfb2cfb5687e85ab99d141137ff455c28910c
|
||||||
else
|
else
|
||||||
_debarch=i386
|
_debarch=i386
|
||||||
checksum=
|
checksum=719de254edc97fd7caffe410c9c92d11241def6842a2a05e13ebab1408ceee55
|
||||||
fi
|
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"
|
_licenseURL="https://www.palemoon.org/redist.shtml"
|
||||||
|
|
||||||
do_extract() {
|
do_extract() {
|
||||||
ar x ${XBPS_SRCDISDIR}/${pkgname}-${version}/${pkgname}_${version}-${_release}.gtk2_${_debarch}.deb
|
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}_${version}-${_release}.gtk2_${_debarch}.deb
|
||||||
tar xf data.tar.xz
|
tar xf data.tar.xz
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vinstall usr/share/applications/${pkgname}.desktop 0644 \
|
vinstall usr/share/applications/${pkgname}.desktop 0644 \
|
||||||
usr/share/applications
|
usr/share/applications
|
||||||
|
|
||||||
|
# Crear directorio en path falso ($DESTDIR) para el paquete
|
||||||
vmkdir opt
|
vmkdir opt
|
||||||
vmkdir usr/bin
|
vmkdir usr/bin
|
||||||
|
|
||||||
vcopy /usr/lib/palemoon opt
|
# Mover archivos de forma recursiva
|
||||||
|
vcopy usr/lib/palemoon opt
|
||||||
ln -s /opt/palemoon/palemoon "${DESTDIR}/usr/bin/palemoon"
|
ln -s /opt/palemoon/palemoon "${DESTDIR}/usr/bin/palemoon"
|
||||||
|
|
||||||
for res in 16 32 48 128; do
|
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
|
vinstall usr/share/icons/hicolor/${res}x${res}/apps/${pkgname}.png 0644 \
|
||||||
|
usr/share/icons/hicolor/${res}x${res}/apps ${pkgname}.png
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install(){
|
post_install() {
|
||||||
curl ${_licenseURL} | html2text | sed '1,57d' > EULA.md
|
curl ${_licenseURL} | html2text | sed '1,57d' > EULA.md
|
||||||
vlicense EULA.md
|
vlicense EULA.md
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue