Merged master branch.

This commit is contained in:
Juan RP 2014-02-02 09:34:38 +01:00
parent c28097ca28
commit 957c991dcc
1948 changed files with 24145 additions and 17791 deletions

45
COPYING
View File

@ -1,23 +1,22 @@
/* Copyright (c) 2008-2013 The XBPS developers and contributors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
Copyright (c) 2008-2014 The XBPS developers and contributors.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

12
common/build_style/README Normal file
View File

@ -0,0 +1,12 @@
BUILD STYLES
============
These shell snippets provide support for multiple build systems, i.e GNU configure,
CMake, etc. A build style file must provide at least the following functions:
- do_configure
- do_build
- do_install
If a source package defines its own do_xxx() function, the function defined in
the build style file is simply ignored.

View File

@ -0,0 +1,45 @@
#
# This helper is for templates using cmake.
#
do_configure() {
[ ! -d build ] && mkdir build
cd build
if [ "$CROSS_BUILD" ]; then
cat > cross_${XBPS_CROSS_TRIPLET}.cmake <<_EOF
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_C_COMPILER ${XBPS_CROSS_TRIPLET}-gcc)
SET(CMAKE_CXX_COMPILER ${XBPS_CROSS_TRIPLET}-g++)
SET(CMAKE_CROSSCOMPILING TRUE)
SET(CMAKE_FIND_ROOT_PATH ${XBPS_CROSS_BASE})
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
_EOF
configure_args+=" -DCMAKE_TOOLCHAIN_FILE=cross_${XBPS_CROSS_TRIPLET}.cmake"
fi
configure_args+=" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_RPATH=ON"
cmake ${configure_args} ..
}
do_build() {
: ${make_cmd:=make}
cd build
${make_cmd} ${makejobs} ${make_build_args} ${make_build_target}
}
do_install() {
: ${make_cmd:=make}
: ${make_install_target:=install}
make_install_args+=" DESTDIR=${DESTDIR}"
cd build
${make_cmd} ${make_install_args} ${make_install_target}
}

View File

@ -0,0 +1,24 @@
#
# This helper is for templates using configure scripts (not generated
# by the GNU autotools).
#
do_configure() {
: ${configure_script:=./configure}
${configure_script} ${configure_args}
}
do_build() {
: ${make_cmd:=make}
${make_cmd} ${makejobs} ${make_build_args} ${make_build_target}
}
do_install() {
: ${make_cmd:=make}
: ${make_install_target:=install}
make_install_args+=" DESTDIR=${DESTDIR}"
${make_cmd} ${make_install_args} ${make_install_target}
}

View File

@ -0,0 +1,33 @@
#
# This helper is for templates using GNU configure scripts.
#
do_configure() {
: ${configure_script:=./configure}
# Make sure that shared libraries are built with --as-needed.
#
# http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html
if [ -z "$broken_as_needed" ]; then
sed -i "s/^\([ \t]*tmp_sharedflag\)='-shared'/\1='-shared -Wl,--as-needed'/" ${configure_script}
fi
# Automatically detect musl toolchains.
for f in $(find ${wrksrc} -type f -name *config*.sub); do
cp -f ${XBPS_CROSSPFDIR}/config.sub ${f}
done
${configure_script} ${configure_args}
}
do_build() {
: ${make_cmd:=make}
${make_cmd} ${makejobs} ${make_build_args} ${make_build_target}
}
do_install() {
: ${make_cmd:=make}
: ${make_install_target:=install}
make_install_args+=" DESTDIR=${DESTDIR}"
${make_cmd} ${make_install_args} ${make_install_target}
}

View File

@ -0,0 +1,20 @@
#
# This helper is for templates using GNU Makefiles.
#
do_build() {
: ${make_cmd:=make}
${make_cmd} \
CC="$CC" CXX="$CXX" LD="$LD" AR="$AR" RANLIB="$RANLIB" \
CPP="$CPP" AS="$AS" OBJDUMP="$OBJDUMP" STRIP="$STRIP" \
${makejobs} ${make_build_args} ${make_build_target}
}
do_install() {
: ${make_cmd:=make}
: ${make_install_target:=install}
make_install_args+=" PREFIX=/usr DESTDIR=${DESTDIR}"
${make_cmd} ${make_install_args} ${make_install_target}
}

View File

@ -0,0 +1,13 @@
# meta pkg build style; do nothing.
do_fetch() {
:
}
do_extract() {
:
}
do_install() {
:
}

View File

@ -0,0 +1,32 @@
#
# This helper does the required steps to be able to build and install
# perl modules with the Module::Build method into the correct location.
#
# Required vars to be set by a template:
#
# build_style=perl-ModuleBuild
#
do_configure() {
if [ -f Build.PL ]; then
PERL_MM_USE_DEFAULT=1 PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$DESTDIR'" \
PERL_MB_OPT="--installdirs vendor --destdir '$DESTDIR'" \
LD="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
perl Build.PL ${configure_args} INSTALLDIRS=vendor
else
msg_error "$pkgver: cannot find Build.PL for perl module!\n"
fi
}
do_build() {
if [ ! -x ./Build ]; then
msg_error "$pkgver: cannot find ./Build script!\n"
fi
LD="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" ./Build ${make_build_args}
}
do_install() {
if [ ! -x ./Build ]; then
msg_error "$pkgver: cannot find ./Build script!\n"
fi
./Build ${make_install_args} install
}

View File

@ -0,0 +1,64 @@
#
# This helper does the required steps to be able to build and install
# perl modules that use MakeMaker into the correct location.
#
# Required vars to be set by a template:
#
# build_style=perl-module
#
# Optionally if the module needs more directories to be configured other
# than $XBPS_BUILDDIR/$wrksrc, one can use (relative to $wrksrc):
#
# perl_configure_dirs="blob/bob foo/blah"
#
do_configure() {
local perlmkf
if [ -z "$perl_configure_dirs" ]; then
perlmkf="$wrksrc/Makefile.PL"
if [ ! -f $perlmkf ]; then
msg_error "*** ERROR couldn't find $perlmkf, aborting ***\n"
fi
cd $wrksrc
PERL_MM_USE_DEFAULT=1 GCC="$CC" CC="$CC" LD="$CC" \
OPTIMIZE="$CFLAGS" \
CFLAGS="$CFLAGS -I${XBPS_CROSS_BASE}/usr/include" \
LDFLAGS="$LDFLAGS -L${XBPS_CROSS_BASE}/usr/lib" \
LDDLFLAGS="-shared $CFLAGS -L${XBPS_CROSS_BASE}/usr/lib" \
perl Makefile.PL ${configure_args} INSTALLDIRS=vendor
fi
for i in "$perl_configure_dirs"; do
perlmkf="$wrksrc/$i/Makefile.PL"
if [ -f $perlmkf ]; then
cd $wrksrc/$i
PERL_MM_USE_DEFAULT=1 GCC="$CC" CC="$CC" LD="$CC" \
OPTIMIZE="$CFLAGS" \
CFLAGS="$CFLAGS -I${XBPS_CROSS_BASE}/usr/include" \
LDFLAGS="$LDFLAGS -L${XBPS_CROSS_BASE}/usr/lib" \
LDDLFLAGS="-shared $CFLAGS -L${XBPS_CROSS_BASE}/usr/lib" \
perl Makefile.PL ${make_build_args} INSTALLDIRS=vendor
else
msg_error "*** ERROR: couldn't find $perlmkf, aborting **\n"
fi
done
}
do_build() {
: ${make_cmd:=make}
${make_cmd} CC="$CC" LD="$CC" CFLAGS="$CFLAGS" OPTIMIZE="$CFLAGS" \
LDFLAGS="$LDFLAGS -L${XBPS_CROSS_BASE}/usr/lib" \
LDDLFLAGS="-shared $CFLAGS -L${XBPS_CROSS_BASE}/usr/lib" \
${makejobs} ${make_build_args} ${make_build_target}
}
do_install() {
: ${make_cmd:=make}
: ${make_install_target:=install}
make_install_args+=" DESTDIR=${DESTDIR}"
${make_cmd} ${make_install_args} ${make_install_target}
}

View File

@ -0,0 +1,36 @@
#
# This helper is for templates installing python modules.
#
XBPS_PYVER="2.7" # currently 2.7 is the default python
do_build() {
if [ -n "$CROSS_BUILD" ]; then
CC="${XBPS_CROSS_TRIPLET}-gcc -pthread"
LDSHARED="${CC} -shared"
PYPREFIX="$XBPS_CROSS_BASE"
CFLAGS="$CFLAGS -I${XBPS_CROSS_BASE}/include/python${XBPS_PYVER} -I${XBPS_CROSS_BASE}/usr/include"
LDFLAGS="$LDFLAGS -L${XBPS_CROSS_BASE}/lib/python${XBPS_PYVER} -L${XBPS_CROSS_BASE}/lib"
env CC="$CC" LDSHARED="$LDSHARED" \
PYPREFIX="$PYPREFIX" CFLAGS="$CFLAGS" \
LDFLAGS="$LDFLAGS" python setup.py build ${make_build_args}
else
python setup.py build ${make_build_args}
fi
}
do_install() {
make_install_args+=" --prefix=/usr --root=$DESTDIR"
if [ -n "$CROSS_BUILD" ]; then
CC="${XBPS_CROSS_TRIPLET}-gcc -pthread"
LDSHARED="${CC} -shared"
PYPREFIX="$XBPS_CROSS_BASE"
CFLAGS="$CFLAGS -I${XBPS_CROSS_BASE}/include/python${XBPS_PYVER} -I${XBPS_CROSS_BASE}/usr/include"
LDFLAGS="$LDFLAGS -L${XBPS_CROSS_BASE}/lib/python${XBPS_PYVER} -L${XBPS_CROSS_BASE}/lib"
env CC="$CC" LDSHARED="$LDSHARED" \
PYPREFIX="$PYPREFIX" CFLAGS="$CFLAGS" \
LDFLAGS="$LDFLAGS" python setup.py install ${make_install_args}
else
python setup.py install ${make_install_args}
fi
}

16
common/build_style/waf.sh Normal file
View File

@ -0,0 +1,16 @@
#
# This helper is for templates using WAF to build/install.
#
do_configure() {
python waf configure --prefix=/usr ${configure_args}
}
do_build() {
python waf build ${make_build_args}
}
do_install() {
make_install_args+=" --destdir=${DESTDIR}"
python waf install ${make_install_args}
}

View File

@ -0,0 +1,16 @@
#
# This helper is for templates using WAF with python3 to build/install.
#
do_configure() {
PYTHON=python3 python3 waf configure --prefix=/usr ${configure_args}
}
do_build() {
PYTHON=python3 python3 waf build ${make_build_args}
}
do_install() {
make_install_args+=" --destdir=$DESTDIR"
PYTHON=python3 python3 waf install ${make_install_args}
}

View File

@ -0,0 +1,14 @@
CROSS PROFILES
==============
This directory contains cross profiles to allow cross compilation for the specified target.
A cross profile file must provide the following variables:
- XBPS_TARGET_ARCH (as returned by uname -m)
- XBPS_CROSS_TRIPLET (the cross compiler triplet)
- XBPS_CFLAGS (C compiler flags for host compiler)
- XBPS_CXXFLAGS (C++ compiler flags for the host compiler)
- XBPS_CROSS_CFLAGS (C compiler flags for the cross compiler)
- XBPS_CROSS_CXXFLAGS (C++ compiler flags for the cross compiler)
A source package matching `cross-${XBPS_CROSS_TRIPLET}' must also exist.

View File

@ -0,0 +1,8 @@
# Cross build profile for ARM EABI5 Hard Float and Musl libc.
XBPS_TARGET_ARCH="armv6l-musl"
XBPS_CROSS_TRIPLET="arm-linux-musleabi"
XBPS_CFLAGS="-O2 -pipe"
XBPS_CXXFLAGS="$XBPS_CFLAGS"
XBPS_CROSS_CFLAGS="-march=armv6 -mfpu=vfp -mfloat-abi=hard"
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"

View File

@ -0,0 +1,8 @@
# Cross build profile for ARM GNU EABI5 Hard Float.
XBPS_TARGET_ARCH="armv6l"
XBPS_CROSS_TRIPLET="arm-linux-gnueabihf"
XBPS_CFLAGS="-O2 -pipe"
XBPS_CXXFLAGS="$XBPS_CFLAGS"
XBPS_CROSS_CFLAGS="-march=armv6 -mfpu=vfp -mfloat-abi=hard"
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"

View File

@ -0,0 +1,8 @@
# Cross build profile for ARMv7 GNU EABI Hard Float.
XBPS_TARGET_ARCH="armv7l"
XBPS_CROSS_TRIPLET="arm-linux-gnueabihf7"
XBPS_CFLAGS="-O2 -pipe"
XBPS_CXXFLAGS="$XBPS_CFLAGS"
XBPS_CROSS_CFLAGS="-march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard"
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"

1762
common/cross-profiles/config.sub vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,8 @@
# Cross build profile for i686 and Musl libc.
XBPS_TARGET_ARCH="i686-musl"
XBPS_CROSS_TRIPLET="i686-linux-musl"
XBPS_CFLAGS="-O2 -pipe"
XBPS_CXXFLAGS="$XBPS_CFLAGS"
XBPS_CROSS_CFLAGS="-march=i686"
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"

View File

@ -0,0 +1,8 @@
# Cross build profile for i686 GNU.
XBPS_TARGET_ARCH="i686"
XBPS_CROSS_TRIPLET="i686-pc-linux-gnu"
XBPS_CFLAGS="-O2 -pipe"
XBPS_CXXFLAGS="$XBPS_CFLAGS"
XBPS_CROSS_CFLAGS="-march=i686 -mtune=generic"
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"

View File

@ -0,0 +1,8 @@
# Cross build profile for MIPS BE soft float.
XBPS_TARGET_ARCH="mips"
XBPS_CROSS_TRIPLET="mips-softfloat-linux-gnu"
XBPS_CFLAGS="-O2 -pipe"
XBPS_CXXFLAGS="$XBPS_CFLAGS"
XBPS_CROSS_CFLAGS="-mtune=mips32r2 -mabi=32 -msoft-float"
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"

View File

@ -0,0 +1,8 @@
# Cross build profile for MIPS LE soft float.
XBPS_TARGET_ARCH="mipsel"
XBPS_CROSS_TRIPLET="mipsel-softfloat-linux-gnu"
XBPS_CFLAGS="-O2 -pipe"
XBPS_CXXFLAGS="$XBPS_CFLAGS"
XBPS_CROSS_CFLAGS="-mtune=mips32r2 -mabi=32 -msoft-float"
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"

View File

@ -0,0 +1,179 @@
#!/bin/sh
empty_file() {
rm -f "$1"
touch "$1"
}
dir="$1"
# fix files breaking the build entirely
for i in fseeko.c freadahead.c fseterr.c ; do empty_file "$dir"/$i ; done
echo "void close_stdin(void) {}" > "$dir"/closein.c
# fix stuff trying to reimplement libc
culprits=`cat << EOF
accept4
acosl
alloca
alphasort
asinl
asprintf
atanl
atexit
atoll
bcopy
btowc
chown
closedir
cosl
dirfd
dprintf
dup2
dup3
_Exit
expl
fchdir
fchown-stub
fdatasync
fdopendir
ffs
flock
fnmatch
forkpty
fpending
fprintf
freeaddrinfo
fsync
ftell
ftruncate
futimens
gai_strerror
getaddrinfo
getdelim
getdtablesize
getgroups
gethostname
getline
getlogin
getlogin_r
getnameinfo
getpagesize
getpass
getsubopt
gettimeofday
getusershell
gmtime_r
grantpt
imaxabs
imaxdiv
inet_ntop
inet_pton
isblank
iswblank
lchmod
lchown
ldexp
ldexpl
link
linkat
logl
mbrlen
mbrtowc
mbsinit
memmove
mempcpy
mkdtemp
mkfifo
mkfifoat
mknod
mknodat
mkstemp
mktime
nanosleep
nl_langinfo
open
openat
opendir
openpty
pclose
perror
pipe
pipe2
poll
popen
pread
pselect
ptsname
pwrite
raise
readdir
readlink
renameat
rewinddir
setenv
sigaction
sigaddset
sigdelset
sigemptyset
sigfillset
sigismember
sigpending
sigprocmask
sinl
snprintf
spawnattr_destroy
spawnattr_getdefault
spawnattr_getflags
spawnattr_getpgroup
spawnattr_getsigmask
spawnattr_init
spawnattr_setdefault.c
spawnattr_setflags
spawnattr_setpgroup
spawnattr_setsigmask
spawn_faction_addclose
spawn_faction_adddup2
spawn_faction_addopen
spawn_faction_destroy
spawn_faction_init
spawn_factions_addopen
spawn_factions_destroy
spawn_factions_init
sprintf
sqrtl
stdio-read
stdio-write
strcasecmp
strcasestr
strchrnul
strcspn
strncasecmp
strndup
strnlen
strpbrk
strsep
strsignal
strstr
strtod
strtoimax
strtol
symlink
symlinkat
tanl
tcgetsid
timegm
time_r
times
tmpfile
uname
unlockpt
unsetenv
usleep
vasprintf
vdprintf
waitpid
wcrtomb
wctob
EOF
`
#fixme check fsusage
for i in $culprits ; do empty_file "$dir"/$i.c ; done

View File

@ -0,0 +1,8 @@
# Cross build profile for x86_64 and Musl libc.
XBPS_TARGET_ARCH="x86_64-musl"
XBPS_CROSS_TRIPLET="x86_64-linux-musl"
XBPS_CFLAGS="-O2 -pipe"
XBPS_CXXFLAGS="$XBPS_CFLAGS"
XBPS_CROSS_CFLAGS="-mtune=generic"
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"

View File

@ -0,0 +1,16 @@
# -*- shell mode -*-
#
# Sets the minimal required xbps versions to build packages.
#
# =========================================================
# DO NOT MODIFY THIS FILE WITHOUT PRIOR WRITTEN PERMISSION!
# =========================================================
#
# xbps-src version.
export XBPS_SRC_REQ=100
# XBPS utils version.
export XBPS_UTILS_REQ=0.29
# XBPS utils API version.
export XBPS_UTILS_API_REQ=20131224

View File

@ -0,0 +1,6 @@
# This file sets some envvars to allow building bootstrap packages
# when the chroot is not yet ready.
[ -z "$CHROOT_READY" ] && return 0
export PKG_CONFIG_PATH="${XBPS_MASTERDIR}/usr/lib/pkgconfig:${XBPS_MASTERDIR}/usr/share/pkgconfig"

View File

@ -0,0 +1,6 @@
# This file sets up configure_args with commong settings for packages
# that don't set $build_style or set it to gnu-configure.
if [ "$build_style" = "gnu-configure" -o -z "$build_style" ]; then
export configure_args="--prefix=/usr --sysconfdir=/etc --infodir=/usr/share/info --mandir=/usr/share/man --localstatedir=/var ${configure_args}"
fi

View File

@ -0,0 +1,11 @@
# This file sets some envvars to allow cross compiling packages.
[ -z "$CROSS_BUILD" ] && return 0
export PKG_CONFIG_SYSROOT_DIR="$XBPS_CROSS_BASE"
export PKG_CONFIG_PATH="$XBPS_CROSS_BASE/lib/pkgconfig:$XBPS_CROSS_BASE/usr/share/pkgconfig"
export PKG_CONFIG_LIBDIR="$XBPS_CROSS_BASE/lib/pkgconfig"
if [ "$build_style" = "gnu-configure" -o -z "$build_style" ]; then
export configure_args+=" --host=$XBPS_CROSS_TRIPLET --with-sysroot=$XBPS_CROSS_BASE --with-libtool-sysroot=$XBPS_CROSS_BASE "
fi

11
common/environment/README Normal file
View File

@ -0,0 +1,11 @@
ENVIRONMENT SHELL SNIPPETS
==========================
This directory contains shell files (must not be executable nor contain a shebang)
that are read by xbps-src when building source packages. The shell files
are read in lexical order (as ordered by shell rules).
These files shall set environment variables for use in the xbps-src helpers
(libexec/xbps-src-*). Only files with the `.sh' extension are read, so this file
will be simply ignored.

View File

@ -1,23 +0,0 @@
# -*- shell mode -*-
#
# Sets globally the minimal versions required by the xbps source packages.
#
# =========================================================
# DO NOT MODIFY THIS FILE WITHOUT PRIOR WRITTEN PERMISSION!
# =========================================================
#
# Every time a new source package requires a specific feature from a new
# 'xbps-src', 'xbps' or 'base-chroot' package, that version must be
# increased to "reproduce" the build behaviour (somewhat :-).
# xbps-src version.
XBPS_SRC_REQ=83
# XBPS utils version.
XBPS_UTILS_REQ=0.26.1
# XBPS utils API version.
XBPS_UTILS_API_REQ=20130918
# base-chroot version.
BASE_CHROOT_REQ=0.40_1

25
common/helpers/README Normal file
View File

@ -0,0 +1,25 @@
SHELL HELPERS
=============
This directory contains shell files that are read by xbps-src and can be used at any
phase when building source packages. Only files with the `.sh' extension will be read.
A shell helper must provide its own function for use in the source packages.
The following examples illustrates a fake helper named `myhelper.sh' that provides
the `myhelper_func' function:
myhelper.sh:
...
myhelper_func() {
...
}
...
You can then use this helper in a source package like this:
srcpkgs/foo/template:
...
do_install() {
myhelper_func ...
}
...

View File

@ -0,0 +1,41 @@
# This helper replaces shebang paths pointing to the correct ones
# as used by xbps. Multiple languages are supported:
#
# - GNU Bash
# - Perl
# - Python
#
bash_regexp=".*sh"
perl_regexp=".*perl[^[:space:]]*"
python_regexp=".*python[^[:space:]]*"
replace_interpreter() {
local lang="$1" file="$2" trsb orsb
[ -z $lang -o -z $file ] && return 1
case $lang in
bash)
orsb=$bash_regexp
trpath="/bin/bash"
;;
perl)
orsb=$perl_regexp
trpath="/usr/bin/perl"
;;
python)
orsb=$python_regexp
trpath="/usr/bin/python"
;;
*)
;;
esac
if [ -f $file ]; then
sed -i -e "1s|^#![[:space:]]*${orsb}|#!${trpath}|" $file
msg_normal "Transformed $lang script: ${file##$wrksrc}.\n"
else
msg_warn "Ignoring unexistent $lang script: ${file##$wrksrc}.\n"
fi
}

View File

@ -105,9 +105,11 @@ libXrender.so.1 libXrender-0.9.4_1
libXrandr.so.2 libXrandr-1.3.0_1
libGLU.so.1 glu-9.0.0_1
libEGL.so.1 libEGL-7.11_1
libEGL.so libEGL-1.0_1
libGLESv1_CM.so libGLES-1.0_1
libGLESv1_CM.so.1 libGLES-1.0_1
libGLESv2.so libGLES-1.0_1
libwayland-egl.so.1 libwayland-egl-9.0.1_4
libGLESv1_CM.so.1 libGLES-9.0.1_1
libGLESv2.so.2 libGLES-9.0.1_1
libGL.so.1 libGL-7.11_1
libglapi.so.0 libglapi-7.11_1
libOpenVG.so.1 libOpenVG-7.11_1
@ -440,7 +442,6 @@ libphysfs.so.1 physfs-2.0.0_1
libSDL_ttf-2.0.so.0 SDL_ttf-2.0.9_1
libparted.so.2 libparted-3.1_1
libparted-fs-resize.so.0 libparted-3.1_1
libopenobex.so.1 libopenobex-1.5_1
libntfs-3g.so.84 ntfs-3g-2013.1.13_1
libruby.so.1.9 ruby-1.9.3_1
libruby.so.2.0 ruby-2.0.0_1
@ -921,6 +922,7 @@ libgtksourceviewmm-3.0.so.0 gtksourceviewmm-3.2.0_1
libyajl.so.2 yajl-2.0.1_1
libconfuse.so.0 confuse-2.7_1
libLLVM-3.3.so libllvm-3.3_4
libLLVM-3.4.so libllvm-3.4_1
libisofs.so.6 libisofs-0.6.24_1
libbfd-2.22.so binutils-2.22_1<2.23_1
libopcodes-2.22.so binutils-2.22_1<2.23_1
@ -1193,8 +1195,6 @@ libtaginfo_c.so.0 libtaginfo-0.1.3_1
libaa.so.1 aalib-1.4rc4_2
libbsd.so.0 libbsd-0.4.2_1
libWFC.so rpi-firmware-20130228_1
libGLESv2.so rpi-firmware-20130228_1
libEGL.so rpi-firmware-20130228_1
libbcm_host.so rpi-firmware-20130228_1
libopenmaxil.so rpi-firmware-20130228_1
libvchiq_arm.so rpi-firmware-20130228_1
@ -1392,7 +1392,7 @@ libSDL2-2.0.so.0 SDL2-2.0.0_1
libcacard.so.0 libcacard-1.6.1_1
libxcb-cursor.so.0 xcb-util-cursor-0.1.0_1
libgldi.so.3 libgldi-3.3.1_1
libevdev.so.1 libevdev-0.4_1
libevdev.so.1 libevdev-0.6_1
libmutter-wayland.so.0 mutter-wayland-3.10.1_1
libgdiplus.so.0 libgdiplus-2.10.9_1
libmonosgen-2.0.so.1 mono-3.2.3_1
@ -1446,3 +1446,13 @@ libcinnamon-desktop.so.4 cinnamon-desktop-2.0.4_1
libcinnamon-control-center.so.1 cinnamon-control-center-2.0.9_1
libnemo-extension.so.1 libnemo-2.0.8_1
libxshmfence.so.1 libxshmfence-1.1_1
libgoffice-0.8.so.8 goffice0.8-0.8.13_1
libgoffice-0.10.so.10 goffice-0.10.9_1
libc++.so.1 libcxx-3.4_1
libopenobex.so.2 openobex-1.7.1_1
libnotmuch.so.3 libnotmuch-0.17_2
libdri2.so.1 libdri2-0.1_1
libUMP.so libump-1.0_1
libUMP.so.3 libump-1.0_1
libatomic_ops_gpl.so.0 libatomic_ops-7.2e_1
libatomic_ops.so.0 libatomic_ops-7.2e_1

View File

@ -1,3 +1,5 @@
// vim: set syntax=asciidoc:
The XBPS source packages manual
===============================
Juan RP <xtraeme@gmail.com>
@ -8,7 +10,7 @@ Juan RP <xtraeme@gmail.com>
:website: http://www.voidlinux.eu
This article contains an exhaustive manual of how to create new source
packages for XBPS, the package manager of the *Void Linux distribution*.
packages for XBPS, the `Void Linux` native packaging system.
Introduction
------------
@ -25,11 +27,10 @@ A simple `template` example is as follows:
--------------------------------------------------------------------------
# Template file for 'foo'
## source section
pkgname="foo"
version="1.0"
revision="1"
build_style="gnu-configure"
revision=1
build_style=gnu-configure
short_desc="A short description max 72 chars"
maintainer="name <email>"
license="GPL-3"
@ -37,22 +38,20 @@ homepage="http://www.foo.org"
distfiles="http://www.foo.org/foo-${version}.tar.gz"
checksum="fea0a94d4b605894f3e2d5572e3f96e4413bcad3a085aae7367c2cf07908b2ff"
## package section
foo_package() {
pkg_install() {
vmove all
}
## optional
foo-devel_package() {
short_desc+=" - development files"
depends="..."
pkg_install() {
vmove usr/include
}
}
---------------------------------------------------------------------------
There are two main `sections` in a template: the `source section` and the
`package section`. The `source section` contains definitions to download, build
and install the package files to a `fake destdir`. The `package section`
contains the definitions to how the resulting binary packages are generated.
A template always requires at least a `source section` and a `package section`;
multiple `package sections` can be defined to generate `multiple binary packages`.
The template file contains definitions to download, build and install the
package files to a `fake destdir`, and after this a binary package can be
generated with the definitions specified on it.
Don't worry if anything is not clear as it should be. The reserved `variables`
and `functions` will be explained later. This `template` file should be created
@ -61,7 +60,7 @@ If everything went fine after running `xbps-src build-pkg` a binary package
called `foo-1.0_1.<arch>.xbps` will be generated in the local repository.
Additional binary packages (those defined in `_package() blocks` need a
symlink to the `main` package, like this:
symlink to the `main` package), like this:
----------------------------------
@ -80,25 +79,25 @@ Package build phases
Building a package consist of the following phases:
*fetch*::
This phase downloads required sources for a `source package`, as defined by
the `distfiles` variable or `do_fetch()` function.
This phase downloads required sources for a `source package`, as defined by
the `distfiles` variable or `do_fetch()` function.
*extract*::
This phase extracts the `distfiles` files into `$wrksrc` or executes the `do_extract()`
function, which is the directory to be used to compile the `source package`.
This phase extracts the `distfiles` files into `$wrksrc` or executes the `do_extract()`
function, which is the directory to be used to compile the `source package`.
*configure*::
This phase executes the `configuration` of a `source package`, i.e `GNU configure scripts`.
This phase executes the `configuration` of a `source package`, i.e `GNU configure scripts`.
*build*::
This phase compiles/prepares the `source files` via `make` or any other compatible method.
This phase compiles/prepares the `source files` via `make` or any other compatible method.
*install-destdir*::
This phase installs the `package files` into a `fake destdir`, via `make install` or
any other compatible method.
This phase installs the `package files` into a `fake destdir`, via `make install` or
any other compatible method.
*build-pkg*::
This phase builds the `binary packages` with files stored in the `package destdir`.
This phase builds the `binary packages` with files stored in the `package destdir`.
`xbps-src` supports running just the specified phase, and if it ran
successfully, the phase will be skipped later (unless its work directory
@ -111,28 +110,28 @@ The following functions are defined by `xbps-src` and can be used on any templat
*vinstall()*::
`vinstall <file> <mode> <targetdir> [<name>]`
Installs `file` with the specified `mode` into `targetdir` in `$DESTDIR`
(if called from a `source section`) or `$PKGDESTDIR` (if called from a `package section`).
The optional 4th argument can be used to change the `file name`.
Installs `file` with the specified `mode` into `targetdir` in `$DESTDIR`
(if called from a `source section`) or `$PKGDESTDIR` (if called from a `package section`).
The optional 4th argument can be used to change the `file name`.
*vcopy()*::
`vcopy <pattern> <targetdir>`
Copies resursively all files in `pattern` to `targetdir` on `$DESTDIR`
(if called from a `source section`) or `$PKGDESTDIR` (if called from a `package section`).
Copies resursively all files in `pattern` to `targetdir` on `$DESTDIR`
(if called from a `source section`) or `$PKGDESTDIR` (if called from a `package section`).
*vmove()*::
`vmove <pattern>`
Moves `pattern` to the specified directory in `$DESTDIR`
(if called from a `source section`) or `$PKGDESTDIR` (if called from a `package section`).
Moves `pattern` to the specified directory in `$DESTDIR`
(if called from a `source section`) or `$PKGDESTDIR` (if called from a `package section`).
*vmkdir()*::
`vmkdir <directory> [<mode>]`
Creates a directory in `$DESTDIR` (if called from a `source section`) or
$PKGDESTDIR` (if called from a `package section`). The 2nd optional argument
sets the mode of the directory.
Creates a directory in `$DESTDIR` (if called from a `source section`) or
`$PKGDESTDIR` (if called from a `package section`). The 2nd optional argument
sets the mode of the directory.
NOTE: shell wildcards must be properly quoted.
@ -141,38 +140,40 @@ Global variables
The following variables are defined by `xbps-src` and can be used on any template:
*makejobs*::
Set to `-jX` if `XBPS_MAKEJOBS` is defined, to allow parallel jobs with `GNU make`.
Set to `-jX` if `XBPS_MAKEJOBS` is defined, to allow parallel jobs with `GNU make`.
*sourcepkg*::
Set to the to main package name, can be used to match the main package
rather than additional binary package names.
Set to the to main package name, can be used to match the main package
rather than additional binary package names.
*CHROOT_READY*::
True if the target chroot (masterdir) is ready for chroot builds.
True if the target chroot (masterdir) is ready for chroot builds.
*CROSS_BUILD*::
True if `xbps-src` is cross compiling a package.
True if `xbps-src` is cross compiling a package.
*DESTDIR*::
Full path to the fake destdir used by the `source section`, set to
`${XBPS_MASTERDIR}/destdir/${sourcepkg}-${version}`.
Full path to the fake destdir used by the `source section`, set to
`${XBPS_MASTERDIR}/destdir/${sourcepkg}-${version}`.
*PKGDESTDIR*::
Full path to the fake destdir used by the `pkg_install()` function in the
`package section`, set to `${XBPS_MASTERDIR}/destdir/pkg-${pkgname}-${version}`.
Full path to the fake destdir used by the `pkg_install()` function in the
`package section`, set to `${XBPS_MASTERDIR}/destdir/${pkgname}-${version}`.
*XBPS_MACHINE*::
The machine architecture as returned by `uname -m`.
The machine architecture as returned by `uname -m`.
*XBPS_SRCDISTDIR*::
Full path to where the `source distfiles` are stored, i.e `$XBPS_HOSTDIR/sources`.
Full path to where the `source distfiles` are stored, i.e `$XBPS_HOSTDIR/sources`.
*XBPS_SRCPKGDIR*::
Full path to the `srcpkgs` directory.
Full path to the `srcpkgs` directory.
*XBPS_TARGET_MACHINE*::
The target machine architecture when cross compiling a package.
The target machine architecture when cross compiling a package.
*XBPS_FETCH_CMD*::
The utility to fetch files from `ftp`, `http` of `https` servers.
Source section
--------------
@ -181,150 +182,167 @@ Mandatory variables
The list of mandatory variables in the `source section`:
*homepage*::
A string pointing to the `upstream` homepage.
A string pointing to the `upstream` homepage.
*license*::
A string matching any license file available in `/usr/share/licenses`.
Multiple licenses should be separated by commas, i.e `GPL-3, LGPL-2.1`.
A string matching any license file available in `/usr/share/licenses`.
Multiple licenses should be separated by commas, i.e `GPL-3, LGPL-2.1`.
*maintainer*::
A string in the form of `name <user@domain>`.
A string in the form of `name <user@domain>`.
*pkgname*::
A string with the package name, matching `srcpkgs/<pkgname>`.
A string with the package name, matching `srcpkgs/<pkgname>`.
*revision*::
A number that must be set to 1 when the `source package` is created, or
updated to a new `upstream version`. This should only be increased when
the generated `binary packages` have been modified.
A number that must be set to 1 when the `source package` is created, or
updated to a new `upstream version`. This should only be increased when
the generated `binary packages` have been modified.
*short_desc*::
A string with a brief description for this package. Max 72 chars.
A string with a brief description for this package. Max 72 chars.
*version*::
A string with the package version. Must not contain dashes and at least
one digit is required.
A string with the package version. Must not contain dashes and at least
one digit is required.
Optional variables
~~~~~~~~~~~~~~~~~~
*hostmakedepends*::
The list of `host` dependencies required to build the package. Dependencies
can be specified with the following version comparators: `<`, `>`, `<=`, `>=`
or `foo-1.0_1` to match an exact version. If version comparator is not
defined (just a package name), the version comparator is automatically set to `>=0`.
Example `hostmakedepends="foo blah<1.0"`.
The list of `host` dependencies required to build the package. Dependencies
can be specified with the following version comparators: `<`, `>`, `<=`, `>=`
or `foo-1.0_1` to match an exact version. If version comparator is not
defined (just a package name), the version comparator is automatically set to `>=0`.
Example `hostmakedepends="foo blah<1.0"`.
*makedepends*::
The list of `target` dependencies required to build the package. Dependencies
can be specified with the following version comparators: `<`, `>`, `<=`, `>=`
or `foo-1.0_1` to match an exact version. If version comparator is not
defined (just a package name), the version comparator is automatically set to `>=0`.
Example `makedepends="foo blah>=1.0"`.
The list of `target` dependencies required to build the package. Dependencies
can be specified with the following version comparators: `<`, `>`, `<=`, `>=`
or `foo-1.0_1` to match an exact version. If version comparator is not
defined (just a package name), the version comparator is automatically set to `>=0`.
Example `makedepends="foo blah>=1.0"`.
*bootstrap*::
If enabled the source package is considered to be part of the `bootstrap`
process and required to be able to build packages in the chroot. Only a
small number of packages must set this property.
If enabled the source package is considered to be part of the `bootstrap`
process and required to be able to build packages in the chroot. Only a
small number of packages must set this property.
*distfiles*::
The full URL to the `upstream` source distribution files. Multiple files
can be separated by blanks. The files must end in `.tar.lzma`, `.tar.xz`,
`.txz`, `.tar.bz2`, `.tbz`, `.tar.gz`, `.tgz`, `.gz`, `.bz2`, `.tar` or
`.zip`. Example `distfiles="http://foo.org/foo-1.0.tar.gz"`
The full URL to the `upstream` source distribution files. Multiple files
can be separated by blanks. The files must end in `.tar.lzma`, `.tar.xz`,
`.txz`, `.tar.bz2`, `.tbz`, `.tar.gz`, `.tgz`, `.gz`, `.bz2`, `.tar` or
`.zip`. Example `distfiles="http://foo.org/foo-1.0.tar.gz"`
*checksum*::
The `sha256` digests matching `${distfiles}`. Multiple files can be
separated by blanks. Please note that the order must be the same than
was used in `${distfiles}`. Example `checksum="kkas00xjkjas"`
The `sha256` digests matching `${distfiles}`. Multiple files can be
separated by blanks. Please note that the order must be the same than
was used in `${distfiles}`. Example `checksum="kkas00xjkjas"`
*long_desc*::
A long description of the main package. Max 80 chars per line and must
not contain the following characters: `&`, `<`, `>`.
A long description of the main package. Max 80 chars per line and must
not contain the following characters: `&`, `<`, `>`.
*wrksrc*::
The directory name where the package sources are extracted, by default
set to `${pkgname}-${version}`.
The directory name where the package sources are extracted, by default
set to `${pkgname}-${version}`.
*build_wrksrc*::
A directory relative to `${wrksrc}` that will be used when building the package.
A directory relative to `${wrksrc}` that will be used when building the package.
*create_wrksrc*::
Enable it to create the `${wrksrc}` directory. Required if a package
contains multiple `distfiles`.
Enable it to create the `${wrksrc}` directory. Required if a package
contains multiple `distfiles`.
*only_for_archs*::
This expects a separated list of architectures where the package can be
built matching `uname -m` output. Example `only_for_archs="x86_64 armv6l"`
This expects a separated list of architectures where the package can be
built matching `uname -m` output. Example `only_for_archs="x86_64 armv6l"`
*build_style*::
This specifies the `build method` for a package. Read below to know more
about the available package `build methods`. If `build_style` is not set,
the package must define at least a `do_install()` function, and optionally
more build phases as such `do_configure()`, `do_build()`, etc.
This specifies the `build method` for a package. Read below to know more
about the available package `build methods`. If `build_style` is not set,
the package must define at least a `do_install()` function, and optionally
more build phases as such `do_configure()`, `do_build()`, etc.
*create_srcdir*::
This creates a directory in `${XBPS_SRCDISTDIR}` as such `${pkgname}-${version}`
to store the package sources at the `extract` phase. Required in packages that
use unversioned ${distfiles}`.
This creates a directory in `${XBPS_SRCDISTDIR}` as such `${pkgname}-${version}`
to store the package sources at the `extract` phase. Required in packages that
use unversioned ${distfiles}`.
*configure_script*::
The name of the `configure` script to execute at the `configure` phase if
`${build_style}` is set to `configure` or `gnu-configure` build methods.
By default set to `./configure`.
The name of the `configure` script to execute at the `configure` phase if
`${build_style}` is set to `configure` or `gnu-configure` build methods.
By default set to `./configure`.
*configure_args*::
The arguments to be passed in to the `configure` script if `${build_style}`
is set to `configure` or `gnu-configure` build methods. By default, prefix
must be set to `/usr`. In `gnu-configure` packages, some options are already
set by default: `--prefix=/usr --sysconfdir=/etc --infodir=/usr/share/info --mandir=/usr/share/man --localstatedir=/var`.
The arguments to be passed in to the `configure` script if `${build_style}`
is set to `configure` or `gnu-configure` build methods. By default, prefix
must be set to `/usr`. In `gnu-configure` packages, some options are already
set by default: `--prefix=/usr --sysconfdir=/etc --infodir=/usr/share/info --mandir=/usr/share/man --localstatedir=/var`.
*make_cmd*::
The executable to run at the `build` phase if `${build_style}` is set to
`configure`, `gnu-configure` or `gnu-makefile` build methods.
By default set to `make`.
The executable to run at the `build` phase if `${build_style}` is set to
`configure`, `gnu-configure` or `gnu-makefile` build methods.
By default set to `make`.
*make_build_args*::
The arguments to be passed in to `${make_cmd}` at the build phase if
`${build_style}` is set to `configure`, `gnu-configure` or `gnu_makefile`
build methods. Unset by default.
The arguments to be passed in to `${make_cmd}` at the build phase if
`${build_style}` is set to `configure`, `gnu-configure` or `gnu_makefile`
build methods. Unset by default.
*make_install_args*::
The arguments to be passed in to `${make_cmd}` at the `install-destdir`
phase if `${build_style}` is set to `configure`, `gnu-configure` or
`gnu_makefile` build methods. Unset by default.
The arguments to be passed in to `${make_cmd}` at the `install-destdir`
phase if `${build_style}` is set to `configure`, `gnu-configure` or
`gnu_makefile` build methods. By default set to
`PREFIX=/usr DESTDIR=${DESTDIR}`.
*make_build_target*::
The target to be passed in to `${make_cmd}` at the build phase if
`${build_style}` is set to `configure`, `gnu-configure` or `gnu_makefile`
build methods. Unset by default (`all` target).
The target to be passed in to `${make_cmd}` at the build phase if
`${build_style}` is set to `configure`, `gnu-configure` or `gnu_makefile`
build methods. Unset by default (`all` target).
*make_install_target*::
The target to be passed in to `${make_cmd}` at the `install-destdir` phase
if `${build_style}` is set to `configure`, `gnu-configure` or `gnu_makefile`
build methods. By default set to `DESTDIR=${DESTDIR} install`.
The target to be passed in to `${make_cmd}` at the `install-destdir` phase
if `${build_style}` is set to `configure`, `gnu-configure` or `gnu_makefile`
build methods. By default set to `install`.
*patch_args*::
The arguments to be passed in to the `patch(1)` command when applying
patches to the package sources after `do_extract()`. Patches are stored in
`srcpkgs/<pkgname>/patches` and must be in `-p0` format. By default set to `-Np0`.
The arguments to be passed in to the `patch(1)` command when applying
patches to the package sources after `do_extract()`. Patches are stored in
`srcpkgs/<pkgname>/patches` and must be in `-p0` format. By default set to `-Np0`.
*disable_parallel_build*::
If set the package won't be built in parallel and `XBPS_MAKEJOBS` has no effect.
If set the package won't be built in parallel and `XBPS_MAKEJOBS` has no effect.
*keep_libtool_archives*::
If enabled the `GNU Libtool` archives won't be removed. By default those
files are always removed automatically.
If enabled the `GNU Libtool` archives won't be removed. By default those
files are always removed automatically.
*skip_extraction*::
A list of filenames that should not be extracted in the `extract` phase.
This must match the basename of any url defined in `${distfiles}`.
Example `skip_extraction="foo-${version}.tar.gz"`.
A list of filenames that should not be extracted in the `extract` phase.
This must match the basename of any url defined in `${distfiles}`.
Example `skip_extraction="foo-${version}.tar.gz"`.
*force_debug_pkgs*::
If enabled binary packages with debugging symbols will be generated
even if `XBPS_DEBUG_PKGS` is disabled in `xbps-src.conf` or in the
`command line arguments`.
If enabled binary packages with debugging symbols will be generated
even if `XBPS_DEBUG_PKGS` is disabled in `xbps-src.conf` or in the
`command line arguments`.
*conf_files*::
A list of configuration files the binary package owns; this expects full
paths, and multiple entries can be separated by blanks, i.e:
`conf_files="/etc/foo.conf /etc/foo2.conf"`.
*noarch*::
If set, the binary package is not architecture specific and can be shared
by all supported architectures.
*nonfree*::
If set, the binary package will be put into the *non free* repository.
*nostrip*::
If set, the ELF binaries with debugging symbols won't be stripped. By
default all binaries are stripped.
build style scripts
~~~~~~~~~~~~~~~~~~~
@ -336,42 +354,48 @@ to execute a `build_style` script must be defined via `hostmakedepends`.
The current list of available `build_style` scripts is the following:
*cmake*::
For packages that use the CMake build system, configuration arguments
can be passed in via `configure_args`.
For packages that use the CMake build system, configuration arguments
can be passed in via `configure_args`.
*configure*::
For packages that use non-GNU configure scripts, at least `--prefix=/usr`
should be passed in via `configure_args`.
For packages that use non-GNU configure scripts, at least `--prefix=/usr`
should be passed in via `configure_args`.
*gnu-configure*::
For packages that use GNU configure scripts, additional configuration
arguments can be passed in via `configure_args`.
For packages that use GNU configure scripts, additional configuration
arguments can be passed in via `configure_args`.
*gnu-makefile*::
For packages that use GNU make, build arguments can be passed in via
`make_build_args` and install arguments via `make_install_args`. The build
target can be overriden via `make_build_target` and the install target
For packages that use GNU make, build arguments can be passed in via
`make_build_args` and install arguments via `make_install_args`. The build
target can be overriden via `make_build_target` and the install target
via `make_install_target`.
*meta*::
For `meta-packages`, i.e packages that only install local files or simply
depend on additional packages.
For `meta-packages`, i.e packages that only install local files or simply
depend on additional packages. This build style does not install
dependencies to the root directory, and only checks if a binary package is
available in repositories.
*perl-ModuleBuild*::
For packages that use the Perl
http://search.cpan.org/~leont/Module-Build-0.4202/lib/Module/Build.pm[Module::Build] method.
For packages that use the Perl
http://search.cpan.org/~leont/Module-Build-0.4202/lib/Module/Build.pm[Module::Build] method.
*perl*::
For packages that use the Perl
http://perldoc.perl.org/ExtUtils/MakeMaker.html[ExtUtils::MakeMaker] build method.
For packages that use the Perl
http://perldoc.perl.org/ExtUtils/MakeMaker.html[ExtUtils::MakeMaker] build method.
*python-module*::
For packages that use the Python module build method (setup.py).
For packages that use the Python module build method (setup.py).
*waf3*::
For packages that use the Python3 `waf` build method with python3.
For packages that use the Python3 `waf` build method with python3.
*waf*::
For packages that use the Python `waf` method with python2.
For packages that use the Python `waf` method with python2.
NOTE: if `build_style` is not set, the template must (at least) define a
`do_install()` function and optionally more phases via `do_xxx()` functions.
Functions
~~~~~~~~~
@ -379,80 +403,47 @@ The following functions can be defined to change the behavior of how the
package is downloaded, compiled and installed.
*do_fetch()*::
if defined and `distfiles` is not set, use it to fetch the required sources.
if defined and `distfiles` is not set, use it to fetch the required sources.
*do_extract()*::
if defined and `distfiles` is not set, use it to extract the required sources.
if defined and `distfiles` is not set, use it to extract the required sources.
*post_extract()*::
Actions to execute after `do_extract()`.
Actions to execute after `do_extract()`.
*pre_configure()*::
Actions to execute after `post_extract()`.
Actions to execute after `post_extract()`.
*do_configure()*::
Actions to execute to configure the package; `${configure_args}` should
still be passed in if it's a GNU configure script.
Actions to execute to configure the package; `${configure_args}` should
still be passed in if it's a GNU configure script.
*post_configure()*::
Actions to execute after `do_configure()`.
Actions to execute after `do_configure()`.
*pre_build()*::
Actions to execute after `post_configure()`.
Actions to execute after `post_configure()`.
*do_build()*::
Actions to execute to build the package.
Actions to execute to build the package.
*post_build()*::
Actions to execute after `do_build()`.
Actions to execute after `do_build()`.
*pre_install()*::
Actions to execute after `post_build()`.
Actions to execute after `post_build()`.
*do_install()*::
Actions to execute to install the packages files into the `fake destdir`.
Actions to execute to install the packages files into the `fake destdir`.
*post_install()*::
Actions to execute after `do_install()`.
Actions to execute after `do_install()`.
NOTE: A function defined in a template has preference over the same function
defined by a `build_style` script.
Run-time dependencies
~~~~~~~~~~~~~~~~~~~~~
Dependencies for ELF executables or shared libraries are detected
automatically by `xbps-src`, hence run-time dependencies must not be specified
in the *package sections* with the following exceptions:
- ELF binaries using dlopen(3).
- non ELF objects, i.e perl/python/ruby/etc modules.
- Overriding the minimal version specified in the `shlibs` file.
The run-time dependencies for ELF binaries are detected by checking which SONAMEs
use and then the SONAMEs are mapped to a binary package name with a minimal
required version. The `shlibs` file in the `xbps-packages/common` directory
sets up the `SONAME pkgname>=version` mappings.
For example the `foo-1.0_1` package provides the `libfoo.so.1` SONAME and
software requiring this library will link to `libfoo`; the resulting binary
package will have a run-time dependency to `foo>=1.0_1` package as specified in
`common/shlibs`:
-----------------------
# common/shlibs
...
libfoo.so.1 foo-1.0_1
...
-----------------------
- The first field specifies the SONAME.
- The second field specified the package name and minimal version required.
- A third optional field specifies the architecture (rarely used).
Build options
~~~~~~~~~~~~~
-------------
Some packages might be built with different build options to enable/disable
additional features; `xbps-src` allows you to do this with some simple tweaks
to the `template` file.
@ -460,14 +451,14 @@ to the `template` file.
The following variables may be set to allow package build options:
*build_options*::
Sets the build options supported by the source package.
Sets the build options supported by the source package.
*build_options_default*::
Sets the default build options to be used by the source package.
Sets the default build options to be used by the source package.
*desc_option_<option>*::
Sets the description for the build option `option`. This must match the
keyword set in *build_options*.
Sets the description for the build option `option`. This must match the
keyword set in *build_options*.
After defining those required variables, you can check for the
`build_option_<option>` variable to know if it has been set and adapt the source
@ -533,9 +524,39 @@ The build options can also be shown for binary packages via `xbps-query(8)`:
$ xbps-query -R --property=build-options foo
--------------------------------------------
Contributing via git
~~~~~~~~~~~~~~~~~~~~
Run-time dependencies
---------------------
Dependencies for ELF executables or shared libraries are detected
automatically by `xbps-src`, hence run-time dependencies must not be specified
in the *package sections* with the following exceptions:
- ELF binaries using dlopen(3).
- non ELF objects, i.e perl/python/ruby/etc modules.
- Overriding the minimal version specified in the `shlibs` file.
The run-time dependencies for ELF binaries are detected by checking which SONAMEs
use and then the SONAMEs are mapped to a binary package name with a minimal
required version. The `shlibs` file in the `xbps-packages/common` directory
sets up the `SONAME pkgname>=version` mappings.
For example the `foo-1.0_1` package provides the `libfoo.so.1` SONAME and
software requiring this library will link to `libfoo`; the resulting binary
package will have a run-time dependency to `foo>=1.0_1` package as specified in
`common/shlibs`:
-----------------------
# common/shlibs
...
libfoo.so.1 foo-1.0_1
...
-----------------------
- The first field specifies the SONAME.
- The second field specified the package name and minimal version required.
- A third optional field specifies the architecture (rarely used).
Contributing via git
--------------------
You can fork the `xbps-packages` git repository on github and then set up
a remote to pull in new changes:
@ -556,8 +577,12 @@ for more information.
For commit messages please use the following rules:
- If you've imported a new package use `New package: <pkgver>`.
- If you've updated a package use `<pkgname>: updated to <version>`.
- If you've removed a package use `<pkgname>: removed ...`.
- If you've imported a new package use `"New package: <pkgver>"`.
- If you've updated a package use `"<pkgname>: updated to <version>"`.
- If you've removed a package use `"<pkgname>: removed ..."`.
- If you've modified a package use `"<pkgname>: ..."`.
Help
----
If after reading this `manual` you still need some kind of help, please join
us at `#xbps` via IRC at `irc.freenode.net`.

View File

@ -29,9 +29,3 @@ do_install() {
install -Dm644 hidden.man ${DESTDIR}/usr/share/man/man1/hidden.1
vinstall README.md 644 usr/share/doc/${pkgname}
}
2bwm-git_package() {
pkg_install() {
vmove usr
}
}

View File

@ -1,10 +1,11 @@
# Template file for 'GConf'
pkgname=GConf
version=3.2.6
revision=2
revision=3
build_style=gnu-configure
configure_args="--without-openldap --enable-gtk --enable-defaults-service
--disable-orbit --enable-gsettings-backend --disable-static"
conf_files="/etc/gconf/2/path"
hostmakedepends="pkg-config intltool gobject-introspection"
makedepends="gtk+3-devel dbus-glib-devel polkit-devel libxml2-devel"
short_desc="A process-transparent configuration system"
@ -26,11 +27,12 @@ post_install() {
}
GConf-devel_package() {
depends="glib-devel dbus-devel GConf>=${version}"
depends="glib-devel dbus-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/gir-1.0
vmove usr/share/sgml
vmove usr/share/aclocal
@ -39,11 +41,3 @@ GConf-devel_package() {
vinstall ${FILESDIR}/gconf-merge-schema.sh 755 usr/bin gconf-merge-schema
}
}
GConf_package() {
conf_files="/etc/gconf/2/path"
pkg_install() {
vmove etc
vmove usr
}
}

View File

@ -65,9 +65,3 @@ Ice-devel_package() {
vmove usr/include
}
}
Ice_package() {
pkg_install() {
vmove all
}
}

View File

@ -32,9 +32,3 @@ LuaJIT-devel_package() {
vmove "usr/lib/*.so"
}
}
LuaJIT_package() {
pkg_install() {
vmove usr
}
}

View File

@ -1,6 +1,6 @@
# Template build file for 'MesaLib'.
pkgname=MesaLib
version=10.0.1
version=10.0.2
revision=1
wrksrc="Mesa-${version}"
build_style=gnu-configure
@ -16,12 +16,13 @@ maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.mesa3d.org/"
license="MIT, LGPL-2.1"
distfiles="ftp://ftp.freedesktop.org/pub/mesa/${version}/${pkgname}-${version}.tar.bz2"
checksum=3cdf868f9599ca310c17fcf5b4ce9aec9903d8bf8561fde2577f3d422f823270
checksum=4502a8e2dfa53e15d8fff89c153e6b14824fe82e49bd101e7edc02fa8cf76a7e
hostmakedepends="automake libtool flex pkg-config llvm>=3.3"
makedepends="glproto dri2proto>=2.1 libXext-devel libXxf86vm-devel libXdamage-devel
libudev-devel>=183 libdrm-devel expat-devel talloc-devel libxml2-python
libvdpau-devel libXvMC-devel>=1.0.6 wayland-devel elfutils-devel"
conf_files="/etc/drirc"
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
@ -175,10 +176,3 @@ mesa-vmwgfx-dri_package() {
vmove usr/lib/gallium-pipe/pipe_vmwgfx.so
}
}
MesaLib_package() {
conf_files="/etc/drirc"
pkg_install() {
vmove all
}
}

View File

@ -6,6 +6,8 @@ build_style=gnu-configure
configure_args="--disable-static --sbindir=/usr/bin --with-udev-base-dir=/usr/lib/udev --with-polkit=permissive"
hostmakedepends="pkg-config intltool"
makedepends="glib-devel libgudev-devel polkit-devel libqmi-devel libmbim-devel systemd-devel ppp"
depends="hicolor-icon-theme ppp"
systemd_services="${pkgname}.service on"
short_desc="Mobile broadband modem management service"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.freedesktop.org/wiki/Software/ModemManager/"
@ -29,11 +31,3 @@ libmm-glib_package() {
vmove "usr/lib/libmm-glib.so.*"
}
}
ModemManager_package() {
depends="hicolor-icon-theme ppp"
systemd_services="${pkgname}.service on"
pkg_install() {
vmove all
}
}

View File

@ -3,8 +3,11 @@ pkgname=MoinMoin
version=1.9.4
revision=1
wrksrc=moin-${version}
noarch="yes"
build_style=python-module
makedepends="python"
depends="python"
pycompile_module="MoinMoin jabberbot"
short_desc="MoinMoin, a Python clone of WikiWiki"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://moinmo.in"
@ -16,12 +19,3 @@ long_desc="
emphasis on easy access to and modification of information. MoinMoin
is a Python WikiClone that allows you to easily set up your own wiki,
only requiring a Python installation."
MoinMoin_package() {
noarch="yes"
pycompile_module="MoinMoin jabberbot"
depends="python"
pkg_install() {
vmove usr
}
}

View File

@ -0,0 +1,3 @@
d /etc/NetworkManager/dispatcher.d 0755 root root -
d /etc/NetworkManager/system-connections 0755 root root -
d /var/lib/NetworkManager 0700 root root -

View File

@ -1,7 +1,7 @@
# Template file for 'NetworkManager'
pkgname=NetworkManager
version=0.9.8.8
revision=2
revision=4
build_style=gnu-configure
configure_args="--with-dhcpcd=/usr/sbin/dhcpcd --with-dhclient=no
--with-system-ca-path=/etc/ssl/certs --enable-more-warnings=no
@ -19,20 +19,41 @@ license="GPL-2"
distfiles="${GNOME_SITE}/$pkgname/0.9/$pkgname-$version.tar.xz"
checksum=8a0a3de9cd2897f778193aa5f04c8a6f6f87fe07f7a088aab26d2b35baa17a55
hostmakedepends="pkg-config intltool gobject-introspection"
hostmakedepends="pkg-config intltool"
makedepends="libuuid-devel gnutls-devel dbus-glib-devel libgudev-devel
libnl3-devel polkit-devel ppp-devel iptables-devel libsoup-devel systemd-devel
ModemManager-devel dbus iproute2 dhcpcd>=5.5.4_1 wpa_supplicant bluez>5
mobile-broadband-provider-info"
depends="dbus iproute2 dhcpcd>=5.5.4_1 wpa_supplicant ModemManager mobile-broadband-provider-info"
conf_files="/etc/${pkgname}/${pkgname}.conf"
systemd_services="${pkgname}.service on ${pkgname}-dispatcher.service on"
# Package build options
build_options="gir"
desc_option_gir="Enable support for building gobject introspection data"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
if [ "$build_option_gir" ]; then
configure_args+=" --enable-introspection"
hostmakedepends+=" gobject-introspection"
else
configure_args+=" --disable-introspection"
fi
pre_configure() {
# Full switch to /run to not depend on /var/run being a symlink.
sed -e 's,^nmrundir=.*$,nmrundir=\"/run/\$PACKAGE\",' -i configure
}
post_install() {
# Install config file.
vinstall ${FILESDIR}/${pkgname}.conf 644 etc/${pkgname}
vinstall ${FILESDIR}/tmpfilesd 644 usr/lib/tmpfiles.d ${pkgname}.conf
# remove unused stuff
rm -rf ${DESTDIR}/etc/init.d
}
@ -41,7 +62,9 @@ libnm_package() {
short_desc+=" - shared libraries"
pkg_install() {
vmove "usr/lib/*.so.*"
vmove "usr/lib/girepository-*"
if [ "$build_option_gir" ]; then
vmove usr/lib/girepository-1.0
fi
}
}
@ -52,20 +75,9 @@ NetworkManager-devel_package() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/gir-1.0
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
vmove usr/share/gtk-doc
}
}
NetworkManager_package() {
make_dirs="
/etc/${pkgname}/dispatcher.d 0755 root root
/etc/${pkgname}/system-connections 0755 root root
/var/lib/${pkgname} 0700 root root"
depends="dbus iproute2 dhcpcd>=5.5.4_1 wpa_supplicant ModemManager mobile-broadband-provider-info"
conf_files="/etc/${pkgname}/${pkgname}.conf"
systemd_services="${pkgname}.service on ${pkgname}-dispatcher.service on"
pkg_install() {
vmove all
}
}

View File

@ -42,9 +42,3 @@ ORBit2-devel_package() {
vmove usr/share/aclocal
}
}
ORBit2_package() {
pkg_install() {
vmove all
}
}

View File

@ -4,6 +4,8 @@ version=0.9.9
revision=2
build_style=python-module
makedepends="python"
noarch="yes"
pycompile_module="Pyrex"
short_desc="Language for writing Python extension modules"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex"
@ -13,11 +15,3 @@ checksum=5f87df06831d0b3412eb4bc9d3fc2ee7bfae1b913d7da8c23ab2bf5699fb6b50
long_desc="
Pyrex lets you write code that mixes Python and C data types any way you
want, and compiles it into a C extension for Python."
Pyrex_package() {
noarch="yes"
pycompile_module="Pyrex"
pkg_install() {
vmove usr
}
}

View File

@ -67,6 +67,11 @@ else
configure_args+=" --disable-pulseaudio"
fi
if [ "$build_option_opengl" ]; then
# libGL.so.1 is dynamically loaded with dlopen.
depends="libGL"
fi
SDL-devel_package() {
short_desc="${short_desc} -- development files"
depends="alsa-lib-devel SDL>=${version}"
@ -88,13 +93,3 @@ SDL-devel_package() {
vmove usr/share
}
}
SDL_package() {
if [ "$build_option_opengl" ]; then
# libGL.so.1 is dynamically loaded with dlopen.
depends="libGL"
fi
pkg_install() {
vmove usr
}
}

View File

@ -65,6 +65,15 @@ else
configure_args+=" --disable-pulseaudio"
fi
if [ "$build_option_opengl" ]; then
# libGL.so.1 is dynamically loaded with dlopen.
depends+=" libGL"
fi
if [ "$build_option_gles" ]; then
# libGLESv2.so.1 is dynamically loaded with dlopen.
depends+=" libGLES"
fi
SDL2-devel_package() {
short_desc+=" - development files"
depends="alsa-lib-devel ${sourcepkg}>=${version}_${revision}"
@ -90,17 +99,3 @@ SDL2-devel_package() {
vmove usr/share
}
}
SDL2_package() {
if [ "$build_option_opengl" ]; then
# libGL.so.1 is dynamically loaded with dlopen.
depends+=" libGL"
fi
if [ "$build_option_gles" ]; then
# libGLESv2.so.1 is dynamically loaded with dlopen.
depends+=" libGLES"
fi
pkg_install() {
vmove all
}
}

View File

@ -5,6 +5,8 @@ revision=9
build_style=gnu-configure
configure_args="--disable-static"
makedepends="libpng-devel>=1.6 tiff-devel SDL-devel libwebp-devel>=0.2.0"
# The following are dlopen(3)ed at runtime.
depends="libpng>=1.6 tiff libjpeg-turbo libwebp>=0.2.0"
short_desc="Load images as SDL surfaces"
maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD"
@ -24,11 +26,3 @@ SDL_image-devel_package() {
vmove usr/lib/pkgconfig
}
}
SDL_image_package() {
# The following are dlopen(3)ed at runtime.
depends="libpng>=1.6 tiff libjpeg-turbo libwebp>=0.2.0"
pkg_install() {
vmove usr
}
}

View File

@ -1,11 +1,12 @@
# Template file for 'SDL_mixer'
pkgname=SDL_mixer
version=1.2.12
revision=5
revision=6
build_style=gnu-configure
configure_args="--disable-static"
makedepends="SDL-devel libvorbis-devel libmikmod-devel>=3.2.0
libflac-devel smpeg-devel fluidsynth-devel"
makedepends="SDL-devel libvorbis-devel libmikmod-devel>=3.2.0 libflac-devel smpeg-devel fluidsynth-devel"
# The following deps are dlopen(3)ed at runtime.
depends="libvorbis libmikmod smpeg libflac"
short_desc="Multi-channel audio mixer library"
maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD"
@ -30,18 +31,11 @@ post_install() {
}
SDL_mixer-devel_package() {
depends="${sourcepkg}>=${version}"
short_desc="${short_desc} (development files)"
depends="SDL-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
}
}
SDL_mixer_package() {
# The following deps are dlopen(3)ed at runtime.
depends="libvorbis libmikmod smpeg libflac"
pkg_install() {
vmove usr
vmove "usr/lib/*.so"
}
}

View File

@ -1,7 +1,7 @@
# Template file for 'SDL_net'
pkgname=SDL_net
version=1.2.8
revision=3
revision=4
build_style=gnu-configure
configure_args="--disable-static"
makedepends="SDL-devel"
@ -11,25 +11,17 @@ license="BSD"
homepage="http://www.libsdl.org/projects/SDL_net/"
distfiles="http://www.libsdl.org/projects/$pkgname/release/$pkgname-$version.tar.gz"
checksum=5f4a7a8bb884f793c278ac3f3713be41980c5eedccecff0260411347714facb4
long_desc="
This is a small sample cross-platform networking library which is
supplementary to the SDL (Simple DirectMedia Layer) library."
post_install() {
vinstall COPYING 644 usr/share/licenses/${pkgname}
}
SDL_net-devel_package() {
depends="SDL-devel SDL_net>=${version}"
short_desc+=" -- development files"
depends="SDL-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
}
}
SDL_net_package() {
pkg_install() {
vmove usr
vmove "usr/lib/*.so"
}
}

View File

@ -1,7 +1,7 @@
# Template file for 'SDL_sound'
pkgname=SDL_sound
version=1.0.3
revision=3
revision=4
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config"
@ -13,27 +13,12 @@ homepage="http://icculus.org/SDL_sound/"
license="LGPL-2.1"
distfiles="http://icculus.org/${pkgname}/downloads/${pkgname}-${version}.tar.gz"
checksum="3999fd0bbb485289a52be14b2f68b571cb84e380cc43387eadf778f64c79e6df"
long_desc="
SDL_sound is a library that handles the decoding of several popular sound
file formats, such as .WAV and .MP3. It is meant to make the programmer's
sound playback tasks simpler. The programmer gives SDL_sound a filename, or
feeds it data directly from one of many sources, and then reads the decoded
waveform data back at her leisure. If resource constraints are a concern,
SDL_sound can process sound data in programmer-specified blocks. Alternately,
SDL_sound can decode a whole sound file and hand back a single pointer to the
whole waveform. SDL_sound can also handle sample rate, audio format, and
channel conversion on-the-fly and behind-the-scenes, if the programmer desires."
SDL_sound-devel_package() {
depends="SDL_sound>=${version}"
short_desc="${short_desc} -- development files"
depends="SDL-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
}
}
SDL_sound_package() {
pkg_install() {
vmove usr
vmove "usr/lib/*.so"
}
}

View File

@ -1,7 +1,7 @@
# Template file for 'SDL_ttf'
pkgname=SDL_ttf
version=2.0.11
revision=3
revision=4
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config"
@ -12,25 +12,13 @@ license="LGPL-2.1"
homepage="http://www.libsdl.org/projects/${pkgname}"
distfiles="${homepage}/release/${pkgname}-${version}.tar.gz"
checksum=724cd895ecf4da319a3ef164892b72078bd92632a5d812111261cde248ebcdb7
long_desc="
SDL_ttf is a TrueType font rendering library that is used with the SDL
library, and almost as portable. It depends on freetype2 to handle the
TrueType font data. It allows a programmer to use multiple TrueType fonts
without having to code a font rendering routine themselves. With the power
of outline fonts and antialiasing, high quality text output can be obtained
without much effort."
SDL_ttf-devel_package() {
depends="freetype-devel SDL-devel ${sourcepkg}>=${version}"
short_desc+=" -- development files"
depends="freetype-devel SDL-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
}
}
SDL_ttf_package() {
pkg_install() {
vmove usr
vmove "usr/lib/*.so"
}
}

View File

@ -18,6 +18,7 @@ makedepends="pcre-devel>=8.30 libglib-devel>=2.32.3_2
gtk+-devel dbus-glib-devel libexif-devel exo-devel>=0.10.2 xfce4-panel-devel
startup-notification-devel systemd-devel gvfs-devel hicolor-icon-theme
desktop-file-utils"
depends="gvfs hicolor-icon-theme desktop-file-utils"
Thunar-devel_package() {
depends="libglib-devel gtk+-devel Thunar>=${version}"
@ -28,10 +29,3 @@ Thunar-devel_package() {
vmove usr/share/gtk-doc
}
}
Thunar_package() {
depends="gvfs hicolor-icon-theme desktop-file-utils"
pkg_install() {
vmove all
}
}

View File

@ -4,6 +4,8 @@ version=13.2.0
revision=1
build_style=python-module
makedepends="python-devel zope.interface>=4.0.1 pycrypto pyopenssl"
depends="zope.interface>=4.0.1 pycrypto pyopenssl"
pycompile_module="twisted"
short_desc="Event-driven networking engine written in Python"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://twistedmatrix.com/"
@ -14,11 +16,3 @@ checksum=095175638c019ac7c0604f4c291724a16ff1acd062e181b01293bf4dcbc62cf3
if [ "$CROSS_BUILD" ]; then
hostmakedepends="${makedepends}"
fi
Twisted_package() {
depends="zope.interface>=4.0.1 pycrypto pyopenssl"
pycompile_module="twisted"
pkg_install() {
vmove all
}
}

View File

@ -1,36 +1,29 @@
# Template file for 'VirtualGL'
pkgname=VirtualGL
version=2.3.2
revision=1
revision=2
build_style=cmake
configure_args="-DTJPEG_INCLUDE_DIR=/usr/include
-DTJPEG_LIBRARY=/usr/lib/libturbojpeg.so -DVGL_LIBDIR=/usr/lib
-DVGL_BINDIR=/usr/bin -DVGL_DOCDIR=/usr/share/doc/${pkgname}"
makedepends="cmake libXv-devel glu-devel libjpeg-turbo-devel>=1.3.0_4"
hostmakedepends="cmake"
makedepends="libXv-devel glu-devel libjpeg-turbo-devel>=1.3.0_4"
short_desc="Run remote OpenGL applications with full acceleration"
maintainer="davehome <davehome@redthumb.info.tm>"
homepage="http://www.virtualgl.org/"
license="LGPL-2.1"
distfiles="${SOURCEFORGE_SITE}/virtualgl/${pkgname}/${version}/${pkgname}-${version}.tar.gz"
checksum=bee2abb3225bd1a607036a50e60e2652248d976afdbfcb096423648f1acc5418
long_desc="
Redirects the 3D rendering commands from Unix and Linux OpenGL applications to
3D accelerator hardware in a dedicated server and displays the rendered output
interactively to a thin client located elsewhere on the network."
post_install() {
cd ${DESTDIR}/usr/bin && mv glxinfo vglxinfo
cd ${DESTDIR}/usr/bin
mv glxinfo vglxinfo
}
VirtualGL-devel_package() {
depends="VirtualGL>=${version}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
}
}
VirtualGL_package() {
pkg_install() {
vmove all
}
}

View File

@ -1,20 +1,35 @@
# Template file for 'WindowMaker'
pkgname=WindowMaker
version=0.95.4
revision=3
version=0.95.5
revision=1
build_style=gnu-configure
configure_args="--enable-xinerama --with-nlsdir=/usr/share/locale
--with-gnustepdir=/usr/lib/GNUstep --enable-usermenu --enable-modelock
--enable-xrandr --disable-static"
makedepends="pkg-config libXinerama-devel libXrandr-devel
libXmu-devel libpng-devel>=1.6 libXpm-devel libXft-devel tiff-devel
giflib-devel fontconfig-devel"
--enable-usermenu --enable-modelock --enable-xrandr --disable-static"
hostmakedepends="automake libtool pkg-config"
makedepends="libXinerama-devel libXrandr-devel libXmu-devel libXpm-devel
libXpm-devel libXft-devel libpng-devel>=1.6 tiff-devel giflib-devel
fontconfig-devel"
conf_files="
/etc/WindowMaker/WindowMaker
/etc/WindowMaker/WMRootMenu
/etc/WindowMaker/WMWindowAttributes
/etc/WindowMaker/WMState
/etc/WindowMaker/WMGLOBA"
short_desc="An X11 window manager with a NEXTSTEP look and feel"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3"
homepage="http://www.windowmaker.org/"
distfiles="http://windowmaker.org/pub/source/release/${pkgname}-${version}.tar.gz"
checksum=2bea97f00570f05ff115d147457c16abefe496a4fc882a027152ce592d768e45
checksum=4b25f474fde032a060c93fbc50f1ce04729ab17ea963ca3eb8dbb82f49af70d0
pre_configure() {
autoreconf -fi
}
post_configure() {
# Remove hardcoded /usr/{include,lib} paths!
find ${wrksrc} -name Makefile -exec sed 's,-L${libdir},,g;s,-I${includedir},,g' -i {} \;
}
post_install() {
vinstall COPYING.WTFPL 644 usr/share/licenses/${pkgname}
@ -22,23 +37,11 @@ post_install() {
}
WindowMaker-devel_package() {
depends="${sourcepkg}>=${version}"
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}
WindowMaker_package() {
conf_files="
/etc/WindowMaker
/etc/WindowMaker/WindowMaker
/etc/WindowMaker/WMRootMenu
/etc/WindowMaker/WMWindowAttributes
/etc/WindowMaker/WMState
/etc/WindowMaker/WMGLOBA"
pkg_install() {
vmove all
}
}

26
srcpkgs/a10disp/template Normal file
View File

@ -0,0 +1,26 @@
# Template file for 'a10disp'
pkgname=a10disp
version=20140127
revision=1
short_desc="Utility to change the display mode of Allwinner A10/13/20 devices"
maintainer="Juan RP <xtraeme@gmail.com>"
license="MIT"
homepage="https://github.com/hglm/a10disp"
only_for_archs="armv7l"
makedepends="fbset cubieboard2-kernel-headers"
depends="fbset"
do_fetch() {
git clone git://github.com/hglm/a10disp ${pkgname}-${version}
}
do_build() {
cp ${XBPS_CROSS_BASE}/usr/src/cubieboard2-kernel*/include/video/sunxi_disp_ioctl.h .
$CC -Wall a10disp.c -o a10disp
}
do_install() {
vinstall a10disp 755 usr/bin
vinstall README 644 usr/share/doc/a10disp
}

View File

@ -13,9 +13,3 @@ checksum=2a9635f62aabc59edb54ada07048dd47e896b90caff94bcee710d3582606f55f
long_desc="
a2jmidid is daemon for exposing legacy ALSA sequencer applications in JACK
MIDI system."
a2jmidid_package() {
pkg_install() {
vmove usr
}
}

View File

@ -30,9 +30,3 @@ aalib-devel_package() {
vmove usr/share/man/man3
}
}
aalib_package() {
pkg_install() {
vmove usr
}
}

View File

@ -5,16 +5,10 @@ build_style=gnu-makefile
revision=2
hostmakedepends="pkg-config"
makedepends="qt-devel gtkmm2-devel lv2"
depends="lv2"
short_desc="LV2 Noise Gate plugin"
maintainer="davehome <davehome@redthumb.info.tm>"
license="GPL-3"
homepage="http://abgate.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/abgate/${pkgname}-${version}.tar.gz"
checksum=df1e0457757ba3c01ba55eba975fd04f8b96c10157ae1955738c0a77106dafa4
abGate_package() {
depends="lv2"
pkg_install() {
vmove usr
}
}

15
srcpkgs/abcde/template Normal file
View File

@ -0,0 +1,15 @@
# Template file for 'abcde'
pkgname=abcde
version=2.5.4
revision=2
noarch="yes"
conf_files="/etc/${pkgname}.conf"
makedepends="cd-discid vorbis-tools perl"
depends="${makedepends}"
build_style="gnu-makefile"
maintainer="Philipp Hirsch <itself@hanspolo.net>"
short_desc="A Better CD Encoder"
license="GPL-2"
homepage="http://code.google.com/p/abcde/"
distfiles="http://abcde.googlecode.com/files/${pkgname}-${version}.tar.gz"
checksum=85b679b970e728a986487adcbff7c51eb0e72f9fa10c4450521f8e029fa6e591

View File

@ -9,6 +9,8 @@ makedepends="libjpeg-turbo-devel libpng-devel>=1.6
fribidi-devel libgsf-devel enchant-devel gtk+3-devel librsvg-devel
wv-devel>=1.2.9 boost-devel libxslt-devel libwmf-devel libchamplain-devel
redland-devel libical-devel"
replaces="abiword-plugins>=0"
depends="hicolor-icon-theme desktop-file-utils"
short_desc="Free word processing program similar to Microsoft(R) Word"
maintainer="davehome <davehome@redthumb.info.tm>"
license="GPL-3"
@ -32,11 +34,3 @@ abiword-devel_package() {
vmove usr/lib/pkgconfig
}
}
abiword_package() {
replaces="abiword-plugins>=0"
depends="hicolor-icon-theme desktop-file-utils"
pkg_install() {
vmove all
}
}

View File

@ -2,18 +2,11 @@
pkgname=abook
version=0.5.6
revision=1
build_style=gnu-configure
makedepends="ncurses-devel readline-devel"
maintainer="Philipp Hirsch <itself@hanspolo.net>"
license="GPL-2"
homepage="http://abook.sourceforge.net/"
short_desc="text-based addressbook designed to use with mutt mail client"
distfiles="http://prdownloads.sourceforge.net/abook/${pkgname}-${version}.tar.gz"
checksum=0646f6311a94ad3341812a4de12a5a940a7a44d5cb6e9da5b0930aae9f44756e
short_desc="text-based addressbook designed to use with mutt mail client"
makedepends="ncurses-devel readline-devel"
build_style=gnu-configure
abook_package() {
pkg_install() {
vmove all
}
}

View File

@ -7,6 +7,9 @@ configure_args="--disable-static
--with-systemdsystemunitdir=/usr/lib/systemd/system"
hostmakedepends="pkg-config intltool gobject-introspection"
makedepends="polkit-devel systemd-devel"
make_dirs="
/var/lib/AccountsService/users 755 root root
/var/lib/AccountsService/icons 755 root root"
short_desc="D-Bus interfaces for querying and manipulating user account information"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://cgit.freedesktop.org/accountsservice/"
@ -29,12 +32,3 @@ accountsservice-devel_package() {
vmove usr/share/gtk-doc
}
}
accountsservice_package() {
make_dirs="
/var/lib/AccountsService/users 755 root root
/var/lib/AccountsService/icons 755 root root"
pkg_install() {
vmove all
}
}

View File

@ -18,9 +18,3 @@ post_install() {
rm ${DESTDIR}/usr/bin/last
rm ${DESTDIR}/usr/share/man/man1/last.1
}
acct_package() {
pkg_install() {
vmove usr
}
}

View File

@ -2,6 +2,7 @@
pkgname=acl
version=2.2.52
revision=2
bootstrap=yes
build_style=gnu-configure
configure_args="--libdir=/usr/lib --libexecdir=/usr/lib"
makedepends="attr-devel"
@ -12,8 +13,6 @@ license="LGPL-2.1"
distfiles="${NONGNU_SITE}/acl/acl-${version}.src.tar.gz"
checksum=179074bb0580c06c4b4137be4c5a92a701583277967acdb5546043c7874e0d23
bootstrap=yes
if [ -z "$CHROOT_READY" ]; then
CFLAGS+=" -I${XBPS_MASTERDIR}/usr/include"
LDFLAGS+=" -L${XBPS_MASTERDIR}/usr/lib"
@ -42,9 +41,3 @@ acl-progs_package() {
vmove usr/share
}
}
acl_package() {
pkg_install() {
vmove all
}
}

View File

@ -1,7 +1,7 @@
# Template file for 'acpi'
pkgname=acpi
version=1.7
revision=1
revision=2
build_style=gnu-configure
short_desc="Displays informations about ACPI devices (battery, thermal sensors and power)"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
@ -9,13 +9,3 @@ license="GPL-2"
homepage="http://sourceforge.net/projects/acpiclient/"
distfiles="http://downloads.sourceforge.net/acpiclient/$pkgname-$version.tar.gz"
checksum=d7a504b61c716ae5b7e81a0c67a50a51f06c7326f197b66a4b823de076a35005
do_install() {
make DESTDIR=$DESTDIR install
}
acpi_package() {
pkg_install() {
vmove usr
}
}

View File

@ -1,32 +1,16 @@
# Template file for 'acpica-utils'
pkgname=acpica-utils
version=20130725
version=20140114
wrksrc=acpica-unix-${version}
revision=1
only_for_archs="i686 x86_64"
hostmakedepends="flex"
short_desc="Intel ACPI CA Unix utilities"
homepage="https://www.acpica.org/"
license="GPL-2"
maintainer="Juan RP <xtraeme@gmail.com>"
distfiles="http://acpica.org/sites/acpica/files/acpica-unix-${version}.tar.gz"
checksum=ce2651e1b3a74d5eada4baea2cec9646ff9a20204bb703ce014a3433b99f0ea2
long_desc="
This package contains only the user-space tools needed for ACPI table
development, not the kernel implementation of ACPI. The following commands
are installed:
* iasl: compiles ASL (ACPI Source Language) into AML (ACPI Machine
Language), suitable for inclusion as a DSDT in system firmware.
It also can disassemble AML, for debugging purposes.
* acpibin: performs basic operations on binary AML files (e.g.,
comparison, data extraction)
* acpiexec: simulate AML execution in order to debug method definitions
* acpihelp: display help messages describing ASL keywords and op-codes
* acpinames: display complete ACPI name space from input AML
* acpisrc: manipulate the ACPICA source tree and format source files
for specific environments
* acpixtract: extract binary ACPI tables from acpidump output (see
also the pmtools package)"
checksum=bd6ac4d7d4ac451c4c3224bbfe77497ffd55b26217c3cd422973f190af64e77a
do_build() {
sed -e 's/_CYGWIN/_LINUX/g' -e 's/-Werror//g' -i generate/unix/Makefile.config
@ -41,9 +25,3 @@ do_build() {
do_install() {
make DESTDIR=${DESTDIR} install
}
acpica-utils_package() {
pkg_install() {
vmove all
}
}

View File

@ -3,6 +3,8 @@ pkgname=acpid
version=2.0.19
revision=1
build_style=gnu-configure
conf_files="/etc/acpi/events/anything /etc/acpi/handler.sh"
systemd_services="acpid.socket on"
short_desc="The ACPI Daemon (acpid) With Netlink Support"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
@ -22,11 +24,3 @@ post_install() {
vinstall ${FILESDIR}/handler.sh 755 etc/acpi
vinstall ${FILESDIR}/anything 644 etc/acpi/events
}
acpid_package() {
conf_files="/etc/acpi/events/anything /etc/acpi/handler.sh"
systemd_services="acpid.socket on"
pkg_install() {
vmove all
}
}

View File

@ -1,22 +1,17 @@
# Template file for 'acr'
pkgname=acr
version=0.9.6
version=0.9.8
revision=1
noarch=yes
create_srcdir=yes
build_style=gnu-configure
short_desc="AutoConf Replacement"
maintainer="pancake <pancake@nopcode.org>"
license="GPL-3"
homepage="http://github.com/radare/${pkgname}"
distfiles="https://github.com/radare/${pkgname}/archive/${version}.tar.gz"
checksum=ad5ebef15c835e86f6bd6479633ec94a34d0b57dfc684c36a42cba4d655ef407
checksum=10db4b3f8272f427a245c0bbe039c1e240dc810de9ced4aa8789f4b28f0bf4ec
long_desc="
ACR tries to replace autoconf functionality generating a full-compatible
'configure' script (runtime flags). But using shell-script instead of m4.
configure script (runtime flags). But using shell-script instead of m4.
This means that ACR is faster, smaller and easy to use."
acr_package() {
noarch="yes"
pkg_install() {
vmove usr
}
}

View File

@ -20,6 +20,9 @@ short_desc="Adobe Flash Player plugin for Netscape compatible browsers"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.adobe.com"
license="Adobe License (non free)"
nonfree="yes"
makedepends="curl hicolor-icon-theme desktop-file-utils"
depends="${makedepends}"
create_srcdir=yes
create_wrksrc=yes
@ -40,11 +43,3 @@ do_install() {
vinstall "${XBPS_SRCDISTDIR}/${pkgname}-${version}/$(basename ${_eula})" 644 \
usr/share/licenses/${pkgname} LICENSE.pdf
}
adobe-flash-plugin_package() {
nonfree="yes"
depends="curl hicolor-icon-theme desktop-file-utils"
pkg_install() {
vmove all
}
}

View File

@ -20,6 +20,11 @@ short_desc="Adobe Flash Player plugin (11.1 series)"
homepage="http://www.adobe.com"
license="Propietary license - adobe"
maintainer="Juan RP <xtraeme@gmail.com>"
nonfree="yes"
replaces="adobe-flash-plugin>=0"
provides="adobe-flash-plugin-11.1.102.63"
makedepends="curl hicolor-icon-theme desktop-file-utils"
depends="${makedepends}"
create_srcdir=yes
create_wrksrc=yes
@ -39,13 +44,3 @@ do_install() {
vinstall "${XBPS_SRCDISTDIR}/${pkgname}-${version}/$(basename ${_eula})" 644 \
usr/share/licenses/${pkgname} LICENSE.pdf
}
adobe-flash-plugin11.1_package() {
nonfree="yes"
replaces="adobe-flash-plugin>=0"
provides="adobe-flash-plugin-11.1.102.63"
depends="curl hicolor-icon-theme desktop-file-utils"
pkg_install() {
vmove usr
}
}

View File

@ -46,9 +46,3 @@ agar-devel_package() {
vmove usr/share/man
}
}
agar_package() {
pkg_install() {
vmove usr
}
}

View File

@ -32,9 +32,3 @@ agg-devel_package() {
vmove usr/share
}
}
agg_package() {
pkg_install() {
vmove usr
}
}

View File

@ -1,13 +1,13 @@
# Template file for 'akonadi'
pkgname=akonadi
version=1.10.3
revision=2
version=1.11.0
revision=1
short_desc="PIM layer, which provides an asynchronous API to access all kind of PIM data"
maintainer="Juan RP <xtraeme@gmail.com>"
license="LGPL-2.1"
homepage="http://community.kde.org/KDE_PIM/Akonadi"
distfiles="http://download.kde.org/stable/${pkgname}/src/${pkgname}-${version}-1.tar.bz2"
checksum=a8f66eec479c235ec67e77befac50c42743f627663fe2bb49238e82e6fbfffb0
distfiles="http://download.kde.org/stable/${pkgname}/src/${pkgname}-${version}.tar.bz2"
checksum=0cb257509d53927241b71d85c42efb0b5776efc37fc8dc732e75f6813b8a264d
build_style=cmake
configure_args="-DAKONADI_BUILD_TESTS=OFF -DINSTALL_QSQLITE_IN_QT_PREFIX=TRUE
@ -17,10 +17,11 @@ configure_args="-DAKONADI_BUILD_TESTS=OFF -DINSTALL_QSQLITE_IN_QT_PREFIX=TRUE
hostmakedepends="cmake automoc4 pkg-config"
makedepends="shared-mime-info sqlite-devel boost-devel>=1.54 qt-devel
phonon-devel soprano-devel>=2.9.2_4"
depends="shared-mime-info"
akonadi-devel_package() {
short_desc+=" - development files"
depends="qt-devel ${sourcepkg}-${version}_${revision}"
depends="qt-devel ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
@ -28,10 +29,3 @@ akonadi-devel_package() {
vmove "usr/lib/*.so"
}
}
akonadi_package() {
depends="shared-mime-info"
pkg_install() {
vmove all
}
}

View File

@ -0,0 +1,22 @@
Mesa<=10.0.1 removed the GLXContextID from glx.h and it has been re-added since:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f425d56ba41382be04366d011536ee78a03a2f33
For now, use the same type (XID) than GLXContextID; we can remove this patch
once mesa-10 contains the above commit.
-- xtraeme
--- addons/allegrogl/include/allegrogl/GLext/glx_ext_api.h.orig 2014-01-05 09:08:26.796542194 +0100
+++ addons/allegrogl/include/allegrogl/GLext/glx_ext_api.h 2014-01-05 09:08:46.115682136 +0100
@@ -59,8 +59,8 @@ AGL_API(void, DestroyGLXVideoSourceSGIX,
/* GLX_EXT_import_context */
AGL_API(Display *, GetCurrentDisplayEXT, (void))
AGL_API(int, QueryContextInfoEXT, (Display *, GLXContext, int, int *))
-AGL_API(GLXContextID, GetContextIDEXT, (const GLXContext))
-AGL_API(GLXContext, ImportContextEXT, (Display *, GLXContextID))
+AGL_API(XID, GetContextIDEXT, (const GLXContext))
+AGL_API(GLXContext, ImportContextEXT, (Display *, XID))
AGL_API(void, FreeContextEXT, (Display *, GLXContext))
#endif

View File

@ -1,13 +1,15 @@
# Template file for 'allegro4'.
pkgname=allegro4
version=4.4.2
revision=1
revision=2
wrksrc="allegro-${version}"
build_style=cmake
configure_args="-DWANT_DOCS=OFF"
hostmakedepends="pkg-config cmake"
makedepends="zlib-devel alsa-lib-devel jack-devel libXpm-devel libXxf86vm-devel
libXxf86dga-devel libXcursor-devel libvorbis-devel libpng-devel glu-devel"
# libGL.so is dlopen()ed.
depends="libGL"
short_desc="Portable library mainly aimed at video game and multimedia programming"
maintainer="Juan RP <xtraeme@gmail.com>"
license="Allegro License (MIT alike)"
@ -16,19 +18,13 @@ distfiles="${SOURCEFORGE_SITE}/alleg/allegro-$version.tar.gz"
checksum=1b21e7577dbfada02d85ca4510bd22fedaa6ce76fde7f4838c7c1276eb840fdc
allegro4-devel_package() {
depends="${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/bin/allegro-config
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}
allegro4_package() {
# libGL.so is dlopen()ed.
depends="libGL"
pkg_install() {
vmove usr
vmove usr/lib/pkgconfig
}
}

View File

@ -40,12 +40,6 @@ alsa-lib-devel_package() {
}
}
alsa-lib_package() {
pkg_install() {
vmove all
}
}
if [ -z "$CROSS_BUILD" ]; then
alsa-lib-python_package() {
short_desc+=" - python smixer plugin"

View File

@ -58,9 +58,3 @@ alsa-plugins-ffmpeg_package() {
vmove "usr/lib/alsa-lib/*a52*"
}
}
alsa-plugins_package() {
pkg_install() {
vmove all
}
}

View File

@ -7,6 +7,9 @@ configure_args="--with-systemdsystemunitdir=/usr/lib/systemd/system
--with-udev-rules-dir=/usr/lib/udev/rules.d -disable-alsaconf"
hostmakedepends="pkg-config xmlto"
makedepends="ncurses-devel alsa-lib-devel>=1.0.27 libsamplerate-devel"
# Needs snd_pcm_abort() from >= 1.0.27.
depends="alsa-lib>=1.0.27"
make_dirs="/var/lib/alsa 0750 root root"
short_desc="The Advanced Linux Sound Architecture (ALSA) utils"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.alsa-project.org"
@ -24,12 +27,3 @@ post_install() {
make -C alsactl 90-alsa-restore.rules
vinstall alsactl/90-alsa-restore.rules 644 usr/lib/udev/rules.d
}
alsa-utils_package() {
# Needs snd_pcm_abort() from >= 1.0.27.
depends="alsa-lib>=1.0.27"
make_dirs="/var/lib/alsa 0750 root root"
pkg_install() {
vmove all
}
}

View File

@ -21,6 +21,7 @@ makedepends="gtksourceview-devel>=3.10 libxml2-devel vte3-devel gjs-devel>=1.38
libxslt-devel glade3-devel>=3.16 graphviz-devel vala-devel>=0.22 gdl-devel>=3.10
libgda-devel devhelp-devel>=3.10 sqlite-devel apr-util-devel
neon-devel subversion-devel python-devel"
depends="autogen"
anjuta-devel_package() {
short_desc+=" - Development files"
@ -41,10 +42,3 @@ anjuta-docs_package() {
vmove usr/share/gtk-doc
}
}
anjuta_package() {
depends="autogen"
pkg_install() {
vmove all
}
}

View File

@ -2,21 +2,15 @@
pkgname=ansible
version=1.4.3
revision=1
noarch="yes"
build_style=python-module
hostmakedepends="python"
makedepends="python-devel python-jinja python-paramiko pyyaml"
depends="python python-jinja python-paramiko pyyaml"
pycompile_module="${pkgname}"
short_desc="A radically simple deployment, model-driven configuration management, and command execution framework"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3"
homepage="http://www.ansibleworks.com"
distfiles="http://www.ansibleworks.com/releases/$pkgname-$version.tar.gz"
checksum=0741788cdd86d2e3bbfb4474c26bb13d57690ed2e2c8ff8dd1c271a7de590ee3
ansible_package() {
noarch="yes"
pycompile_module="${pkgname}"
depends="python python-jinja python-paramiko pyyaml"
pkg_install() {
vmove all
}
}

View File

@ -28,6 +28,10 @@ long_desc="
This MPM is experimental and less tested than the worker and prefork MPMs."
# dlopen(3) run-time dependencies.
depends="apache>=$version"
systemd_services="apache-mpm-event.service on"
pre_configure() {
cat ${XBPS_SRCPKGDIR}/apache/files/xbps.layout >> config.layout
}
@ -39,12 +43,3 @@ post_install() {
vinstall httpd 755 usr/sbin httpd.event
vinstall ${FILESDIR}/${pkgname}.service 644 usr/lib/systemd/system
}
apache-mpm-event_package() {
# dlopen(3) run-time dependencies.
depends="apache>=$version"
systemd_services="apache-mpm-event.service on"
pkg_install() {
vmove usr
}
}

View File

@ -25,6 +25,10 @@ long_desc="
recommended especially for high-traffic sites because it is faster and has
a smaller memory footprint than the traditional prefork MPM."
# dlopen(3) run-time dependencies.
depends="apache>=$version"
systemd_services="apache-mpm-worker.service on"
pre_configure() {
cat ${XBPS_SRCPKGDIR}/apache/files/xbps.layout >> config.layout
}
@ -36,12 +40,3 @@ post_install() {
vinstall httpd 755 usr/sbin httpd.worker
vinstall ${FILESDIR}/${pkgname}.service 644 usr/lib/systemd/system
}
apache-mpm-worker_package() {
# dlopen(3) run-time dependencies.
depends="apache>=$version"
systemd_services="apache-mpm-worker.service on"
pkg_install() {
vmove usr
}
}

View File

@ -22,6 +22,25 @@ configure_args="--prefix= --enable-pie --enable-modules=all
hostmakedepends="pkg-config perl"
makedepends="zlib-devel libuuid-devel pcre-devel>=8.30
openssl-devel db-devel gdbm-devel expat-devel libldap-devel apr-util-devel"
conf_files="
/etc/httpd/extra/httpd-autoindex.conf
/etc/httpd/extra/httpd-dav.conf
/etc/httpd/extra/httpd-manual.conf
/etc/httpd/extra/httpd-vhosts.conf
/etc/httpd/extra/httpd-info.conf
/etc/httpd/extra/httpd-languages.conf
/etc/httpd/extra/httpd-userdir.conf
/etc/httpd/extra/httpd-ssl.conf
/etc/httpd/extra/httpd-mpm.conf
/etc/httpd/extra/httpd-default.conf
/etc/httpd/extra/httpd-multilang-errordoc.conf
/etc/httpd/httpd.conf
/etc/httpd/magic
/etc/httpd/mime.types"
systemd_services="apache.service on"
system_accounts="httpd"
httpd_descr="Apache HTTP server"
httpd_homedir="/srv/httpd"
short_desc="The Number One HTTP Server On The Internet"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://httpd.apache.org/"
@ -87,28 +106,3 @@ apache-devel_package() {
vmove "usr/share/man/man1/apxs*"
}
}
apache_package() {
conf_files="
/etc/httpd/extra/httpd-autoindex.conf
/etc/httpd/extra/httpd-dav.conf
/etc/httpd/extra/httpd-manual.conf
/etc/httpd/extra/httpd-vhosts.conf
/etc/httpd/extra/httpd-info.conf
/etc/httpd/extra/httpd-languages.conf
/etc/httpd/extra/httpd-userdir.conf
/etc/httpd/extra/httpd-ssl.conf
/etc/httpd/extra/httpd-mpm.conf
/etc/httpd/extra/httpd-default.conf
/etc/httpd/extra/httpd-multilang-errordoc.conf
/etc/httpd/httpd.conf
/etc/httpd/magic
/etc/httpd/mime.types"
systemd_services="apache.service on"
system_accounts="httpd"
httpd_descr="Apache HTTP server"
httpd_homedir="/srv/httpd"
pkg_install() {
vmove all
}
}

View File

@ -23,9 +23,3 @@ do_install() {
install -D -m644 doc/man/$i.1 ${DESTDIR}/usr/share/man/man1/$i.1
done
}
apg_package() {
pkg_install() {
vmove usr
}
}

View File

@ -86,9 +86,3 @@ apr-util-sqlite_package() {
vmove "usr/lib/apr-util-1/apr_dbd_sqlite*"
}
}
apr-util_package() {
pkg_install() {
vmove usr
}
}

View File

@ -36,9 +36,3 @@ apr-devel_package() {
vmove usr/lib/pkgconfig
}
}
apr_package() {
pkg_install() {
vmove usr
}
}

View File

@ -6,6 +6,7 @@ build_style=cmake
configure_args="-DWITHOUT_EMBEDDED_DISPLAY=1"
hostmakedepends="cmake"
makedepends="qt-devel qemu desktop-file-utils"
depends="qemu desktop-file-utils"
short_desc="GUI to QEMU and KVM emulators, written in Qt4"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://aqemu.sourceforge.net"
@ -16,10 +17,3 @@ long_desc="
AQEMU is GUI to QEMU and KVM emulators, written in Qt4. The program has
user-friendly interface and allows to set up the majority of QEMU and KVM
options."
aqemu_package() {
depends="qemu desktop-file-utils"
pkg_install() {
vmove usr
}
}

View File

@ -12,16 +12,10 @@ configure_args="--with-openssl --with-libexpat --without-gnutls
hostmakedepends="pkg-config"
makedepends="zlib-devel gmp-devel expat-devel openssl-devel sqlite-devel
c-ares-devel ca-certificates"
depends="ca-certificates"
short_desc="Lightweight multi-protocol/multi-source command-line download utility"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://aria2.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.xz"
checksum=b4c99eea9e11d265ed90ab685571f7328a20f5c5a438da93ecdba0959170f460
aria2_package() {
depends="ca-certificates"
pkg_install() {
vmove all
}
}

View File

@ -19,9 +19,3 @@ do_fetch() {
do_install() {
vinstall libarmmem.so 755 usr/lib
}
arm-mem-git_package() {
pkg_install() {
vmove all
}
}

View File

@ -2,6 +2,8 @@
pkgname=artwiz-fonts
version=1.3
revision=1
noarch="yes"
wrksrc="artwiz-aleczapka-en-${version}"
short_desc="Small futuristic ASCII fonts for X"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
homepage="http://artwizaleczapka.sourceforge.net/"
@ -9,7 +11,8 @@ license="GPL-2"
distfiles="http://downloads.sourceforge.net/sourceforge/artwizaleczapka/artwiz-aleczapka-en-${version}.tar.bz2"
checksum=19f163de81548db9b9dd7d3a415fba379f1d17989020236aa4eb88c25929afe1
makedepends="font-util mkfontdir"
wrksrc="artwiz-aleczapka-en-${version}"
depends="${makedepends}"
font_dirs="/usr/share/fonts/artwiz-fonts"
do_install() {
vmkdir usr/share/fonts/artwiz-fonts
@ -18,12 +21,3 @@ do_install() {
vinstall fonts.alias 644 usr/share/fonts/artwiz-fonts
vinstall README 644 usr/share/doc/artwiz-fonts
}
artwiz-fonts_package() {
depends="${makedepends}"
noarch="yes"
font_dirs="/usr/share/fonts/artwiz-fonts"
pkg_install() {
vmove usr
}
}

View File

@ -2,8 +2,35 @@
pkgname=asciidoc
version=8.6.9
revision=1
noarch="yes"
build_style=gnu-configure
makedepends="python libxslt docbook-xsl"
depends="${makedepends}"
conf_files="
/etc/asciidoc/asciidoc.conf
/etc/asciidoc/docbook45.conf
/etc/asciidoc/filters/code/code-filter.conf
/etc/asciidoc/filters/graphviz/graphviz-filter.conf
/etc/asciidoc/filters/latex/latex-filter.conf
/etc/asciidoc/filters/music/music-filter.conf
/etc/asciidoc/filters/source/source-highlight-filter.conf
/etc/asciidoc/help.conf
/etc/asciidoc/html4.conf
/etc/asciidoc/lang-de.conf
/etc/asciidoc/lang-en.conf
/etc/asciidoc/lang-es.conf
/etc/asciidoc/lang-fr.conf
/etc/asciidoc/lang-hu.conf
/etc/asciidoc/lang-it.conf
/etc/asciidoc/lang-pt-BR.conf
/etc/asciidoc/lang-ru.conf
/etc/asciidoc/lang-uk.conf
/etc/asciidoc/latex.conf
/etc/asciidoc/slidy.conf
/etc/asciidoc/text.conf
/etc/asciidoc/wordpress.conf
/etc/asciidoc/xhtml11.conf
/etc/asciidoc/xhtml11-quirks.conf"
short_desc="Text based document generation"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.methods.co.nz/asciidoc/"
@ -18,36 +45,3 @@ long_desc="
AsciiDoc is highly configurable: both the AsciiDoc source file syntax
and the backend output markups (which can be almost any type of SGML/XML
markup) can be customized and extended by the user."
asciidoc_package() {
depends="${makedepends}"
conf_files="
/etc/asciidoc/asciidoc.conf
/etc/asciidoc/docbook45.conf
/etc/asciidoc/filters/code/code-filter.conf
/etc/asciidoc/filters/graphviz/graphviz-filter.conf
/etc/asciidoc/filters/latex/latex-filter.conf
/etc/asciidoc/filters/music/music-filter.conf
/etc/asciidoc/filters/source/source-highlight-filter.conf
/etc/asciidoc/help.conf
/etc/asciidoc/html4.conf
/etc/asciidoc/lang-de.conf
/etc/asciidoc/lang-en.conf
/etc/asciidoc/lang-es.conf
/etc/asciidoc/lang-fr.conf
/etc/asciidoc/lang-hu.conf
/etc/asciidoc/lang-it.conf
/etc/asciidoc/lang-pt-BR.conf
/etc/asciidoc/lang-ru.conf
/etc/asciidoc/lang-uk.conf
/etc/asciidoc/latex.conf
/etc/asciidoc/slidy.conf
/etc/asciidoc/text.conf
/etc/asciidoc/wordpress.conf
/etc/asciidoc/xhtml11.conf
/etc/asciidoc/xhtml11-quirks.conf"
noarch="yes"
pkg_install() {
vmove all
}
}

View File

@ -2,6 +2,7 @@
pkgname=aspell-en
version=7.1
revision=1
noarch=yes
wrksrc="aspell6-en-${version}-0"
build_style=configure
hostmakedepends="which"
@ -12,10 +13,3 @@ license="LGPL-2.1"
maintainer="Juan RP <xtraeme@gmail.com>"
distfiles="${GNU_SITE}/aspell/dict/en/aspell6-en-${version}-0.tar.bz2"
checksum=ff9df3c2e8c5bb19c6a66078b36a0ef4c4dfb0fcb969e29f7b5345e26d748d0a
aspell-en_package() {
noarch=yes
pkg_install() {
vmove all
}
}

View File

@ -22,6 +22,7 @@ build_style=gnu-configure
configure_args="--enable-compile-in-filters"
hostmakedepends="perl"
makedepends="ncurses-devel"
depends="perl"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" automake libtool gettext-devel"
@ -41,10 +42,3 @@ aspell-devel_package() {
vmove usr/share/man/man1/pspell-config.1
}
}
aspell_package() {
depends="perl"
pkg_install() {
vmove usr
}
}

19
srcpkgs/astyle/template Normal file
View File

@ -0,0 +1,19 @@
# Template file for 'astyle'
pkgname=astyle
version=2.04
revision=1
wrksrc="$pkgname"
build_wrksrc="build/gcc"
build_style=gnu-makefile
short_desc="A free, fast and small automatic formatter for C, C++, C#, and Java source code"
maintainer="Juan RP <xtraeme@gmail.com>"
license="LGPL-3"
homepage="http://astyle.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}_${version}_linux.tar.gz"
checksum=70b37f4853c418d1e2632612967eebf1bdb93dfbe558c51d7d013c9b4e116b60
do_install() {
vinstall bin/astyle 755 usr/bin
vmkdir usr/share/doc/html/astyle
install -m644 ../../doc/*.html ${DESTDIR}/usr/share/doc/html/astyle
}

View File

@ -5,6 +5,7 @@ revision=1
build_style=gnu-configure
hostmakedepends="pkg-config intltool"
makedepends="libglib-devel>=2.38 atk-devel>=2.10 at-spi2-core-devel>=2.10"
depends="at-spi2-core>=2.10"
short_desc="A GTK+ module that bridges ATK to D-Bus at-spi"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.gnome.org"
@ -28,10 +29,3 @@ at-spi2-atk-devel_package() {
vmove "usr/lib/*.so"
}
}
at-spi2-atk_package() {
depends="at-spi2-core>=2.10"
pkg_install() {
vmove all
}
}

View File

@ -5,6 +5,7 @@ revision=1
build_style=gnu-configure
hostmakedepends="pkg-config intltool dbus gobject-introspection"
makedepends="libXext-devel libSM-devel libXtst-devel libXevie-devel dbus-devel"
conf_files="/etc/at-spi2/accessibility.conf"
short_desc="Assistive Technology Service Provider Interface"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.gnome.org"
@ -23,10 +24,3 @@ at-spi2-core-devel_package() {
vmove "usr/lib/*.so"
}
}
at-spi2-core_package() {
conf_files="/etc/at-spi2/accessibility.conf"
pkg_install() {
vmove all
}
}

View File

@ -3,8 +3,10 @@ pkgname=atf
version=0.18
revision=1
build_style=gnu-configure
hostmakedepends="libtool gdb"
hostmakedepends="automake libtool gdb"
makedepends="gdb xmlcatmgr"
depends="${makedepends}"
xml_entries="system http://www.NetBSD.org/XML/atf/tests-results.dtd /usr/share/xml/atf/tests-results.dtd"
short_desc="Automated Testing Framework"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://code.google.com/p/kyua/wiki/ATF"
@ -40,11 +42,3 @@ atf-libs_package() {
vmove "usr/lib/*.so.*"
}
}
atf_package() {
depends="gdb xmlcatmgr"
xml_entries="system http://www.NetBSD.org/XML/atf/tests-results.dtd /usr/share/xml/atf/tests-results.dtd"
pkg_install() {
vmove all
}
}

View File

@ -51,9 +51,3 @@ atk-devel_package() {
vmove usr/share/gtk-doc
}
}
atk_package() {
pkg_install() {
vmove all
}
}

Some files were not shown because too many files have changed in this diff Show More