diff --git a/common/hooks/post-extract/00-patches.sh b/common/hooks/post-extract/00-patches.sh index f512640aeae..1e1e62cf86b 100644 --- a/common/hooks/post-extract/00-patches.sh +++ b/common/hooks/post-extract/00-patches.sh @@ -10,14 +10,14 @@ _process_patch() { elif [ -n "$patch_args" ]; then _args=$patch_args fi - cp -f $i $wrksrc + cp -f $i "$wrksrc" # Try to guess if its a compressed patch. if [[ $f =~ .gz$ ]]; then - gunzip $wrksrc/${_patch} + gunzip "$wrksrc/${_patch}" _patch=${_patch%%.gz} elif [[ $f =~ .bz2$ ]]; then - bunzip2 $wrksrc/${_patch} + bunzip2 "$wrksrc/${_patch}" _patch=${_patch%%.bz2} elif [[ $f =~ .diff ]]; then : @@ -28,7 +28,7 @@ _process_patch() { continue fi - cd $wrksrc + cd "$wrksrc" patch -sl ${_args} -i ${_patch} 2>/dev/null msg_normal "$pkgver: patch applied: ${_patch}.\n" } diff --git a/common/xbps-src/libexec/xbps-src-dobuild.sh b/common/xbps-src/libexec/xbps-src-dobuild.sh index 01a7540a99c..bf56ab76a45 100755 --- a/common/xbps-src/libexec/xbps-src-dobuild.sh +++ b/common/xbps-src/libexec/xbps-src-dobuild.sh @@ -32,7 +32,7 @@ if [ -f "$XBPS_BUILD_DONE" ]; then exit 0 fi -cd $wrksrc || msg_error "$pkgver: cannot access wrksrc directory [$wrksrc]\n" +cd "$wrksrc" || msg_error "$pkgver: cannot access wrksrc directory [$wrksrc]\n" if [ -n "$build_wrksrc" ]; then cd $build_wrksrc || \ msg_error "$pkgver: cannot access build_wrksrc directory [$build_wrksrc]\n" diff --git a/common/xbps-src/libexec/xbps-src-doconfigure.sh b/common/xbps-src/libexec/xbps-src-doconfigure.sh index 33e4235dd97..e53e1855a3c 100755 --- a/common/xbps-src/libexec/xbps-src-doconfigure.sh +++ b/common/xbps-src/libexec/xbps-src-doconfigure.sh @@ -32,7 +32,7 @@ if [ -f "$XBPS_CONFIGURE_DONE" ]; then exit 0 fi -cd $wrksrc || msg_error "$pkgver: cannot access wrksrc directory [$wrksrc].\n" +cd "$wrksrc" || msg_error "$pkgver: cannot access wrksrc directory [$wrksrc].\n" if [ -n "$build_wrksrc" ]; then cd $build_wrksrc || \ msg_error "$pkgver: cannot access build_wrksrc directory [$build_wrksrc].\n" diff --git a/common/xbps-src/libexec/xbps-src-doextract.sh b/common/xbps-src/libexec/xbps-src-doextract.sh index 820fe1651e5..d3f93bbd06c 100755 --- a/common/xbps-src/libexec/xbps-src-doextract.sh +++ b/common/xbps-src/libexec/xbps-src-doextract.sh @@ -41,7 +41,7 @@ fi # If template defines do_extract() use it rather than the hooks. if declare -f do_extract >/dev/null; then [ ! -d "$wrksrc" ] && mkdir -p $wrksrc - cd $wrksrc + cd "$wrksrc" run_func do_extract else if [ -n "$build_style" ]; then @@ -60,7 +60,7 @@ else fi -[ -d $wrksrc ] && cd $wrksrc +[ -d "$wrksrc" ] && cd "$wrksrc" # If template defines post_extract(), use it. if declare -f post_extract >/dev/null; then diff --git a/common/xbps-src/libexec/xbps-src-doinstall.sh b/common/xbps-src/libexec/xbps-src-doinstall.sh index 08b9723c71e..c8165273a61 100755 --- a/common/xbps-src/libexec/xbps-src-doinstall.sh +++ b/common/xbps-src/libexec/xbps-src-doinstall.sh @@ -28,7 +28,7 @@ XBPS_INSTALL_DONE="${XBPS_STATEDIR}/${sourcepkg}_${XBPS_CROSS_BUILD}_install_don XBPS_PRE_INSTALL_DONE="${XBPS_STATEDIR}/${sourcepkg}_${XBPS_CROSS_BUILD}_pre_install_done" XBPS_POST_INSTALL_DONE="${XBPS_STATEDIR}/${sourcepkg}_${XBPS_CROSS_BUILD}_post_install_done" -cd $wrksrc || msg_error "$pkgver: cannot access to wrksrc [$wrksrc]\n" +cd "$wrksrc" || msg_error "$pkgver: cannot access to wrksrc [$wrksrc]\n" if [ -n "$build_wrksrc" ]; then cd $build_wrksrc || msg_error "$pkgver: cannot access to build_wrksrc [$build_wrksrc]\n" fi @@ -48,7 +48,7 @@ if [ ! -f $XBPS_INSTALL_DONE ]; then # Run do_install() if [ ! -f $XBPS_INSTALL_DONE ]; then - cd $wrksrc + cd "$wrksrc" [ -n "$build_wrksrc" ] && cd $build_wrksrc if declare -f do_install >/dev/null; then run_func do_install @@ -64,7 +64,7 @@ if [ ! -f $XBPS_INSTALL_DONE ]; then # Run post_install() if [ ! -f $XBPS_POST_INSTALL_DONE ]; then - cd $wrksrc + cd "$wrksrc" [ -n "$build_wrksrc" ] && cd $build_wrksrc if declare -f post_install >/dev/null; then run_func post_install diff --git a/srcpkgs/quimup/patches/quimup.patch b/srcpkgs/quimup/patches/quimup.patch new file mode 100644 index 00000000000..60788eef634 --- /dev/null +++ b/srcpkgs/quimup/patches/quimup.patch @@ -0,0 +1,10 @@ +--- src/qtlocalpeer.cpp.orig ++++ src/qtlocalpeer.cpp +@@ -41,6 +41,7 @@ + #include "qtlocalpeer.h" + #include + #include ++#include + + #if defined(Q_OS_WIN) + #include diff --git a/srcpkgs/quimup/template b/srcpkgs/quimup/template new file mode 100644 index 00000000000..0f95ea2ce35 --- /dev/null +++ b/srcpkgs/quimup/template @@ -0,0 +1,18 @@ +# Template file for 'quimup' +pkgname=quimup +version=1.4.0 +revision=1 +wrksrc="${pkgname} ${version}" +build_style=gnu-makefile +hostmakedepends="pkg-config qt5-qmake" +makedepends="libmpdclient-devel qt5-devel taglib-devel" +short_desc="Client for MPD written in c++ and QT5" +maintainer="beefcurtains " +license="GPL-2" +homepage="http://coonsden.com/?cat=4" +distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}%20${version}/${pkgname}_${version}_src.tar.gz" +checksum=b46f8ff651b9154a43cf90b005c160cbbddcc2fb8c6b17dfdee9b6c4a2e131ea + +do_configure() { + qmake +}