Convert packages to the new template format (q).

This commit is contained in:
Juan RP 2013-04-14 11:26:34 +02:00
parent 08b4f6aae8
commit 338d8991ff
22 changed files with 208 additions and 260 deletions

View File

@ -2,10 +2,6 @@
pkgname=qemu-kvm
version=1.2.0
revision=5
nostrip=yes
conflicts="qemu>=0"
provides="qemu-$version"
replaces="qemu>=0"
build_style=configure
configure_args="--prefix=/usr --sysconfdir=/etc --enable-spice
--enable-kvm --audio-drv-list=alsa,sdl,pa --disable-xen
@ -16,7 +12,6 @@ makedepends="perl python attr-devel libpng-devel>=1.5.10 libjpeg-turbo-devel ncu
libsasl-devel spice-protocol spice-devel glib-devel MesaLib-devel pulseaudio-devel
libcurl-devel xfsprogs-devel libcap-ng-devel libcap-devel vde2-devel nss-devel
libtool libseccomp-devel"
conf_files="/etc/qemu/target-x86_64.conf"
short_desc="Open Source Processor Emulator -- KVM version"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.linux-kvm.org"
@ -39,3 +34,15 @@ post_install() {
# qemu-bridge-helper must be setuid for non privileged users.
chmod u+s ${DESTDIR}/usr/libexec/qemu-bridge-helper
}
qemu-kvm_package() {
conf_files="/etc/qemu/target-x86_64.conf"
replaces="qemu>=0"
provides="qemu-${version}"
conflicts="qemu>=0"
nostrip=yes
pkg_install() {
vmove etc
vmove usr
}
}

View File

@ -33,3 +33,9 @@ do_install() {
mv ${f} ${f}-static
done
}
qemu-user-static_package() {
pkg_install() {
vmove usr
}
}

View File

@ -7,7 +7,6 @@ configure_args="--prefix=/usr --sysconfdir=/etc --libexecdir=/usr/libexec
--enable-kvm --audio-drv-list=alsa,sdl,pa --disable-xen
--enable-vhost-net --enable-vnc-png --enable-vnc-tls --enable-virtfs
--disable-fdt --enable-seccomp --enable-spice"
conf_files="/etc/qemu/target-${XBPS_MACHINE}.conf"
short_desc="Open Source Processor Emulator"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://qemu.org"
@ -15,11 +14,6 @@ license="GPL-2, LGPL-2.1"
distfiles="http://wiki.qemu.org/download/qemu-${version}.tar.bz2"
checksum=066297ed77408fb7588889c271a85cf3c259ad55c939315988e6062d7708eda8
nostrip=yes
conflicts="qemu-kvm>=0"
provides="qemu-kvm-$version"
replaces="qemu-kvm>=0"
makedepends="perl python attr-devel libpng-devel>=1.5.10 libjpeg-turbo-devel
libuuid-devel libX11-devel alsa-lib-devel gnutls-devel>=3.1.5 SDL-devel
libsasl-devel spice-protocol spice-devel glib-devel libtool
@ -31,3 +25,15 @@ post_install() {
# qemu-bridge-helper must be setuid for non privileged users.
chmod u+s ${DESTDIR}/usr/libexec/qemu-bridge-helper
}
qemu_package() {
nostrip=yes
conf_files="/etc/qemu/target-.conf"
replaces="qemu-kvm>=0"
provides="qemu-kvm-${version}"
conflicts="qemu-kvm>=0"
pkg_install() {
vmove etc
vmove usr
}
}

View File

@ -1,17 +1,15 @@
# Template file for 'qjackctl'
pkgname=qjackctl
version=0.3.9
homepage="http://qjackctl.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
revision=1
build_style=gnu-configure
configure_args="--enable-jack-version"
depends="desktop-file-utils hicolor-icon-theme jack"
makedepends="pkg-config libX11-devel qt-devel jack-devel"
revision=1
short_desc="JACK Audio Connection Kit - Qt GUI Interface"
maintainer="davehome <davehome@redthumb.info.tm>"
license="GPL-2"
homepage="http://qjackctl.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum=5ee8d60675cc65eca8e3aea8ff42770efd6ff84293f9b0f9c2c7acd2383d9a28
long_desc="
QjackCtl is a simple Qt application to control the JACK sound server daemon,
@ -24,3 +22,10 @@ long_desc="
are properly saved between sessions, and a way control of the status of the
audio server daemon. With time, this primordial interface has become richer by
including a enhanced patchbay and connection control features."
qjackctl_package() {
depends="desktop-file-utils hicolor-icon-theme jack"
pkg_install() {
vmove usr
}
}

View File

@ -1,13 +0,0 @@
# Template file for 'qpdf-devel'.
#
noarch=yes
depends="libqpdf>=${version}"
short_desc="${short_desc} -- development files"
long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
do_install() {
vmove usr/include usr
vmove usr/lib/pkgconfig usr/lib
}

View File

@ -1,10 +0,0 @@
# Template file for 'libqpdf'.
#
short_desc="${short_desc} -- shared library"
long_desc="${long_desc}
This package contains the shared library."
do_install() {
vmove "usr/lib/*.so*" usr/lib
}

View File

@ -1,11 +1,11 @@
# Template file for 'qpdf'
pkgname=qpdf
version=3.0.2
revision=1
subpackages="libqpdf libqpdf-devel"
revision=2
build_style=gnu-configure
configure_args="--disable-static"
makedepends="perl pcre-devel"
hostmakedepends="perl"
makedepends="pcre-devel"
short_desc="A Content-Preserving PDF Transformation System"
maintainer="Juan RP <xtraeme@gmail.com>"
license="Artistic-2.0"
@ -18,3 +18,25 @@ long_desc="
pdf-to-pdf. It also provides many useful capabilities to developers of
PDF-producing software or for people who just want to look at the innards
of a PDF file to learn more about how they work."
libqpdf_package() {
short_desc="${short_desc} -- shared library"
pkg_install() {
vmove "usr/lib/*.so*"
}
}
libqpdf-devel_package() {
depends="libqpdf>=${version}"
short_desc="${short_desc} -- development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
}
}
qpdf_package() {
pkg_install() {
vmove usr
}
}

View File

@ -1,7 +0,0 @@
# Template file for 'libqrencode'.
#
short_desc="${short_desc} -- runtime library"
do_install() {
vmove "usr/lib/*.so*" usr/lib
}

View File

@ -1,10 +0,0 @@
# Template file for 'qrencode-devel'.
#
depends="libqrencode-${version}_${revision}"
short_desc="${short_desc} -- development files"
noarch=yes
do_install() {
vmove usr/include usr
vmove usr/lib/pkgconfig usr/lib
}

View File

@ -1,14 +1,35 @@
# Template file for 'qreconde'
pkgname=qrencode
version=3.4.2
revision=1
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="libpng-devel"
subpackages="${pkgname}-devel lib${pkgname}"
short_desc="Library for encoding data in a QR Code symbol"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://fukuchi.org/works/qrencode/index.html.en"
license="LGPL-2.1"
distfiles="http://fukuchi.org/works/qrencode/qrencode-${version}.tar.bz2"
checksum=fc492a506a1460c1ce850ff6137db55cb2e3d466f4c559108aae3a96d623c1b1
qrencode-devel_package() {
depends="libqrencode-${version}_${revision}"
short_desc="${short_desc} -- development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
}
}
libqrencode_package() {
short_desc="${short_desc} -- runtime library"
pkg_install() {
vmove "usr/lib/*.so*"
}
}
qrencode_package() {
pkg_install() {
vmove usr
}
}

View File

@ -1,16 +1,14 @@
# Template file for 'qsynth'
pkgname=qsynth
version=0.3.6
homepage="http://qsynth.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
build_style=gnu-configure
revision=1
depends="jack"
makedepends="pkg-config qt-devel jack-devel fluidsynth-devel"
fulldepends="desktop-file-utils hicolor-icon-theme"
build_style=gnu-configure
makedepends="pkg-config qt-devel jack-devel fluidsynth-devel desktop-file-utils hicolor-icon-theme"
short_desc="Qt GUI Interface for FluidSynth"
maintainer="davehome <davehome@redthumb.info.tm>"
license="GPL-2"
homepage="http://qsynth.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum=b5968da98661bac5c9fcc93d3a15851594dfbf3bb7d01ace15fbe8779d53fb3c
long_desc="
Qsynth is a fluidsynth GUI front-end application written in C++ around the
@ -20,7 +18,9 @@ long_desc="
FluidSynth is a command line software synthesiser based on the Soundfont
specification."
qsynth_package() {
depends="jack desktop-file-utils hicolor-icon-theme"
pkg_install() {
vmove usr
}
}

View File

@ -1,33 +0,0 @@
# Template file for 'qt-designer'.
#
depends="hicolor-icon-theme"
short_desc="Qt GUI designer"
long_desc="${long_desc}
Qt Designer is a tool for designing and building graphical user
interfaces (GUIs) from Qt components."
do_install()
{
mkdir -p ${DESTDIR}/usr/lib/qt/plugins \
${DESTDIR}/usr/bin \
${DESTDIR}/usr/share/icons/hicolor/128x128/apps \
${DESTDIR}/usr/share/applications \
${DESTDIR}/usr/share/qt/translations
mv ${SRCPKGDESTDIR}/usr/bin/designer ${DESTDIR}/usr/bin
mv ${SRCPKGDESTDIR}/usr/lib/libQtDesigner.so* \
${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/libQtDesignerComponents.so* \
${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/qt/plugins/designer \
${DESTDIR}/usr/lib/qt/plugins
for d in /usr/share/icons/hicolor/128x128/apps \
/usr/share/applications; do
mkdir -p ${DESTDIR}/${d}
mv ${SRCPKGDESTDIR}/${d}/designer.* ${DESTDIR}/${d}
done
mv ${SRCPKGDESTDIR}/usr/share/qt/translations/designer* \
${DESTDIR}/usr/share/qt/translations
}

View File

@ -1,38 +0,0 @@
# Template file for 'qt-devel-tools'.
#
depends="hicolor-icon-theme"
short_desc="Qt development tools"
long_desc="${long_desc}
This packages contains tools used to assist in Qt development, including
the Qt Assistant, Linguist, D-Bus Viewer and Pixel Tool applications. "
do_install()
{
mkdir -p ${DESTDIR}/usr/bin
for f in assistant* lconvert linguist pixeltool qcollectiongenerator \
qdbusviewer qhelp* xmlpatterns* qdbus qttrace* qdoc3 \
qmlviewer; do
mv ${SRCPKGDESTDIR}/usr/bin/${f} ${DESTDIR}/usr/bin
done
mkdir -p ${DESTDIR}/usr/lib
mkdir -p ${DESTDIR}/usr/share/applications
mkdir -p ${DESTDIR}/usr/share/pixmaps
mkdir -p ${DESTDIR}/usr/share/icons
mv ${SRCPKGDESTDIR}/usr/share/icons/hicolor \
${DESTDIR}/usr/share/icons
for f in linguist assistant; do
mv ${SRCPKGDESTDIR}/usr/share/applications/${f}.desktop \
${DESTDIR}/usr/share/applications
[ ! -f ${SRCPKGDESTDIR}/usr/share/pixmaps/${f}.png ] && continue
mv ${SRCPKGDESTDIR}/usr/share/pixmaps/${f}.png \
${DESTDIR}/usr/share/pixmaps
done
mv ${SRCPKGDESTDIR}/usr/share/qt/translations \
${DESTDIR}/usr/share/qt
mv ${SRCPKGDESTDIR}/usr/share/qt/phrasebooks \
${DESTDIR}/usr/share/qt
}

View File

@ -1,21 +0,0 @@
# Template file for 'qt-devel'.
#
depends="qt-qmake libX11-devel icu-devel"
short_desc="Qt development files"
long_desc="${long_desc}
This package contains the header development files and development
programs used for runing Qt applications."
do_install()
{
mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/bin
for f in lrelease lupdate moc qdbuscpp2xml qdbusxml2cpp qt3to4 \
rcc uic uic3; do
mv ${SRCPKGDESTDIR}/usr/bin/${f} ${DESTDIR}/usr/bin
done
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/lib/*.a ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/*.prl ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib
}

View File

@ -1,14 +0,0 @@
# Template file for 'qt-plugin-mysql'.
#
short_desc="Qt MySQL plugin"
long_desc="${long_desc}
This package contains a Qt SQL plugin for MySQL."
do_install()
{
mkdir -p ${DESTDIR}/usr/lib/qt/plugins/sqldrivers
mv ${SRCPKGDESTDIR}/usr/lib/qt/plugins/sqldrivers/libqsqlmysql.so \
${DESTDIR}/usr/lib/qt/plugins/sqldrivers
}

View File

@ -1,14 +0,0 @@
# Template file for 'qt-plugin-pgsql'.
#
short_desc="Qt PostgreSQL plugin"
long_desc="${long_desc}
This package contains a Qt SQL plugin for PostgreSQL."
do_install()
{
mkdir -p ${DESTDIR}/usr/lib/qt/plugins/sqldrivers
mv ${SRCPKGDESTDIR}/usr/lib/qt/plugins/sqldrivers/libqsqlpsql.so \
${DESTDIR}/usr/lib/qt/plugins/sqldrivers
}

View File

@ -1,14 +0,0 @@
# Template file for 'qt-plugin-sqlite'.
#
short_desc="Qt SQLite plugin"
long_desc="${long_desc}
This package contains a Qt SQL plugin for SQLite."
do_install()
{
mkdir -p ${DESTDIR}/usr/lib/qt/plugins/sqldrivers
mv ${SRCPKGDESTDIR}/usr/lib/qt/plugins/sqldrivers/libqsqlite.so \
${DESTDIR}/usr/lib/qt/plugins/sqldrivers
}

View File

@ -1,22 +0,0 @@
# Template file for 'qt-qmake'.
#
short_desc="Qt qmake Makefile generator tool"
long_desc="${long_desc}
This package contains Qt 4 qmake (qmake), a tool that helps simplify the
build process for development project across different platforms. qmake
automates the generation of Makefiles so that only a few lines of information
are needed to create each Makefile. qmake can be used for any software
project, whether it is written using Qt or not.
Qt qmake requires a platform and compiler description file which contains
many default values used to generate appropriate Makefiles.
This package contains also these platform specifications."
do_install()
{
mkdir -p ${DESTDIR}/usr/bin ${DESTDIR}/usr/share/qt
mv ${SRCPKGDESTDIR}/usr/bin/qmake ${DESTDIR}/usr/bin
mv ${SRCPKGDESTDIR}/usr/share/qt/mkspecs ${DESTDIR}/usr/share/qt
}

View File

@ -1,26 +0,0 @@
# Template file for 'qt-qtconfig'.
#
depends="hicolor-icon-theme"
short_desc="Qt configuration tool"
long_desc="${long_desc}
The Qt Configuration program allows end users to configure the look
and behavior of any Qt application."
do_install()
{
mkdir -p ${DESTDIR}/usr/bin \
${DESTDIR}/usr/share/pixmaps \
${DESTDIR}/usr/share/applications \
${DESTDIR}/usr/share/qt/translations
mv ${SRCPKGDESTDIR}/usr/bin/qtconfig \
${DESTDIR}/usr/bin
mv ${SRCPKGDESTDIR}/usr/share/applications/qtconfig.desktop \
${DESTDIR}/usr/share/applications
mv ${SRCPKGDESTDIR}/usr/share/pixmaps/qtlogo.png \
${DESTDIR}/usr/share/pixmaps
mv ${SRCPKGDESTDIR}/usr/share/qt/translations/qtconfig* \
${DESTDIR}/usr/share/qt/translations
}

View File

@ -11,9 +11,6 @@ license="GPL-3, LGPL-2.1"
distfiles="http://releases.qt-project.org/qt4/source/${_distname}-$version.tar.gz"
checksum=33b0e38ba4c54a0cf8a4be8ca5a4584f1c2e0adfecb57b21d9d1d267b0093270
subpackages="qt-plugin-pgsql qt-plugin-mysql qt-plugin-sqlite
qt-qmake qt-qtconfig qt-designer qt-devel qt-devel-tools"
# XXX Missing dependencies: unixodbc.
makedepends="pkg-config libpng-devel>=1.5.10 MesaLib-devel libXrender-devel
fontconfig-devel libXi-devel libXv-devel libXinerama-devel libXrandr-devel
@ -70,3 +67,98 @@ do_install() {
vinstall LGPL_EXCEPTION.txt 644 usr/share/licenses/qt
}
qt-plugin-pgsql_package() {
short_desc="Qt PostgreSQL plugin"
pkg_install() {
vmove usr/lib/qt/plugins/sqldrivers/libqsqlpsql.so
}
}
qt-plugin-mysql_package() {
short_desc="Qt MySQL plugin"
pkg_install() {
vmove usr/lib/qt/plugins/sqldrivers/libqsqlmysql.so
}
}
qt-plugin-sqlite_package() {
short_desc="Qt SQLite plugin"
pkg_install() {
vmove usr/lib/qt/plugins/sqldrivers/libqsqlite.so
}
}
}
qt-qmake_package() {
short_desc="Qt qmake Makefile generator tool"
pkg_install() {
vmove usr/bin/qemu
vmove usr/share/qt/mkspecs
}
}
qt-qtconfig_package() {
depends="hicolor-icon-theme"
short_desc="Qt configuration tool"
pkg_install() {
vmove usr/bin/qtconfig
vmove usr/share/applications/qtconfig.desktop
vmove usr/share/pixmaps/qtlogo.png
vmove "usr/share/qt/translations/qtconfig*"
}
}
qt-designer_package() {
depends="hicolor-icon-theme"
short_desc="Qt GUI designer"
pkg_install() {
vmove usr/bin/designer
vmove "usr/lib/libQtDesigner.so*"
vmove "usr/lib/libQtDesignerComponents.so*"
vmove usr/lib/qt/plugins/designer
vmove "usr/share/icons/hicolor/128x128/apps/designer.*"
vmove "usr/share/applications/designer.*"
vmove "usr/share/qt/translations/designer*"
}
}
qt-devel_package() {
depends="qt-qmake libX11-devel icu-devel"
short_desc="Qt development files"
pkg_install() {
for f in lrelease lupdate moc qdbuscpp2xml qdbusxml2cpp qt3to4 \
rcc uic uic3; do
vmove usr/bin/${f}
done
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.prl"
vmove usr/lib/pkgconfig
}
}
qt-devel-tools_package() {
depends="hicolor-icon-theme"
short_desc="Qt development tools"
pkg_install() {
for f in assistant* lconvert linguist pixeltool qcollectiongenerator \
qdbusviewer qhelp* xmlpatterns* qdbus qttrace* qdoc3 qmlviewer; do
vmove usr/bin/${f}
done
vmove usr/share/icons/hicolor
for f in linguist assistant; do
vmove usr/share/applications/${f}.desktop
[ ! -f ${DESTDIR}/usr/share/pixmaps/${f}.png ] && continue
vmove usr/share/pixmaps/${f}.png
done
vmove usr/share/qt/translations
vmove usr/share/qt/phrasebooks
}
}
qt_package() {
pkg_install() {
vmove usr
}
}

View File

@ -8,10 +8,16 @@ makedepends="pkg-config jack-devel alsa-lib-devel libsndfile-devel
libvorbis-devel libmad-devel libsamplerate-devel qt-devel lv2
liblo-devel rubberband-devel vamp-plugin-sdk-devel ladspa-sdk dssi-devel
lilv-devel suil-devel serd-devel sord-devel sratom-devel"
depends="jack dssi lv2 desktop-file-utils hicolor-icon-theme"
short_desc="Audio/MIDI multi-track sequencer application written in C++/Qt4"
maintainer="davehome <davehome@redthumb.info.tm>"
license="GPL-2"
homepage="http://qtractor.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=09708652b2b8b12dbc28a9ec1e0f2d105ee0cb4ed29b8d33c477f4455be1600d
qtractor_package() {
depends="jack dssi lv2 desktop-file-utils hicolor-icon-theme"
pkg_install() {
vmove usr
}
}

View File

@ -1,14 +1,14 @@
# Template file for 'quvi'
pkgname=quvi
version=0.4.1
homepage="http://quvi.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/quvi/quvi-$version.tar.gz"
revision=1
build_style=gnu-configure
makedepends="pkg-config libquvi-devel"
revision=1
short_desc="Command-line tool for parsing video download links"
maintainer="Juan RP <xtraeme@gmail.com>"
license="LGPL-2.1"
homepage="http://quvi.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/quvi/quvi-$version.tar.gz"
checksum=0dd934a4fc0e58d2655efe85c212e182f3adbbde4690d00a735177e1e264ba5a
long_desc="
It originates from the idea of working around the flash requirement found
@ -21,3 +21,8 @@ long_desc="
* Supports 40+ websites
* C API is simple to use"
quvi_package() {
pkg_install() {
vmove usr
}
}