Added multilib, multilib/nonfree and debug repositories by default.
- multilib: to store 32bit packages. - multilib/nonfree: to store nonfree 32bit packages. - debug: to store debug packages.
This commit is contained in:
parent
4d9ed5639f
commit
ea719b3f59
4 changed files with 22 additions and 5 deletions
|
@ -75,7 +75,7 @@ genpkg() {
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg_normal "$sourcepkg: creating $binpkg for repository $pkgdir ...\n"
|
msg_normal "Creating $binpkg for repository $pkgdir ...\n"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Create the XBPS binary package.
|
# Create the XBPS binary package.
|
||||||
|
@ -107,8 +107,6 @@ genpkg() {
|
||||||
rm -f $pkgdir/$binpkg
|
rm -f $pkgdir/$binpkg
|
||||||
msg_error "Failed to created binary package: $binpkg!\n"
|
msg_error "Failed to created binary package: $binpkg!\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg_normal "Created binary package successfully: ${binpkg}\n"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
hook() {
|
hook() {
|
||||||
|
@ -137,6 +135,7 @@ hook() {
|
||||||
|
|
||||||
# Generate -dbg pkg.
|
# Generate -dbg pkg.
|
||||||
if [ -d "${XBPS_DESTDIR}/${XBPS_CROSS_TRIPLET}/${pkgname}-dbg-${version}" ]; then
|
if [ -d "${XBPS_DESTDIR}/${XBPS_CROSS_TRIPLET}/${pkgname}-dbg-${version}" ]; then
|
||||||
|
repo=$XBPS_REPOSITORY/debug
|
||||||
_pkgver=${pkgname}-dbg-${version}_${revision}
|
_pkgver=${pkgname}-dbg-${version}_${revision}
|
||||||
_desc="${short_desc} (debug files)"
|
_desc="${short_desc} (debug files)"
|
||||||
binpkg=${_pkgver}.${arch}.xbps
|
binpkg=${_pkgver}.${arch}.xbps
|
||||||
|
@ -149,6 +148,11 @@ hook() {
|
||||||
fi
|
fi
|
||||||
if [ -d "${XBPS_DESTDIR}/${pkgname}-32bit-${version}" ]; then
|
if [ -d "${XBPS_DESTDIR}/${pkgname}-32bit-${version}" ]; then
|
||||||
unset conf_files provides replaces preserve
|
unset conf_files provides replaces preserve
|
||||||
|
if [ -n "$nonfree" ]; then
|
||||||
|
repo=$XBPS_REPOSITORY/multilib/nonfree
|
||||||
|
else
|
||||||
|
repo=$XBPS_REPOSITORY/multilib
|
||||||
|
fi
|
||||||
_pkgver=${pkgname}-32bit-${version}_${revision}
|
_pkgver=${pkgname}-32bit-${version}_${revision}
|
||||||
_desc="${short_desc} (32bit)"
|
_desc="${short_desc} (32bit)"
|
||||||
binpkg=${_pkgver}.x86_64.xbps
|
binpkg=${_pkgver}.x86_64.xbps
|
||||||
|
|
|
@ -48,7 +48,9 @@ hook() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Register -dbg binpkg if it exists.
|
# Register -dbg binpkg if it exists.
|
||||||
if [ -f ${pkgdir}/${binpkg_dbg} ]; then
|
pkgdir=$XBPS_REPOSITORY/debug
|
||||||
|
PKGDESTDIR="${XBPS_DESTDIR}/${XBPS_CROSS_TRIPLET}/${pkgname}-dbg-${version}"
|
||||||
|
if [ -d ${PKGDESTDIR} -a -f ${pkgdir}/${binpkg_dbg} ]; then
|
||||||
registerpkg ${pkgdir} ${binpkg_dbg}
|
registerpkg ${pkgdir} ${binpkg_dbg}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -56,7 +58,13 @@ hook() {
|
||||||
if [ "$XBPS_TARGET_MACHINE" != "i686" ]; then
|
if [ "$XBPS_TARGET_MACHINE" != "i686" ]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
if [ -f ${pkgdir}/${binpkg32} ]; then
|
if [ -n "$nonfree" ]; then
|
||||||
|
pkgdir=$XBPS_REPOSITORY/multilib/nonfree
|
||||||
|
else
|
||||||
|
pkgdir=$XBPS_REPOSITORY/multilib
|
||||||
|
fi
|
||||||
|
PKGDESTDIR="${XBPS_DESTDIR}/${pkgname}-32bit-${version}"
|
||||||
|
if [ -d ${PKGDESTDIR} -a -f ${pkgdir}/${binpkg32} ]; then
|
||||||
registerpkg ${pkgdir} ${binpkg32} x86_64
|
registerpkg ${pkgdir} ${binpkg32} x86_64
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
# Local repositories
|
# Local repositories
|
||||||
repository=/host/binpkgs
|
repository=/host/binpkgs
|
||||||
repository=/host/binpkgs/nonfree
|
repository=/host/binpkgs/nonfree
|
||||||
|
repository=/host/binpkgs/multilib
|
||||||
|
repository=/host/binpkgs/multilib/nonfree
|
||||||
|
repository=/host/binpkgs/debug
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
# Remote repositories
|
# Remote repositories
|
||||||
repository=http://repo.voidlinux.eu/current
|
repository=http://repo.voidlinux.eu/current
|
||||||
repository=http://repo.voidlinux.eu/current/nonfree
|
repository=http://repo.voidlinux.eu/current/nonfree
|
||||||
|
repository=http://repo.voidlinux.eu/current/multilib
|
||||||
|
repository=http://repo.voidlinux.eu/current/multilib/nonfree
|
||||||
|
|
Loading…
Reference in a new issue