xbps-custom: nuevo paquete v.21.1

Plantilla para arquitecturas i686, x86_64 y x86_64-musl (vinculado dinámicamente)
This commit is contained in:
Tuxliban Torvalds 2022-01-07 04:14:00 -06:00
parent cc7c01f06d
commit 981b5efe13
3 changed files with 70 additions and 0 deletions

View File

@ -0,0 +1,12 @@
case "${ACTION}" in
post)
chown root:xbuilder usr/bin/xbps-uchroot
chmod 4750 usr/bin/xbps-uchroot
if [ -d usr/sbin -a ! -L usr/sbin ]; then
for f in usr/bin/xbps-*; do
ln -sr $f usr/sbin/$(basename $f)
done
fi
;;
esac

View File

@ -0,0 +1,12 @@
To correct the certificate verification problem, do either of the following two suggestions:
# echo "export SSL_CA_CERT_FILE=/etc/ssl/certs.pem" >> /etc/profile
$ echo "export SSL_CA_CERT_FILE=/etc/ssl/certs.pem" >> "$HOME"/.profile
Once you have done the above, restart the session for the change to take effect.
NOTE:
The first option will be effective for the entire system and will work for all users who use the computer.
The second option will only work for the current user session.

View File

@ -0,0 +1,46 @@
# Template file for 'xbps'
pkgname=xbps
version=21.1
revision=3
archs="i686 x86_64 x86_64-musl"
bootstrap=yes
build_style=configure
short_desc="XBPS package system utilities"
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
hostmakedepends="pkgconf"
makedepends="libarchive-devel"
depends="ca-certificates xbps-triggers"
make_dirs="/etc/xbps.d 0755 root root"
do_configure() {
./configure --prefix=/usr \
--sysconfdir=/etc \
--enable-lto
}
pre_build() {
vmkdir usr/share/xbps.d
}
post_install() {
local repo="https://alpha.de.repo.voidlinux.org/current" suffix=
case "$XBPS_TARGET_MACHINE" in
*-musl) suffix="/musl";;
esac
echo "repository=${repo}${suffix}" > \
${DESTDIR}/usr/share/xbps.d/00-repository-main.conf
echo "architecture=${XBPS_TARGET_MACHINE}" > \
${DESTDIR}/usr/share/xbps.d/xbps-arch.conf
vlicense LICENSE
vlicense 3RDPARTY
}