Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions srcpkgs/acct/template
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,17 @@ version=6.6.4
revision=2
build_style=gnu-configure
short_desc="GNU Accounting Utilities"
homepage="https://www.gnu.org/software/acct/"
license="GPL-3.0-or-later"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://www.gnu.org/software/acct/"
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum=4c15bf2b58b16378bcc83f70e77d4d40ab0b194acf2ebeefdb507f151faa663f

if [ "$CROSS_BUILD" ]; then
post_extract() {
case "$XBPS_TARGET_MACHINE" in
*-musl) cp $FILESDIR/locs-musl locs ;;
*) cp $FILESDIR/locs-glibc locs ;;
esac
}
fi
post_extract() {
if [ "$CROSS_BUILD" ]; then
cp "$FILESDIR/locs-$XBPS_TARGET_LIBC" locs
fi
}

post_install() {
# The last(1) command is provided by util-linux
Expand Down
9 changes: 6 additions & 3 deletions srcpkgs/avahi/template
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,19 @@ system_accounts="avahi:23"

if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" automake libtool glib-devel gettext-devel"
pre_configure() {
autoreconf -if
}
fi

post_extract() {
# Avahi 0.8 release accidentally left this out of the tarball
cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/build-db.txt "${_build_db}"
}

pre_configure() {
if [ "$CROSS_BUILD" ]; then
autoreconf -if
fi
}

post_install() {
# Python modules will be built in avahi-discover subpackage
rm -rf ${DESTDIR}/usr/lib/python*
Expand Down
16 changes: 11 additions & 5 deletions srcpkgs/bc/template
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,20 @@ disable_parallel_build=yes

if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" bc"
pre_build() {
# don’t run target built binary 'fbc';
# run host 'bc' instead
sed -i -e 's|^\(\s\+\)./fbc|\1bc|g' bc/Makefile
}
fi

post_patch() {
# don’t run target built binary 'fbc';
# run host 'bc' instead
if [ "$CROSS_BUILD" ]; then
vsed -i -e 's|^\(\s\+\)./fbc|\1bc|g' bc/Makefile
fi
}

do_build() {
make ${makejobs} LEX="flex -I"
}

do_check() {
# LFS tells us that there are 10 know failures
# What happens here
Expand All @@ -49,6 +54,7 @@ do_check() {
echo "TESTS PASSED"
fi
}

post_install() {
mv ${DESTDIR}/usr/bin/{,gnu-}bc
mv ${DESTDIR}/usr/bin/{,gnu-}dc
Expand Down
12 changes: 8 additions & 4 deletions srcpkgs/ddcutil/template
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,18 @@ distfiles="https://github.com/rockowitz/ddcutil/archive/v${version}.tar.gz"
checksum=7bf4420778894caf37ca5f7bade34f7a31d996d92618bb85e18de55a5e5ac465

case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" libexecinfo-devel musl-legacy-compat"
*-musl)
makedepends+=" libexecinfo-devel musl-legacy-compat"
LDFLAGS="-lexecinfo"
post_extract() {
vsed -i -e "/AM_CFLAGS += -Wpedantic/d" src/app_sysenv/Makefile.am
}
;;
esac

post_patch() {
case "$XBPS_TARGET_MACHINE" in
*-musl) vsed -i -e "/AM_CFLAGS += -Wpedantic/d" src/app_sysenv/Makefile.am ;;
esac
}

pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}
Expand Down
10 changes: 5 additions & 5 deletions srcpkgs/diction/template
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ homepage="https://www.gnu.org/software/diction/diction.html"
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum=35c2f1bf8ddf0d5fa9f737ffc8e55230736e5d850ff40b57fdf5ef1d7aa024f6

if [ -n "$CROSS_BUILD" ]; then
pre_configure() {
post_patch() {
if [ "$CROSS_BUILD" ]; then
# cannot check for broken realloc when cross compiling
# but we know from native build that it’s not broken
# so remove the check (default is not broken)
sed -i -e "/checking for broken realloc/,/USE_NLS=no/ {/USE_NLS=no/!d}" configure
}
fi
vsed -i -e "/checking for broken realloc/,/USE_NLS=no/ {/USE_NLS=no/!d}" configure
fi
}
8 changes: 5 additions & 3 deletions srcpkgs/freerdp/template
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,13 @@ if [ "$CROSS_BUILD" ]; then
configure_args+="
-DCMAKE_CXX_COMPILER_AR=/usr/bin/${XBPS_CROSS_TRIPLET}-ar
-DCMAKE_CXX_COMPILER_RANLIB=/usr/bin/${XBPS_CROSS_TRIPLET}-ranlib"
fi

pre_configure() {
pre_configure() {
if [ "$CROSS_BUILD" ]; then
export CXX="$XBPS_WRAPPERDIR/${XBPS_CROSS_TRIPLET}-c++"
}
fi
fi
}

# first we want to separate -server, everything else then goes to client
subpackages="libfreerdp-server freerdp-server libfreerdp freerdp-devel
Expand Down
20 changes: 10 additions & 10 deletions srcpkgs/fs-uae/template
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,15 @@ case "$XBPS_TARGET_MACHINE" in
*) configure_args+=" --disable-jit" ;;
esac

if [ "$CROSS_BUILD" ]; then
post_configure() {
post_patch() {
if [ "$XBPS_TARGET_LIBC" = musl ]; then
vsed -i -e 's/| RTLD_DEEPBIND//' src/dlopen.cpp
fi
vsed -i -e '/^NoDisplay/d' share/applications/fs-uae.desktop
}

post_configure() {
if [ "$CROSS_BUILD" ]; then
make $makejobs \
CC=$CC_FOR_BUILD CFLAGS=$CFLAGS_FOR_BUILD \
CXX=$CXX_FOR_BUILD CXXFLAGS=$CXXFLAGS_FOR_BUILD \
Expand All @@ -31,12 +38,5 @@ if [ "$CROSS_BUILD" ]; then
rm src/readcpu.o gen/cpudefs.o
make $makejobs src/readcpu.o gen/cpudefs.o
touch gen/*
}
fi

post_extract() {
case "$XBPS_TARGET_MACHINE" in
*-musl) sed -i -e 's/| RTLD_DEEPBIND//' src/dlopen.cpp ;;
esac
sed -i -e '/^NoDisplay/d' share/applications/fs-uae.desktop
fi
}
28 changes: 14 additions & 14 deletions srcpkgs/gap/template
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,6 @@ changelog="https://raw.githubusercontent.com/gap-system/gap/master/CHANGES.md"
distfiles="https://github.com/gap-system/gap/releases/download/v${version}/gap-${version}.tar.gz"
checksum=6049d53e99b12e25c2d848db21ac4a06380a46fe4c4157243d556fe06930042c

if [ "$XBPS_CHECK_PKGS" = full ]; then
do_check() {
# disable failing test
rm -f tst/teststandard/testLuxPahlings/example_4.4.18.tst
# about 5 minutes single core
./gap tst/teststandard.g
}
fi

_GAPROOT=/usr/share/gap/

# minimal required packages
Expand All @@ -41,11 +32,6 @@ post_extract() {
mv pkg.install pkg
}

post_install() {
vmkdir ${_GAPROOT}
vcopy pkg ${_GAPROOT}
}

pre_check() {
msg_normal "Check that loading packages works\n"
for p in ${_GAPPKGS}; do
Expand All @@ -57,6 +43,20 @@ pre_check() {
done | ./gap --quitonbreak -b -q -r
}

do_check() {
if [ "$XBPS_CHECK_PKGS" = full ]; then
# disable failing test
rm -f tst/teststandard/testLuxPahlings/example_4.4.18.tst
# about 5 minutes single core
./gap tst/teststandard.g
fi
}

post_install() {
vmkdir ${_GAPROOT}
vcopy pkg ${_GAPROOT}
}

gap-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
Expand Down
9 changes: 6 additions & 3 deletions srcpkgs/gdbm/template
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ checksum=6a24504a14de4a744103dcb936be976df6fbe88ccff26065e54c1c47946f4a5e

if [ "$CROSS_BUILD" ]; then
hostmakedepends="libtool automake gettext-devel"
pre_configure() {
autoreconf -fi
}
fi

pre_configure() {
if [ "$CROSS_BUILD" ]; then
autoreconf -fi
fi
}

post_install() {
# create symlinks for compatibility
vmkdir usr/include/gdbm
Expand Down
8 changes: 3 additions & 5 deletions srcpkgs/guitarix2/template
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,12 @@ case "$XBPS_TARGET_MACHINE" in
*) configure_args+=" --disable-sse" ;;
esac

if [ -n "$CROSS_BUILD" ]; then
post_extract() {
post_patch() {
if [ -n "$CROSS_BUILD" ]; then
# don’t test load the ladspa plugin when cross compiling
vsed -i "/features='test_loadable',/d" src/ladspa/wscript
}
fi
fi

post_patch() {
# we want to replace all occurrences of always_inline that are not in
# brackets or prefixed by _.
# defining always_inline as done by default breaks the [[gnu::always_inline]] attribute
Expand Down
19 changes: 9 additions & 10 deletions srcpkgs/higan/template
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,17 @@ checksum=18457ac2608ab548983c3266ae38e6397d1801773969a796a672e2d9c56c69c5
build_options="icarus"
build_options_default="icarus"

pre_install() {
vlicense $wrksrc/LICENSE.txt
}

if [ "$build_option_icarus" ];then
post_build() {
post_build() {
if [ "$build_option_icarus" ];then
cd $wrksrc/icarus
make ${makejobs} compiler=${CXX} platform=linux
}
fi
}

post_install() {
post_install() {
if [ "$build_option_icarus" ];then
cd $wrksrc/icarus
make STRIP=true compiler=${CXX} platform=linux prefix=${DESTDIR}/usr install
}
fi
fi
vlicense $wrksrc/LICENSE.txt
}
15 changes: 10 additions & 5 deletions srcpkgs/liblrdf/template
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,27 @@ revision=2
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
makedepends="ladspa-sdk raptor-devel"
checkdepends="swh-plugins"
short_desc="Lightweight RDF library with special support for LADSPA plugins"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://github.com/swh/LRDF"
distfiles="https://github.com/swh/LRDF/archive/v${version}.tar.gz"
checksum=d579417c477ac3635844cd1b94f273ee2529a8c3b6b21f9b09d15f462b89b1ef

post_patch() {
vsed -i -e 's,/usr/local/share/ladspa,/usr/share/ladspa,g' examples/{instances,remove}_test.c
}

pre_configure() {
autoreconf -fi
}

if [ -n "$CROSS_BUILD" ]; then
post_build() {
sed -i -e "s|${XBPS_CROSS_BASE}||" lrdf.pc
}
fi
post_build() {
if [ -n "$CROSS_BUILD" ]; then
vsed -i -e "s|${XBPS_CROSS_BASE}||" lrdf.pc
fi
}

liblrdf-devel_package() {
depends="raptor-devel ${sourcepkg}>=${version}_${revision}"
Expand Down
14 changes: 9 additions & 5 deletions srcpkgs/libvdpau-va-gl/template
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@ changelog="https://raw.githubusercontent.com/i-rinat/libvdpau-va-gl/master/Chang
distfiles="${homepage}/releases/download/v${version}/libvdpau-va-gl-${version}.tar.gz"
checksum=7d9121540658eb0244859e63da171ca3869e784afbeaf202f44471275c784af4

if [ "$CROSS_BUILD" ]; then
# Compile tooling executed on the host with host CXX, otherwise cross fails
pre_build() {
pre_build() {
if [ "$CROSS_BUILD" ]; then
# Compile tooling executed on the host with host CXX, otherwise cross fails
${CXX_host} -O2 -pipe -c -o build/glsl/CMakeFiles/shader-bundle-tool.dir/shader-bundle-tool.cc.o glsl/shader-bundle-tool.cc
${CXX_host} -o build/glsl/shader-bundle-tool build/glsl/CMakeFiles/shader-bundle-tool.dir/shader-bundle-tool.cc.o
}
fi
fi
}

post_install() {
vlicense LICENSE
}
13 changes: 3 additions & 10 deletions srcpkgs/mosquitto/template
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,16 @@ make_dirs="/var/lib/mosquitto 0755 ${system_accounts} ${system_accounts}"
CFLAGS="-fcommon"

post_extract() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
post_extract() {
vsed -e 's/-lanl//' -i config.mk
}
esac
if [ "$XBPS_TARGET_LIBC" = musl ]; then
vsed -e 's/-lanl//' -i config.mk
fi
}

pre_check() {
# fd, addr = self._accept() # socket.timeout: timed out
vsed -i test/lib/Makefile -e /02-subscribe-qos/d
}

pre_install() {
sed -i 's,sbin,bin,g' */Makefile
}

post_install() {
vlicense edl-v10 LICENSE
mv ${DESTDIR}/etc/${pkgname}/${pkgname}.conf.example \
Expand Down
17 changes: 10 additions & 7 deletions srcpkgs/pcre/template
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ case "$XBPS_TARGET_MACHINE" in
*) configure_args+=" --disable-stack-for-recursion" ;;
esac

post_install() {
vlicense LICENCE
}

if [ "$CROSS_BUILD" ]; then
hostmakedepends="automake libtool"
pre_configure() {
fi

pre_configure() {
if [ "$CROSS_BUILD" ]; then
# Mips needs a hint if an FPU is available or not
case "$XBPS_TARGET_MACHINE" in
mips-musl|mipsel-musl)
Expand All @@ -36,8 +35,12 @@ if [ "$CROSS_BUILD" ]; then
;;
esac
autoreconf -fi
}
fi
fi
}

post_install() {
vlicense LICENCE
}

libpcrecpp_package() {
short_desc+=" - C++ shared libraries"
Expand Down
Loading
Loading