replace nonfree=yes with repository=nonfree.

This way it is possible to set up package specific repositories for
i.e. specific devices.
This commit is contained in:
Enno Boland 2014-11-01 13:10:22 +01:00
parent 95b7f907f4
commit 59cc3e0d45
26 changed files with 42 additions and 42 deletions

View File

@ -3,7 +3,7 @@
## VARIABLES ## VARIABLES
unset -v pkgname version revision short_desc homepage license maintainer unset -v pkgname version revision short_desc homepage license maintainer
unset -v only_for_archs distfiles checksum build_style nonfree nocross broken unset -v only_for_archs distfiles checksum build_style repository nocross broken
unset -v configure_script configure_args wrksrc build_wrksrc create_wrksrc unset -v configure_script configure_args wrksrc build_wrksrc create_wrksrc
unset -v make_cmd make_build_args make_install_args make_build_target make_install_target python_versions unset -v make_cmd make_build_args make_install_args make_build_target make_install_target python_versions
unset -v patch_args disable_parallel_build keep_libtool_archives unset -v patch_args disable_parallel_build keep_libtool_archives

View File

@ -135,8 +135,8 @@ hook() {
binpkg=${pkgver}.${arch}.xbps binpkg=${pkgver}.${arch}.xbps
if [ -n "$nonfree" ]; then if [ -n "$repository" ]; then
repo=$XBPS_REPOSITORY/nonfree repo=$XBPS_REPOSITORY/$repository
else else
repo=$XBPS_REPOSITORY repo=$XBPS_REPOSITORY
fi fi
@ -170,8 +170,8 @@ hook() {
fi fi
if [ -d "${XBPS_DESTDIR}/${pkgname}-32bit-${version}" ]; then if [ -d "${XBPS_DESTDIR}/${pkgname}-32bit-${version}" ]; then
source ${XBPS_COMMONDIR}/environment/setup-subpkg/subpkg.sh source ${XBPS_COMMONDIR}/environment/setup-subpkg/subpkg.sh
if [ -n "$nonfree" ]; then if [ -n "$repository" ]; then
repo=$XBPS_REPOSITORY/multilib/nonfree repo=$XBPS_REPOSITORY/multilib/$repository
else else
repo=$XBPS_REPOSITORY/multilib repo=$XBPS_REPOSITORY/multilib
fi fi

View File

@ -6,7 +6,7 @@
make_debug() { make_debug() {
local dname= fname= dbgfile= local dname= fname= dbgfile=
[ -z "$XBPS_DEBUG_PKGS" -o -n "$disable_debug" -o -n "$nonfree" ] && return 0 [ -z "$XBPS_DEBUG_PKGS" -o -n "$disable_debug" -o "$repository" = "nonfree" ] && return 0
dname=$(echo "$(dirname $1)"|sed -e "s|${PKGDESTDIR}||g") dname=$(echo "$(dirname $1)"|sed -e "s|${PKGDESTDIR}||g")
fname="$(basename $1)" fname="$(basename $1)"
@ -25,7 +25,7 @@ make_debug() {
attach_debug() { attach_debug() {
local dname= fname= dbgfile= local dname= fname= dbgfile=
[ -z "$XBPS_DEBUG_PKGS" -o -n "$disable_debug" -o -n "$nonfree" ] && return 0 [ -z "$XBPS_DEBUG_PKGS" -o -n "$disable_debug" -o "$repository" = "nonfree" ] && return 0
dname=$(echo "$(dirname $1)"|sed -e "s|${PKGDESTDIR}||g") dname=$(echo "$(dirname $1)"|sed -e "s|${PKGDESTDIR}||g")
fname="$(basename $1)" fname="$(basename $1)"
@ -41,7 +41,7 @@ attach_debug() {
create_debug_pkg() { create_debug_pkg() {
local _pkgname= _destdir= local _pkgname= _destdir=
[ -z "$XBPS_DEBUG_PKGS" -o -n "$disable_debug" -o -n "$nonfree" ] && return 0 [ -z "$XBPS_DEBUG_PKGS" -o -n "$disable_debug" -o "$repository" = "nonfree" ] && return 0
[ ! -d "${PKGDESTDIR}/usr/lib/debug" ] && return 0 [ ! -d "${PKGDESTDIR}/usr/lib/debug" ] && return 0
_pkgname="${pkgname}-dbg-${version}" _pkgname="${pkgname}-dbg-${version}"

View File

@ -33,8 +33,8 @@ hook() {
if [ -z "$noarch" -a -z "$XBPS_CROSS_BUILD" -a -n "$XBPS_ARCH" -a "$XBPS_ARCH" != "$XBPS_TARGET_MACHINE" ]; then if [ -z "$noarch" -a -z "$XBPS_CROSS_BUILD" -a -n "$XBPS_ARCH" -a "$XBPS_ARCH" != "$XBPS_TARGET_MACHINE" ]; then
arch=${XBPS_ARCH} arch=${XBPS_ARCH}
fi fi
if [ -n "$nonfree" ]; then if [ -n "$repository" ]; then
pkgdir=$XBPS_REPOSITORY/nonfree pkgdir=$XBPS_REPOSITORY/$repository
else else
pkgdir=$XBPS_REPOSITORY pkgdir=$XBPS_REPOSITORY
fi fi
@ -58,8 +58,8 @@ hook() {
if [ "$XBPS_TARGET_MACHINE" != "i686" ]; then if [ "$XBPS_TARGET_MACHINE" != "i686" ]; then
return return
fi fi
if [ -n "$nonfree" ]; then if [ -n "$repository" ]; then
pkgdir=$XBPS_REPOSITORY/multilib/nonfree pkgdir=$XBPS_REPOSITORY/multilib/$repository
else else
pkgdir=$XBPS_REPOSITORY/multilib pkgdir=$XBPS_REPOSITORY/multilib
fi fi

View File

@ -320,7 +320,7 @@ setup_pkg() {
fi fi
# For nonfree/bootstrap pkgs there's no point in building -dbg pkgs, disable them. # For nonfree/bootstrap pkgs there's no point in building -dbg pkgs, disable them.
if [ -z "$XBPS_DEBUG_PKGS" -o -n "$nonfree" -o -n "$bootstrap" ]; then if [ -z "$XBPS_DEBUG_PKGS" -o -n "$repository" = "nonfree" -o -n "$bootstrap" ]; then
disable_debug=yes disable_debug=yes
fi fi
# If a package sets force_debug_pkgs, always build -dbg pkgs. # If a package sets force_debug_pkgs, always build -dbg pkgs.

View File

@ -20,7 +20,7 @@ short_desc="Adobe Flash Player plugin for Netscape compatible browsers"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.adobe.com" homepage="http://www.adobe.com"
license="Adobe License (non free)" license="Adobe License (non free)"
nonfree="yes" repository="nonfree"
depends="curl hicolor-icon-theme desktop-file-utils" depends="curl hicolor-icon-theme desktop-file-utils"
create_wrksrc=yes create_wrksrc=yes

View File

@ -8,7 +8,7 @@ license="Proprietary Broadcom license"
homepage="http://broadcom.com" homepage="http://broadcom.com"
only_for_archs="i686 x86_64" only_for_archs="i686 x86_64"
nonfree=yes repository="nonfree"
create_wrksrc=yes create_wrksrc=yes
short_desc="Broadcom proprietary wireless drivers for Linux - DKMS kernel module" short_desc="Broadcom proprietary wireless drivers for Linux - DKMS kernel module"

View File

@ -15,7 +15,7 @@ conflicts="nvidia>=0"
provides="libGL-${version}_${revision}" provides="libGL-${version}_${revision}"
replaces="libGL>=0" replaces="libGL>=0"
short_desc="${_desc} - Libraries and Utilities" short_desc="${_desc} - Libraries and Utilities"
nonfree=yes repository="nonfree"
create_wrksrc=yes create_wrksrc=yes
update_pkgname="fglrx-installer" update_pkgname="fglrx-installer"
@ -105,7 +105,7 @@ catalyst-dkms_package() {
triggers="dkms" triggers="dkms"
depends="dkms" depends="dkms"
dkms_modules="fglrx ${version}_${revision}" dkms_modules="fglrx ${version}_${revision}"
nonfree=yes repository="nonfree"
pkg_install() { pkg_install() {
local _fglrx=fglrx-${version}_${revision} local _fglrx=fglrx-${version}_${revision}
@ -132,7 +132,7 @@ catalyst-dkms_package() {
catalyst-opencl_package() { catalyst-opencl_package() {
short_desc="${_desc} - OpenCL implementation" short_desc="${_desc} - OpenCL implementation"
depends="libOpenCL" depends="libOpenCL"
nonfree=yes repository="nonfree"
pkg_install() { pkg_install() {
cd ${wrksrc}/arch/${_ARCHDIR} cd ${wrksrc}/arch/${_ARCHDIR}

View File

@ -10,7 +10,7 @@ maintainer="Enno Boland <eb@s01.de>"
homepage="http://www.google.com/chrome" homepage="http://www.google.com/chrome"
license="chrome" license="chrome"
lib32disabled=yes lib32disabled=yes
nonfree=yes repository="nonfree"
only_for_archs="i686 x86_64" only_for_archs="i686 x86_64"
depends="chromium binutils" depends="chromium binutils"
create_wrksrc=yes create_wrksrc=yes

View File

@ -13,7 +13,7 @@ checksum=2f90dff20f2d3c0c47f17b3d6d45c4f0e7d27b986bf6084f21b85180cd1e03b4
# 32bit package for x86_64 built on x86 :-) # 32bit package for x86_64 built on x86 :-)
only_for_archs="i686" only_for_archs="i686"
nonfree="yes" repository="nonfree"
nostrip="yes" nostrip="yes"
create_wrksrc=yes create_wrksrc=yes

View File

@ -3,7 +3,7 @@ pkgname=foomatic-db-nonfree
version=20140930 version=20140930
revision=1 revision=1
noarch=yes noarch=yes
nonfree=yes repository="nonfree"
build_style=gnu-configure build_style=gnu-configure
short_desc="OpenPrinting printer support - nonfree database" short_desc="OpenPrinting printer support - nonfree database"
homepage="http://www.linuxfoundation.org/collaborate/workgroups/openprinting/databasefoomatic" homepage="http://www.linuxfoundation.org/collaborate/workgroups/openprinting/databasefoomatic"

View File

@ -2,7 +2,7 @@
pkgname=minecraft pkgname=minecraft
version=0.5 version=0.5
revision=1 revision=1
nonfree="yes" repository="nonfree"
noarch="yes" noarch="yes"
depends="wmname wget" depends="wmname wget"
short_desc="Launcher for the famous Minecraft game" short_desc="Launcher for the famous Minecraft game"

View File

@ -10,7 +10,7 @@ license="Propietary NVIDIA license"
homepage="http://www.nvidia.com" homepage="http://www.nvidia.com"
only_for_archs="i686 x86_64" only_for_archs="i686 x86_64"
nonfree=yes repository="nonfree"
create_wrksrc=yes create_wrksrc=yes
short_desc="${_desc} - Libraries and Utilities" short_desc="${_desc} - Libraries and Utilities"
depends="virtual?xserver-abi-video<19 nvidia-stable-dkms-${version}_${revision} pkg-config" depends="virtual?xserver-abi-video<19 nvidia-stable-dkms-${version}_${revision} pkg-config"
@ -161,7 +161,7 @@ nvidia-stable-dkms_package() {
depends="dkms" depends="dkms"
provides="nvidia-dkms-${version}_${revision}" provides="nvidia-dkms-${version}_${revision}"
replaces="nvidia-dkms>=0" replaces="nvidia-dkms>=0"
nonfree=yes repository="nonfree"
pkg_install() { pkg_install() {
vmove usr/src vmove usr/src
vmove usr/lib/modules-load.d vmove usr/lib/modules-load.d
@ -174,7 +174,7 @@ nvidia-stable-opencl_package() {
provides="nvidia-opencl-${version}_${revision}" provides="nvidia-opencl-${version}_${revision}"
replaces="nvidia-opencl>=0" replaces="nvidia-opencl>=0"
depends="libOpenCL" depends="libOpenCL"
nonfree=yes repository="nonfree"
pkg_install() { pkg_install() {
vmove "usr/lib/libnvidia-compiler*" vmove "usr/lib/libnvidia-compiler*"
vmove "usr/lib/libnvidia-opencl*" vmove "usr/lib/libnvidia-opencl*"

View File

@ -10,7 +10,7 @@ license="Propietary NVIDIA license"
homepage="http://www.nvidia.com" homepage="http://www.nvidia.com"
only_for_archs="i686 x86_64" only_for_archs="i686 x86_64"
nonfree=yes repository="nonfree"
create_wrksrc=yes create_wrksrc=yes
short_desc="${_desc} - Libraries and Utilities" short_desc="${_desc} - Libraries and Utilities"
depends="virtual?xserver-abi-video<19 nvidia-dkms-${version}_${revision} pkg-config" depends="virtual?xserver-abi-video<19 nvidia-dkms-${version}_${revision} pkg-config"
@ -159,7 +159,7 @@ nvidia-dkms_package() {
triggers="dkms" triggers="dkms"
dkms_modules="nvidia ${version}" dkms_modules="nvidia ${version}"
depends="dkms" depends="dkms"
nonfree=yes repository="nonfree"
pkg_install() { pkg_install() {
vmove usr/src vmove usr/src
vmove usr/lib/modules-load.d vmove usr/lib/modules-load.d
@ -170,7 +170,7 @@ nvidia-dkms_package() {
nvidia-opencl_package() { nvidia-opencl_package() {
short_desc="${_desc} - OpenCL implementation" short_desc="${_desc} - OpenCL implementation"
depends="libOpenCL" depends="libOpenCL"
nonfree=yes repository="nonfree"
pkg_install() { pkg_install() {
vmove "usr/lib/libnvidia-compiler*" vmove "usr/lib/libnvidia-compiler*"
vmove "usr/lib/libnvidia-opencl*" vmove "usr/lib/libnvidia-opencl*"

View File

@ -8,7 +8,7 @@ maintainer="Juan RP <xtraeme@gmail.com>"
license="Propietary NVIDIA license" license="Propietary NVIDIA license"
homepage="http://www.nvidia.com" homepage="http://www.nvidia.com"
nonfree=yes repository="nonfree"
create_wrksrc=yes create_wrksrc=yes
only_for_archs="i686 x86_64" only_for_archs="i686 x86_64"
short_desc="${_desc} - Libraries and Utilities" short_desc="${_desc} - Libraries and Utilities"
@ -151,7 +151,7 @@ nvidia304-dkms_package() {
dkms_modules="nvidia ${version}" dkms_modules="nvidia ${version}"
provides="nvidia-dkms-${version}_${revision}" provides="nvidia-dkms-${version}_${revision}"
replaces="nvidia-dkms>=0" replaces="nvidia-dkms>=0"
nonfree=yes repository="nonfree"
pkg_install() { pkg_install() {
vmove usr/src vmove usr/src
vmove usr/lib/modules-load.d vmove usr/lib/modules-load.d
@ -164,7 +164,7 @@ nvidia304-opencl_package() {
provides="nvidia-opencl-${version}_${revision}" provides="nvidia-opencl-${version}_${revision}"
replaces="nvidia-openctl>=0" replaces="nvidia-openctl>=0"
depends="libOpenCL" depends="libOpenCL"
nonfree=yes repository="nonfree"
pkg_install() { pkg_install() {
vmove "usr/lib/libnvidia-compiler*" vmove "usr/lib/libnvidia-compiler*"
vmove "usr/lib/libnvidia-opencl*" vmove "usr/lib/libnvidia-opencl*"

View File

@ -10,7 +10,7 @@ maintainer="Enno Boland <eb@s01.de>"
homepage="http://www.oracle.com/technetwork/java/javase/downloads/index.html" homepage="http://www.oracle.com/technetwork/java/javase/downloads/index.html"
license="oracle" license="oracle"
lib32disabled=yes lib32disabled=yes
nonfree=yes repository="nonfree"
only_for_archs="armv7l armv6l" only_for_archs="armv7l armv6l"
depends="hicolor-icon-theme desktop-file-utils xdg-utils shared-mime-info wget" depends="hicolor-icon-theme desktop-file-utils xdg-utils shared-mime-info wget"
hostmakedepends="wget" hostmakedepends="wget"

View File

@ -10,7 +10,7 @@ maintainer="Enno Boland <eb@s01.de>"
homepage="http://www.oracle.com/technetwork/java/javase/downloads/index.html" homepage="http://www.oracle.com/technetwork/java/javase/downloads/index.html"
license="oracle" license="oracle"
lib32disabled=yes lib32disabled=yes
nonfree=yes repository="nonfree"
only_for_archs="i686 x86_64" only_for_archs="i686 x86_64"
depends="hicolor-icon-theme desktop-file-utils xdg-utils shared-mime-info wget" depends="hicolor-icon-theme desktop-file-utils xdg-utils shared-mime-info wget"
hostmakedepends="wget" hostmakedepends="wget"

View File

@ -9,7 +9,7 @@ maintainer="Enno Boland <eb@s01.de>"
homepage="http://www.oracle.com/technetwork/java/javase/downloads/index.html" homepage="http://www.oracle.com/technetwork/java/javase/downloads/index.html"
license="oracle" license="oracle"
lib32disabled=yes lib32disabled=yes
nonfree=yes repository="nonfree"
only_for_archs="i686 x86_64" only_for_archs="i686 x86_64"
depends="hicolor-icon-theme desktop-file-utils xdg-utils shared-mime-info wget" depends="hicolor-icon-theme desktop-file-utils xdg-utils shared-mime-info wget"
hostmakedepends="wget" hostmakedepends="wget"

View File

@ -13,7 +13,7 @@ checksum=9203b387b1a4075a1b9ad1eb7be32b49a88141a448d9330d9cbe1f40a145bd6a
# 32bit package for x86_64 built on x86 :-) # 32bit package for x86_64 built on x86 :-)
only_for_archs="i686" only_for_archs="i686"
nonfree="yes" repository="nonfree"
nostrip="yes" nostrip="yes"
create_wrksrc=yes create_wrksrc=yes

View File

@ -15,7 +15,7 @@ checksum=2f0adeec277e15e93ba3abc653b2220182e51a1eeea344c97e05d5d050a10649
hostmakedepends="which unzip perl pkg-config python automoc4" hostmakedepends="which unzip perl pkg-config python automoc4"
makedepends="SDL_ttf-devel fontconfig-devel libXinerama-devel qt-devel alsa-lib-devel" makedepends="SDL_ttf-devel fontconfig-devel libXinerama-devel qt-devel alsa-lib-devel"
depends="liberation-fonts-ttf" depends="liberation-fonts-ttf"
nonfree=yes repository="nonfree"
nocross=yes nocross=yes
do_extract() { do_extract() {

View File

@ -11,7 +11,7 @@ distfiles="http://download.skype.com/linux/${pkgname}-${version}.tar.bz2"
checksum=8c99dc3978a588fb13303df7c8134379fb55b8dd460efefbc79ae594269b892d checksum=8c99dc3978a588fb13303df7c8134379fb55b8dd460efefbc79ae594269b892d
only_for_archs="i686" only_for_archs="i686"
nonfree="yes" repository="nonfree"
nostrip="yes" nostrip="yes"
makedepends="qt>=4.8.4_4 hicolor-icon-theme>=0" makedepends="qt>=4.8.4_4 hicolor-icon-theme>=0"

View File

@ -7,7 +7,7 @@ version=1.0.0.49
revision=1 revision=1
wrksrc=steam wrksrc=steam
depends="curl dbus freetype gdk-pixbuf hicolor-icon-theme desktop-file-utils liberation-fonts-ttf" depends="curl dbus freetype gdk-pixbuf hicolor-icon-theme desktop-file-utils liberation-fonts-ttf"
nonfree="yes" repository="nonfree"
short_desc="Digital distribution client bootstrap package - Valve's steam client" short_desc="Digital distribution client bootstrap package - Valve's steam client"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
license="Propietary license" license="Propietary license"

View File

@ -15,7 +15,7 @@ homepage="http://www.sublimetext.com/3dev"
license="Propietary" license="Propietary"
short_desc="Sophisticated text editor for code, markup and prose" short_desc="Sophisticated text editor for code, markup and prose"
nonfree="yes" repository="nonfree"
only_for_archs="i686 x86_64" only_for_archs="i686 x86_64"
wrksrc="sublime_text_3" wrksrc="sublime_text_3"

View File

@ -3,7 +3,7 @@ pkgname=unrar
version=5.2.2 version=5.2.2
revision=1 revision=1
wrksrc=unrar wrksrc=unrar
nonfree=yes repository="nonfree"
homepage="http://www.rarlab.com/rar" homepage="http://www.rarlab.com/rar"
update_pkgname=unrarsrc update_pkgname=unrarsrc
update_site="http://www.rarlab.com/rar_add.htm" update_site="http://www.rarlab.com/rar_add.htm"

View File

@ -2,7 +2,7 @@
pkgname=wineasio pkgname=wineasio
version=0.9.2 version=0.9.2
revision=5 revision=5
nonfree=yes repository="nonfree"
only_for_archs=i686 only_for_archs=i686
wrksrc=${pkgname} wrksrc=${pkgname}
homepage="http://sourceforge.net/projects/wineasio" homepage="http://sourceforge.net/projects/wineasio"

View File

@ -9,7 +9,7 @@ maintainer="John Galt <johngaltfirstrun@gmail.com>"
license="Proprietary AMD license" license="Proprietary AMD license"
homepage="http://www.amd.com" homepage="http://www.amd.com"
only_for_archs="i686 x86_64" only_for_archs="i686 x86_64"
nonfree=yes repository="nonfree"
distfiles="https://launchpad.net/ubuntu/+archive/primary/+files/xvba-video_0.7.8.orig.tar.gz" distfiles="https://launchpad.net/ubuntu/+archive/primary/+files/xvba-video_0.7.8.orig.tar.gz"
checksum=e4bea33edaf73b1c164f76295ac77fc1fb9f4c4a8269fc756937f00454bfd50f checksum=e4bea33edaf73b1c164f76295ac77fc1fb9f4c4a8269fc756937f00454bfd50f