xbps-static-custom: actualizado a 21.1_2
Se corrige detección de arquitectura, se añade repositorio predeterminado y se añaden páginas de manual de usuario
This commit is contained in:
parent
6f0507859a
commit
196f1b9b3f
|
@ -0,0 +1,19 @@
|
|||
|
||||
|
||||
Debido a que la mayoría de los usuarios acostumbran a utilizar la versión vinculada dinámicamente, se recomienda crear un enlace dinámico para cada función de XBPS para seguir usándolo de manera habitual. Por ejemplo:
|
||||
|
||||
# ln -s /usr/bin/xbps-install.static /usr/local/bin/xbps-install
|
||||
$ ln -s /usr/bin/xbps-install.static "$HOME"/.local/bin/xbps-install
|
||||
|
||||
Para corregir el problema de la verificación de certificados, realizar cualquiera de las siguientes dos sugerencias:
|
||||
|
||||
# echo "SSL_CA_CERT_FILE=/etc/ssl/certs.pem" >> /etc/profile
|
||||
$ echo "SSL_CA_CERT_FILE=/etc/ssl/certs.pem" >> "$HOME"/.profile
|
||||
|
||||
Una vez hecho lo anterior, reiniciar la sesión para que el cambio tenga efecto.
|
||||
|
||||
NOTA:
|
||||
La primera opción tendrá efecto para todo el sistema y funcionará para todos los usuarios que utilicen el equipo.
|
||||
La segunda opción solo funcionará para la sesión del usuario en curso.
|
||||
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
# Template file for 'xbps-static' xtraeme version
|
||||
pkgname=xbps-static
|
||||
version=21.1
|
||||
revision=2
|
||||
# only musl
|
||||
archs="*-musl"
|
||||
wrksrc="xbps-${version}"
|
||||
build_style=configure
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="libarchive-devel"
|
||||
depends="xbps-triggers"
|
||||
short_desc="XBPS package system utilities - static binaries"
|
||||
maintainer="Tuxliban Torvalds <tenshalito@gmail.com>"
|
||||
license="BSD-2-Clause, BSD-3-Clause, ISC"
|
||||
homepage="https://gitlab.com/xtraeme/xbps/"
|
||||
changelog="${homepage}-/blob/master/NEWS.md"
|
||||
distfiles="${homepage}-/archive/${version}/xbps-${version}.tar.gz"
|
||||
checksum=51a8ab75ece07bea64ea325e2c62314f9477bab06de297e8d3577f0fb4f48578
|
||||
conflicts="xbps-static>=0.59"
|
||||
|
||||
do_configure() {
|
||||
./configure --prefix=/usr --sysconfdir=/etc \
|
||||
--enable-static \
|
||||
--enable-lto
|
||||
}
|
||||
|
||||
do_install() {
|
||||
make DESTDIR=${wrksrc}/static-install install
|
||||
|
||||
# Directorio para la configuración de XBPS
|
||||
vmkdir usr/share/xbps.d
|
||||
|
||||
# Al tratarse de un binario vinculado estáticamente, no tendrá manpages,
|
||||
# por lo tanto, indicaremos explícitamente que sí los incluya
|
||||
vmkdir usr/share/man
|
||||
mv ${wrksrc}/static-install/usr/share/man/* ${DESTDIR}/usr/share/man
|
||||
|
||||
vmkdir usr/bin
|
||||
mv ${wrksrc}/static-install/usr/bin/*.static ${DESTDIR}/usr/bin
|
||||
for _f in /var/db/xbps/keys/* ; do
|
||||
vinstall "$_f" 0644 var/db/xbps/keys/
|
||||
done
|
||||
}
|
||||
|
||||
post_install() {
|
||||
repo="https://alpha.de.repo.voidlinux.org/current"
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
*-musl)
|
||||
# Arquitectura x86_64-musl
|
||||
echo "architecture=${XBPS_MACHINE}" > \
|
||||
${DESTDIR}/usr/share/xbps.d/xbps.conf
|
||||
|
||||
# Repositorio predeterminado
|
||||
echo "repository=${repo}/musl" >> \
|
||||
${DESTDIR}/usr/share/xbps.d/xbps.conf
|
||||
;;
|
||||
x86_64)
|
||||
# Arquitectura x86_64
|
||||
echo "architecture=${XBPS_MACHINE}" > \
|
||||
${DESTDIR}/usr/share/xbps.d/xbps.conf
|
||||
|
||||
# Repositorio predeterminado
|
||||
echo "repository=${repo}" >> \
|
||||
${DESTDIR}/usr/share/xbps.d/xbps.conf
|
||||
esac
|
||||
|
||||
vlicense LICENSE
|
||||
vlicense 3RDPARTY
|
||||
}
|
|
@ -1,39 +0,0 @@
|
|||
# Template file for 'xbps-static'
|
||||
# NOTE: keep this package synchronized with "srcpkgs/xbps"
|
||||
pkgname=xbps-static
|
||||
version=21.1
|
||||
revision=1
|
||||
# only musl
|
||||
archs="*-musl"
|
||||
wrksrc="xbps-${version}"
|
||||
build_style=configure
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="libarchive-devel"
|
||||
depends="xbps-triggers"
|
||||
short_desc="XBPS package system utilities - static binaries"
|
||||
maintainer="Tuxliban Torvalds <tenshalito@gmail.com>"
|
||||
license="BSD-2-Clause, BSD-3-Clause, ISC"
|
||||
homepage="https://gitlab.com/xtraeme/xbps/"
|
||||
changelog="${homepage}/-/blob/master/NEWS.md"
|
||||
distfiles="${homepage}-/archive/${version}/xbps-${version}.tar.gz"
|
||||
checksum=51a8ab75ece07bea64ea325e2c62314f9477bab06de297e8d3577f0fb4f48578
|
||||
|
||||
do_configure() {
|
||||
./configure --prefix=/usr --sysconfdir=/etc \
|
||||
--enable-static \
|
||||
--enable-lto
|
||||
}
|
||||
|
||||
do_install() {
|
||||
make DESTDIR=${wrksrc}/static-install install
|
||||
vmkdir usr/bin
|
||||
mv ${wrksrc}/static-install/usr/bin/*.static ${DESTDIR}/usr/bin
|
||||
for _f in /var/db/xbps/keys/* ; do
|
||||
vinstall "$_f" 0644 var/db/xbps/keys/
|
||||
done
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
vlicense 3RDPARTY
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
# Template file for 'xbps-static'
|
||||
# NOTE: keep this package synchronized with "srcpkgs/xbps"
|
||||
pkgname=xbps-static
|
||||
version=0.59.1
|
||||
revision=5
|
||||
# only musl
|
||||
archs="*-musl"
|
||||
wrksrc="xbps-${version}"
|
||||
build_style=configure
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="libarchive-devel"
|
||||
depends="xbps-triggers"
|
||||
short_desc="XBPS package system utilities - static binaries"
|
||||
maintainer="Tuxliban Torvalds <tenshalito@gmail.com>"
|
||||
license="BSD-2-Clause, BSD-3-Clause, ISC"
|
||||
homepage="https://github.com/void-linux/xbps"
|
||||
changelog="https://github.com/void-linux/xbps/blob/master/NEWS"
|
||||
distfiles="https://github.com/void-linux/xbps/archive/${version}.tar.gz"
|
||||
checksum=0cbd8d5f23a62047c75974bca21da9f004a94efffd7f37c68562a8dbc869fb2a
|
||||
|
||||
do_configure() {
|
||||
./configure --prefix=/usr --sysconfdir=/etc --enable-static --enable-lto
|
||||
}
|
||||
|
||||
do_install() {
|
||||
make DESTDIR=${wrksrc}/static-install install
|
||||
vmkdir usr/bin
|
||||
mv ${wrksrc}/static-install/usr/bin/*.static ${DESTDIR}/usr/bin
|
||||
for _f in /var/db/xbps/keys/* ; do
|
||||
vinstall "$_f" 0644 var/db/xbps/keys/
|
||||
done
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
vlicense LICENSE.3RDPARTY
|
||||
}
|
Loading…
Reference in New Issue