Merge pull request #2138 from beefcurtains/quimup

New package: quimup-1.4.0
This commit is contained in:
Juan RP 2015-07-31 07:50:06 +02:00
commit 2459e998c0
7 changed files with 39 additions and 11 deletions

View File

@ -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"
}

View File

@ -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"

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,10 @@
--- src/qtlocalpeer.cpp.orig
+++ src/qtlocalpeer.cpp
@@ -41,6 +41,7 @@
#include "qtlocalpeer.h"
#include <QCoreApplication>
#include <QTime>
+#include <QDataStream>
#if defined(Q_OS_WIN)
#include <QLibrary>

18
srcpkgs/quimup/template Normal file
View File

@ -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 <beefcurtains@voidlinux.eu>"
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
}