Go to file
Dominik Honnef cdd2ce0da4 add helpers for working with options
Add the helpers vopt_if, vopt_with and vopt_enable that simplify common
option-based operations.

Instead of a bunch of

if [ "$build_option_foo" ]; then
	configure_args+=" --with-foo"
	makedepends+=" foo-devel"
else
	configure_args+=" --without-foo"
fi

one can use

configure_args="... $(vopt_with foo)
makedepends="... $(vopt_if foo foo-devel)"

instead.

We're adding these functions to common/xbps-src/shutils/common.sh but
that might not be the ideal place. I would've preferred
common/helpers/options.sh, but helpers are only available in the
individual phases, not when the template itself gets parsed.
2014-08-30 00:39:46 +02:00
common add helpers for working with options 2014-08-30 00:39:46 +02:00
etc etc/defaults.conf: document XBPS_REPO_DELTAS. 2014-08-14 12:33:11 +02:00
srcpkgs youtube-dl: update to 2014.08.29. 2014-08-29 21:56:21 +02:00
.gitignore xbps-src: use default hostdir if unset; added support for x86 chroots ootb. 2014-04-22 16:01:05 +02:00
COPYING COPYING: mention void, not just 3 names. 2014-04-27 17:54:23 +02:00
Manual.md add helpers for working with options 2014-08-30 00:39:46 +02:00
README.md xbps-src: if etc/conf does not exist fallback to ~/.xbps-src.conf. 2014-07-01 10:40:33 +02:00
xbps-src xbps-src: with -C do not remove wrksrc on SIGINT; found by @chneukirchen. 2014-08-29 21:23:07 +02:00

README.md

The XBPS source packages collection

This repository contains the XBPS source packages collection to build binary packages for the Void Linux distribution.

To start using it first you'll need some external dependencies:

  • bash
  • fakeroot (only required by the bootstrap target)
  • xbps >= 0.37

Make sure your user is added to the xbuilder group to be able to use xbps-uchroot(8), otherwise xbps-src won't work correctly.

The xbps-src utility will allow you to generate XBPS binary packages, type

 $ ./xbps-src -h

to see all available targets/options and start building any available package in the srcpkgs directory.

The etc/defaults.conf file contains the possible settings that can be overrided through the etc/conf configuration file for the xbps-src utility; if that file does not exist, will try to read configuration settings from ~/.xbps-src.conf.

If you want to customize default CFLAGS, CXXFLAGS and LDFLAGS, don't override those defined in etc/defaults.conf, append to them instead via etc/conf i.e:

$ echo 'XBPS_CFLAGS+=" your flags here "' >> etc/conf
$ echo 'XBPS_LDFLAGS+=" your flags here "' >> etc/conf

See Manual for documentation to create and learn about the source packages.