diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2013-02-20 10:27:42 +0100 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2013-02-20 10:27:42 +0100 |
commit | 510e46e27a20e01134b2a7a8da3774336cf279aa (patch) | |
tree | f509ce61848fcfc0ef72c8dfe3528062e0045032 /community | |
parent | 855edb52bd8eb32bb11173a398fa09c1341dc165 (diff) | |
parent | 1bd47d3e04c409582486ea3ec915d3b7899f6841 (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts:
community/linux-tools/PKGBUILD
community/projectm/PKGBUILD
extra/gnome-themes-standard/PKGBUILD
libre/linux-libre-tools/PKGBUILD
Diffstat (limited to 'community')
22 files changed, 882 insertions, 98 deletions
diff --git a/community/cdrtools/PKGBUILD b/community/cdrtools/PKGBUILD index ca59ebaa3..8d7078450 100644 --- a/community/cdrtools/PKGBUILD +++ b/community/cdrtools/PKGBUILD @@ -1,7 +1,7 @@ -# $Id: PKGBUILD 82236 2013-01-12 18:33:09Z stativ $ +# $Id: PKGBUILD 84509 2013-02-19 13:38:15Z stativ $ # Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com> pkgname=cdrtools -pkgver=3.01a11 +pkgver=3.01a12 pkgrel=1 pkgdesc="Original cdrtools supporting CD, DVD and BluRay burning" arch=('i686' 'x86_64' 'mips64el') @@ -14,7 +14,7 @@ options=(!makeflags) backup=('etc/default/cdrecord' 'etc/default/rscsi') install=cdrtools.install source=(http://ftp.berlios.de/pub/cdrecord/alpha/cdrtools-$pkgver.tar.bz2) -md5sums=('e4f8f105affc5d93b6ebabd63c43c8a6') +md5sums=('563d80a7102175bea3e41fbfc269b914') build() { cd "$srcdir"/cdrtools-${pkgver%%a*} diff --git a/community/dbmail/PKGBUILD b/community/dbmail/PKGBUILD index f036021e6..6b388b23b 100644 --- a/community/dbmail/PKGBUILD +++ b/community/dbmail/PKGBUILD @@ -1,24 +1,25 @@ -# $Id: PKGBUILD 82595 2013-01-21 11:20:22Z spupykin $ +# $Id: PKGBUILD 84536 2013-02-19 15:03:09Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: Sebastian Faltoni <sebastian.faltoni@gmail.com> pkgname=dbmail pkgver=3.0.2 -pkgrel=8 +pkgrel=9 pkgdesc="Fast and scalable sql based mail services" arch=('i686' 'x86_64' 'mips64el') depends=('gmime24' 'libzdb' 'mhash' 'libevent') makedepends=('asciidoc' 'xmlto' 'docbook-xsl' 'docbook-xml' 'postgresql-libs>=8.4.1' 'sqlite' 'libmysqlclient' 'libldap>=2.4.18' 'libsieve') -optdepends=('postgresql-libs: for PostgreSQL storage backend' - 'sqlite: for SQLite storage backend' - 'libmysqlclient: for MySQL storage backend' - 'libldap: for LDAP authentication' +optdepends=('libldap: for LDAP authentication' 'libsieve: for dbmail-sieve') url="http://www.dbmail.org" license=('GPL') options=('!libtool' 'zipman') -backup=(etc/conf.d/dbmail) +backup=(etc/conf.d/dbmail + etc/xinetd.d/dbmail-imapd + etc/xinetd.d/dbmail-pop3d + etc/xinetd.d/dbmail-lmtpd + etc/xinetd.d/dbmail-timsieved) source=(http://www.dbmail.org/download/3.0/dbmail-${pkgver/_/-}.tar.gz dbmail.conf.d dbmail.rc.d @@ -26,7 +27,11 @@ source=(http://www.dbmail.org/download/3.0/dbmail-${pkgver/_/-}.tar.gz dbmail-imapd.service dbmail-lmtpd.service dbmail-pop3d.service - dbmail-timsieved.service) + dbmail-timsieved.service + dbmail-imapd.xinetd + dbmail-lmtpd.xinetd + dbmail-pop3d.xinetd + dbmail-timsieved.xinetd) md5sums=('eb32235abffdf967253ee9d004e0e4a9' 'e7f72bc360decdb2475266391ad12329' '30774513fb016b9da08e9cf6f2a0b8e7' @@ -34,7 +39,11 @@ md5sums=('eb32235abffdf967253ee9d004e0e4a9' '84efa46eaac66057c4eb131d9bc27fa8' '19560277f6a56d1f3f2fdb02315dcf0f' '89a0f793737eaf36291409f8c840891e' - 'dd1b5b2c542f55d9d934a58a36d0513d') + 'dd1b5b2c542f55d9d934a58a36d0513d' + '8fa791f2e4d107ba461453c054359477' + '069cd4285c4b2ec95dfdcebc2cfee387' + '44f87ce81e786fcee501daa17e55412a' + 'a66927cb94d4f26428211e3ad2d540c8') build() { cd $srcdir/dbmail-${pkgver/_/-}/ @@ -56,9 +65,10 @@ package() { cp -r sql/* $pkgdir/usr/share/dbmail/ cp dbmail.schema $pkgdir/usr/share/dbmail/ - install -Dm0644 $srcdir/dbmail-imapd.service $pkgdir/usr/lib/systemd/system/dbmail-imapd.service - install -Dm0644 $srcdir/dbmail-lmtpd.service $pkgdir/usr/lib/systemd/system/dbmail-lmtpd.service - install -Dm0644 $srcdir/dbmail-pop3d.service $pkgdir/usr/lib/systemd/system/dbmail-pop3d.service - install -Dm0644 $srcdir/dbmail-timsieved.service $pkgdir/usr/lib/systemd/system/dbmail-timsieved.service + for i in dbmail-imapd dbmail-lmtpd dbmail-pop3d dbmail-timsieved; do + install -Dm0644 $srcdir/$i.service $pkgdir/usr/lib/systemd/system/$i.service + install -Dm0644 $srcdir/$i.xinetd $pkgdir/etc/xinetd.d/$i + done + install -Dm0644 $srcdir/dbmail.tmpfiles $pkgdir/usr/lib/tmpfiles.d/dbmail.conf } diff --git a/community/dbmail/dbmail-imapd.xinetd b/community/dbmail/dbmail-imapd.xinetd new file mode 100644 index 000000000..eee3635df --- /dev/null +++ b/community/dbmail/dbmail-imapd.xinetd @@ -0,0 +1,11 @@ +service imap +{ + socket_type = stream + wait = no + user = nobody + server = /usr/sbin/dbmail-imapd + protocol = tcp + server_args = -n + log_on_failure += USERID + disable = yes +} diff --git a/community/dbmail/dbmail-lmtpd.xinetd b/community/dbmail/dbmail-lmtpd.xinetd new file mode 100644 index 000000000..63365fee4 --- /dev/null +++ b/community/dbmail/dbmail-lmtpd.xinetd @@ -0,0 +1,13 @@ +service lmtp +{ + port = 24 + type = UNLISTED + socket_type = stream + wait = no + user = nobody + server = /usr/sbin/dbmail-lmtpd + protocol = tcp + server_args = -n + log_on_failure += USERID + disable = yes +} diff --git a/community/dbmail/dbmail-pop3d.xinetd b/community/dbmail/dbmail-pop3d.xinetd new file mode 100644 index 000000000..6c5b06735 --- /dev/null +++ b/community/dbmail/dbmail-pop3d.xinetd @@ -0,0 +1,11 @@ +service pop3 +{ + socket_type = stream + wait = no + user = nobody + server = /usr/sbin/dbmail-pop3d + protocol = tcp + server_args = -n + log_on_failure += USERID + disable = yes +} diff --git a/community/dbmail/dbmail-timsieved.xinetd b/community/dbmail/dbmail-timsieved.xinetd new file mode 100644 index 000000000..77ed27c31 --- /dev/null +++ b/community/dbmail/dbmail-timsieved.xinetd @@ -0,0 +1,11 @@ +service sieve +{ + socket_type = stream + wait = no + user = nobody + server = /usr/sbin/dbmail-timsieved + protocol = tcp + server_args = -n + log_on_failure += USERID + disable = yes +} diff --git a/community/djview4/PKGBUILD b/community/djview4/PKGBUILD index f13daa4d0..c6acc6c63 100644 --- a/community/djview4/PKGBUILD +++ b/community/djview4/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 63534 2012-02-05 11:54:12Z ibiru $ +# $Id: PKGBUILD 84432 2013-02-19 00:14:18Z bisson $ # Contributor: Paulo Matias <matias.archlinux-br.org> # Contributor: Leslie P. Polzer <polzer.gnu.org> # Contributor: erm67 <erm67.yahoo.it> @@ -6,28 +6,27 @@ # Maintainer: Gaetan Bisson <bisson@archlinux.org> pkgname=djview4 -pkgver=4.8 -pkgrel=2 +pkgver=4.9 +pkgrel=1 pkgdesc='Portable DjVu viewer and browser plugin' url='http://djvu.sourceforge.net/djview4.html' license=('GPL') arch=('i686' 'x86_64' 'mips64el') depends=('qt' 'djvulibre') source=("http://downloads.sourceforge.net/djvu/djview-${pkgver}.tar.gz") -sha1sums=('266d207afb63a1ee63eed054190bf88888fda572') +sha1sums=('07f97e32919bfb34ff2d59b928c47ffbc96dcfc5') install=install build() { - cd "${srcdir}/djview-${pkgver}" + cd "${srcdir}/${pkgname}-${pkgver}" QTDIR=/usr ./configure --prefix=/usr sed 's/netscape/mozilla/g' -i nsdejavu/Makefile - sed 's/swap/rofl_swap/g' -i src/qdjvuwidget.cpp make } package() { - cd "${srcdir}/djview-${pkgver}" + cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install-djview install-nsdejavu cd desktopfiles diff --git a/community/djview4/install b/community/djview4/install index f2bd04ceb..b0409600c 100644 --- a/community/djview4/install +++ b/community/djview4/install @@ -1,7 +1,6 @@ post_install() { - if type xdg-icon-resource &>/dev/null; then - xdg-icon-resource forceupdate --theme hicolor &> /dev/null - fi + xdg-icon-resource forceupdate --theme hicolor &> /dev/null || true + update-desktop-database -q || true } post_upgrade() { diff --git a/community/dmd/PKGBUILD b/community/dmd/PKGBUILD index b206344cd..5da4b04ab 100644 --- a/community/dmd/PKGBUILD +++ b/community/dmd/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 81927 2013-01-03 14:59:08Z svenstaro $ +# $Id: PKGBUILD 84430 2013-02-18 23:24:23Z svenstaro $ # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> # Contributor: Chris Brannon <cmbrannon79@gmail.com> # Contributor: Andrea Scarpino <andrea@archlinux.org> @@ -7,14 +7,15 @@ pkgname=('dmd' 'libphobos') pkgbase=dmd -pkgver=2.061 +pkgver=2.062 pkgrel=1 arch=('i686' 'x86_64') url="http://www.digitalmars.com/d/2.0/" -source=(http://ftp.digitalmars.com/$pkgname.$pkgver.zip +#source=(http://ftp.digitalmars.com/$pkgname.$pkgver.zip +source=(http://downloads.dlang.org.s3-website-us-east-1.amazonaws.com/releases/2013/dmd.${pkgver}.zip tools-${pkgver}.tar.gz::https://github.com/D-Programming-Language/tools/tarball/v${pkgver}) license=('custom') -md5sums=('823aba8a7e0fbb242bb2a2d922ced5c6' +md5sums=('fd2211206532ab41a8aef764a9225d3c' '2e301d06071fb24c7c2d504c8ddbbc39') [[ $CARCH == "x86_64" ]] && _archbits="64" @@ -23,6 +24,7 @@ md5sums=('823aba8a7e0fbb242bb2a2d922ced5c6' build() { cd $srcdir/dmd2/src/ + echo "$pkgver" > VERSION # Fix specific release bug of 2.062 cd dmd make -f posix.mak MODEL=$_archbits diff --git a/community/intellij-idea-libs/PKGBUILD b/community/intellij-idea-libs/PKGBUILD index d73e1f951..e038f1193 100644 --- a/community/intellij-idea-libs/PKGBUILD +++ b/community/intellij-idea-libs/PKGBUILD @@ -1,8 +1,8 @@ -# $Id: PKGBUILD 83501 2013-02-02 11:16:21Z stativ $ +# $Id: PKGBUILD 84499 2013-02-19 13:15:06Z stativ $ # Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com> pkgname=intellij-idea-libs -pkgver=12.0.3 -_pkgver=123.155 +pkgver=12.0.4 +_pkgver=123.169 pkgrel=1 pkgdesc="Architecture dependend libraries needed by the Intellij Idea IDE" arch=('i686' 'x86_64' 'mips64el') @@ -10,7 +10,7 @@ url="http://www.jetbrains.org/" license=('apache') depends=('glibc') source=(http://download.jetbrains.com/idea/ideaIC-$pkgver.tar.gz) -md5sums=('6a378255d11f1634759d738eef0424fa') +md5sums=('eb7c86893ad138a9c3bb034dae2dc296') package() { cd "$srcdir" diff --git a/community/ldc/PKGBUILD b/community/ldc/PKGBUILD index 4db3ef56e..653997fd2 100644 --- a/community/ldc/PKGBUILD +++ b/community/ldc/PKGBUILD @@ -1,7 +1,7 @@ -# $Id: PKGBUILD 81801 2012-12-30 15:21:03Z foutrelis $ +# $Id: PKGBUILD 84438 2013-02-19 02:32:24Z svenstaro $ # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> pkgname=ldc -pkgver=20121225 +pkgver=20130219 pkgrel=1 pkgdesc="A D Compiler based on the LLVM Compiler Infrastructure including D runtime and libphobos2" arch=('i686' 'x86_64') @@ -10,8 +10,8 @@ license=('BSD') depends=('llvm' 'libconfig') makedepends=('git' 'cmake') backup=('etc/ldc2.conf') -source=(fix-llvm-IRBuilder.h-include-when-using-LLVM-3.2.patch) -md5sums=('0dacd8e4b8f88030c107dbb2a35bcc42') +source=() +md5sums=() _gitroot=git://github.com/ldc-developers/ldc.git _gitname=ldc @@ -38,9 +38,6 @@ build() { git clone --recursive "$srcdir/$_gitname" "$srcdir/$_gitname-build" cd "$srcdir/$_gitname-build" - # llvm/Support/IRBuilder.h was relocated in LLVM 3.2 - patch -Np1 -i "$srcdir/fix-llvm-IRBuilder.h-include-when-using-LLVM-3.2.patch" - mkdir build && cd build cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ diff --git a/community/ldc/fix-llvm-IRBuilder.h-include-when-using-LLVM-3.2.patch b/community/ldc/fix-llvm-IRBuilder.h-include-when-using-LLVM-3.2.patch deleted file mode 100644 index f5977e4a4..000000000 --- a/community/ldc/fix-llvm-IRBuilder.h-include-when-using-LLVM-3.2.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 984207e348fe9ef1444cbec897cb8c429859a9c0 Mon Sep 17 00:00:00 2001 -From: Evangelos Foutras <evangelos@foutrelis.com> -Date: Tue, 25 Dec 2012 04:55:30 +0200 -Subject: [PATCH] Fix llvm/IRBuilder.h include when using LLVM 3.2 - ---- - gen/passes/GarbageCollect2Stack.cpp | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/gen/passes/GarbageCollect2Stack.cpp b/gen/passes/GarbageCollect2Stack.cpp -index f20bdd4..9927615 100644 ---- a/gen/passes/GarbageCollect2Stack.cpp -+++ b/gen/passes/GarbageCollect2Stack.cpp -@@ -27,7 +27,7 @@ - #include "llvm/Intrinsics.h" - #include "llvm/Support/CallSite.h" - #include "llvm/Support/CommandLine.h" --#if LDC_LLVM_VER >= 303 -+#if LDC_LLVM_VER >= 302 - #include "llvm/IRBuilder.h" - #else - #include "llvm/Support/IRBuilder.h" --- -1.8.0.2 - diff --git a/community/nemo-fileroller/PKGBUILD b/community/nemo-fileroller/PKGBUILD new file mode 100644 index 000000000..6b767fe38 --- /dev/null +++ b/community/nemo-fileroller/PKGBUILD @@ -0,0 +1,41 @@ + +# Maintainer: Alexandre Filgueira <alexfilgueira@cinnarch.com> +# Contributor: twa022 <twa022 at gmail dot com> + +pkgname=nemo-fileroller +pkgver=1.7.1 +pkgrel=1 +pkgdesc="Nemo fileroller extension" +arch=('i686' 'x86_64') +url="https://github.com/linuxmint/nemo-extensions" +license=('GPL') +source=("configure.in_fix.patch" + "$pkgname-$pkgver.tar.gz::http://github.com/linuxmint/nemo-extensions/archive/master.tar.gz") + +depends=('nemo' 'file-roller') +options=('!libtool' '!emptydirs') + +sha256sums=('3381a3421b2fd69746b610cfa3dfeb83d4795076ec692fcf28bcccf69bfe36d0' + 'b15f7cd536f595acd070cdff5b9c5c59df44bbc7bf91a1fd560702875b0f3669') + + +build() { + + + cd nemo-extensions-master/${pkgname} + + ## I think they started with the nemo-dropbox source, so there + ## are some unnecessary python dependencies + patch -uNp2 -r- -i ${srcdir}/configure.in_fix.patch + autoreconf -fi + + ./configure --prefix=/usr --sysconfdir=/etc + make +} + +package() { + cd nemo-extensions-master/${pkgname} + make DESTDIR="${pkgdir}" install +} + + diff --git a/community/nemo-fileroller/configure.in_fix.patch b/community/nemo-fileroller/configure.in_fix.patch new file mode 100644 index 000000000..898c0abce --- /dev/null +++ b/community/nemo-fileroller/configure.in_fix.patch @@ -0,0 +1,39 @@ +diff -Naur nemo-fileroller.orig/configure.in nemo-fileroller/configure.in +--- ./nemo-fileroller.orig/configure.in 2012-10-28 16:48:29.000000000 +0100 ++++ ./nemo-fileroller/configure.in 2013-02-19 09:03:34.009486606 +0100 +@@ -6,7 +6,7 @@ + + AC_PREFIX_DEFAULT(/usr) + +-AM_CONFIG_HEADER(config.h) ++AC_CONFIG_HEADERS(config.h) + + # not ready for i18n yet + #AC_PROG_INTLTOOL([0.29]) +@@ -29,10 +29,10 @@ + PKG_CHECK_MODULES(NEMO, libnemo-extension >= $NEMO_REQUIRED) + PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED) + +-AC_PATH_PROG([PYTHON], [python]) ++#AC_PATH_PROG([PYTHON], [python]) + +-AC_PATH_PROG([RST2MAN], [rst2man], [python rst2man.py]) +-AC_SUBST(RST2MAN) ++#AC_PATH_PROG([RST2MAN], [rst2man], [python rst2man.py]) ++#AC_SUBST(RST2MAN) + + # define module checking macro + AC_DEFUN([PYTHON_CHECK_MODULE], [ +@@ -55,9 +55,9 @@ + fi + ]) + +-PYTHON_CHECK_MODULE(pygtk, gtk) +-PYTHON_CHECK_MODULE(gobject, gobject) +-PYTHON_CHECK_MODULE(docutils, docutils) ++#PYTHON_CHECK_MODULE(pygtk, gtk) ++#PYTHON_CHECK_MODULE(gobject, gobject) ++#PYTHON_CHECK_MODULE(docutils, docutils) + + # Make dependency CFLAGS and LIBS available + AC_SUBST(NEMO_CFLAGS) diff --git a/community/nemo/PKGBUILD b/community/nemo/PKGBUILD new file mode 100644 index 000000000..b89dda95c --- /dev/null +++ b/community/nemo/PKGBUILD @@ -0,0 +1,58 @@ +# $Id: PKGBUILD 84548 2013-02-19 20:34:47Z faidoc $ +# Maintainer: Alexandre Filgueira <alexfilgueira@cinnarch.com> +# Contributor: Ner0 + +pkgname=nemo +pkgver=1.7.1 +pkgrel=1 +pkgdesc="Cinnamon file manager (Nautilus fork), stable version" +arch=('i686' 'x86_64') +url="https://github.com/linuxmint/nemo" +license=('GPL') +depends=('libexif' 'gvfs' 'dconf' 'desktop-file-utils' 'exempi' 'python2' + 'gnome-desktop' 'gnome-icon-theme' 'libnotify' 'libtracker-sparql') +makedepends=('gtk-doc' 'gobject-introspection' 'intltool' 'gnome-common') +optdepends=('gksu: Open as Root') +provides=('nemo-fm') +replaces=('nemo-fm') +conflicts=('nemo-fm') +options=('!emptydirs' '!libtool') +install=nemo.install +source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxmint/nemo/tarball/$pkgver" + "gnome-autogen.sh") +md5sums=('b348b6e340e055bef3163555b99621bb' + 'a925691c9b57a6a884dcf07da057fd1f') + +build() { + cd linuxmint-nemo-* + + # Get default terminal value + _terminal=$(gsettings get org.gnome.desktop.default-applications.terminal exec | tr -d "'") + + # Set "Open in Terminal" to default terminal (Arch doesn't use x-terminal-emulator) + sed -i "s/x-terminal-emulator/$_terminal/" src/nemo-view.c + + cp ${srcdir}/gnome-autogen.sh . + sed -i 's/\ --warn-all\ --warn-error//' src/Makefile.am + sed -i 's/gnome-autogen.sh/.\/gnome-autogen.sh/g' autogen.sh + chmod +x gnome-autogen.sh + + ./autogen.sh --prefix=/usr --sysconfdir=/etc \ + --localstatedir=/var --disable-static \ + --libexecdir=/usr/lib/nemo \ + --disable-nst-extension \ + --disable-update-mimedb \ + --disable-packagekit \ + --disable-gtk-doc-html \ + --disable-schemas-compile + make +} + +package() { + cd linuxmint-nemo-* + + make DESTDIR="$pkgdir/" install + + # Python2 fix + sed -i 's/bin\/python/bin\/python2/g' "${pkgdir}/usr/share/nemo/actions/myaction.py" +} diff --git a/community/nemo/gnome-autogen.sh b/community/nemo/gnome-autogen.sh new file mode 100644 index 000000000..2467a1de2 --- /dev/null +++ b/community/nemo/gnome-autogen.sh @@ -0,0 +1,538 @@ +#!/bin/sh +# Run this to generate all the initial makefiles, etc. + +#name of package +test "$PKG_NAME" || PKG_NAME=Package +test "$srcdir" || srcdir=. + +# default version requirements ... +test "$REQUIRED_AUTOCONF_VERSION" || REQUIRED_AUTOCONF_VERSION=2.53 +test "$REQUIRED_AUTOMAKE_VERSION" || REQUIRED_AUTOMAKE_VERSION=1.9 +test "$REQUIRED_LIBTOOL_VERSION" || REQUIRED_LIBTOOL_VERSION=1.4.3 +test "$REQUIRED_GETTEXT_VERSION" || REQUIRED_GETTEXT_VERSION=0.10.40 +test "$REQUIRED_GLIB_GETTEXT_VERSION" || REQUIRED_GLIB_GETTEXT_VERSION=2.2.0 +test "$REQUIRED_INTLTOOL_VERSION" || REQUIRED_INTLTOOL_VERSION=0.25 +test "$REQUIRED_PKG_CONFIG_VERSION" || REQUIRED_PKG_CONFIG_VERSION=0.14.0 +test "$REQUIRED_GTK_DOC_VERSION" || REQUIRED_GTK_DOC_VERSION=1.0 +test "$REQUIRED_DOC_COMMON_VERSION" || REQUIRED_DOC_COMMON_VERSION=2.3.0 +test "$REQUIRED_GNOME_DOC_UTILS_VERSION" || REQUIRED_GNOME_DOC_UTILS_VERSION=0.4.2 + +# a list of required m4 macros. Package can set an initial value +test "$REQUIRED_M4MACROS" || REQUIRED_M4MACROS= +test "$FORBIDDEN_M4MACROS" || FORBIDDEN_M4MACROS= + +# Not all echo versions allow -n, so we check what is possible. This test is +# based on the one in autoconf. +ECHO_C= +ECHO_N= +case `echo -n x` in +-n*) + case `echo 'x\c'` in + *c*) ;; + *) ECHO_C='\c';; + esac;; +*) + ECHO_N='-n';; +esac + +# some terminal codes ... +if tty < /dev/null 1>/dev/null 2>&1; then + boldface="`tput bold 2>/dev/null`" + normal="`tput sgr0 2>/dev/null`" +else + boldface= + normal= +fi +printbold() { + echo $ECHO_N "$boldface" $ECHO_C + echo "$@" + echo $ECHO_N "$normal" $ECHO_C +} +printerr() { + echo "$@" >&2 +} + +# Usage: +# compare_versions MIN_VERSION ACTUAL_VERSION +# returns true if ACTUAL_VERSION >= MIN_VERSION +compare_versions() { + ch_min_version=$1 + ch_actual_version=$2 + ch_status=0 + IFS="${IFS= }"; ch_save_IFS="$IFS"; IFS="." + set $ch_actual_version + for ch_min in $ch_min_version; do + ch_cur=`echo $1 | sed 's/[^0-9].*$//'`; shift # remove letter suffixes + if [ -z "$ch_min" ]; then break; fi + if [ -z "$ch_cur" ]; then ch_status=1; break; fi + if [ $ch_cur -gt $ch_min ]; then break; fi + if [ $ch_cur -lt $ch_min ]; then ch_status=1; break; fi + done + IFS="$ch_save_IFS" + return $ch_status +} + +# Usage: +# version_check PACKAGE VARIABLE CHECKPROGS MIN_VERSION SOURCE +# checks to see if the package is available +version_check() { + vc_package=$1 + vc_variable=$2 + vc_checkprogs=$3 + vc_min_version=$4 + vc_source=$5 + vc_status=1 + + vc_checkprog=`eval echo "\\$$vc_variable"` + if [ -n "$vc_checkprog" ]; then + printbold "using $vc_checkprog for $vc_package" + return 0 + fi + + if test "x$vc_package" = "xautomake" -a "x$vc_min_version" = "x1.4"; then + vc_comparator="=" + else + vc_comparator=">=" + fi + printbold "checking for $vc_package $vc_comparator $vc_min_version..." + for vc_checkprog in $vc_checkprogs; do + echo $ECHO_N " testing $vc_checkprog... " $ECHO_C + if $vc_checkprog --version < /dev/null > /dev/null 2>&1; then + vc_actual_version=`$vc_checkprog --version | head -n 1 | \ + sed 's/^.*[ ]\([0-9.]*[a-z]*\).*$/\1/'` + if compare_versions $vc_min_version $vc_actual_version; then + echo "found $vc_actual_version" + # set variables + eval "$vc_variable=$vc_checkprog; \ + ${vc_variable}_VERSION=$vc_actual_version" + vc_status=0 + break + else + echo "too old (found version $vc_actual_version)" + fi + else + echo "not found." + fi + done + if [ "$vc_status" != 0 ]; then + printerr "***Error***: You must have $vc_package $vc_comparator $vc_min_version installed" + printerr " to build $PKG_NAME. Download the appropriate package for" + printerr " from your distribution or get the source tarball at" + printerr " $vc_source" + printerr + exit $vc_status + fi + return $vc_status +} + +# Usage: +# require_m4macro filename.m4 +# adds filename.m4 to the list of required macros +require_m4macro() { + case "$REQUIRED_M4MACROS" in + $1\ * | *\ $1\ * | *\ $1) ;; + *) REQUIRED_M4MACROS="$REQUIRED_M4MACROS $1" ;; + esac +} + +forbid_m4macro() { + case "$FORBIDDEN_M4MACROS" in + $1\ * | *\ $1\ * | *\ $1) ;; + *) FORBIDDEN_M4MACROS="$FORBIDDEN_M4MACROS $1" ;; + esac +} + +# Usage: +# add_to_cm_macrodirs dirname +# Adds the dir to $cm_macrodirs, if it's not there yet. +add_to_cm_macrodirs() { + case $cm_macrodirs in + "$1 "* | *" $1 "* | *" $1") ;; + *) cm_macrodirs="$cm_macrodirs $1";; + esac +} + +# Usage: +# print_m4macros_error +# Prints an error message saying that autoconf macros were misused +print_m4macros_error() { + printerr "***Error***: some autoconf macros required to build $PKG_NAME" + printerr " were not found in your aclocal path, or some forbidden" + printerr " macros were found. Perhaps you need to adjust your" + printerr " ACLOCAL_FLAGS?" + printerr +} + +# Usage: +# check_m4macros +# Checks that all the requested macro files are in the aclocal macro path +# Uses REQUIRED_M4MACROS and ACLOCAL variables. +check_m4macros() { + # construct list of macro directories + cm_macrodirs=`$ACLOCAL --print-ac-dir` + # aclocal also searches a version specific dir, eg. /usr/share/aclocal-1.9 + # but it contains only Automake's own macros, so we can ignore it. + + # Read the dirlist file, supported by Automake >= 1.7. + # If AUTOMAKE was defined, no version was detected. + if [ -z "$AUTOMAKE_VERSION" ] || compare_versions 1.7 $AUTOMAKE_VERSION && [ -s $cm_macrodirs/dirlist ]; then + cm_dirlist=`sed 's/[ ]*#.*//;/^$/d' $cm_macrodirs/dirlist` + if [ -n "$cm_dirlist" ] ; then + for cm_dir in $cm_dirlist; do + if [ -d $cm_dir ]; then + add_to_cm_macrodirs $cm_dir + fi + done + fi + fi + + # Parse $ACLOCAL_FLAGS + set - $ACLOCAL_FLAGS + while [ $# -gt 0 ]; do + if [ "$1" = "-I" ]; then + add_to_cm_macrodirs "$2" + shift + fi + shift + done + + cm_status=0 + if [ -n "$REQUIRED_M4MACROS" ]; then + printbold "Checking for required M4 macros..." + # check that each macro file is in one of the macro dirs + for cm_macro in $REQUIRED_M4MACROS; do + cm_macrofound=false + for cm_dir in $cm_macrodirs; do + if [ -f "$cm_dir/$cm_macro" ]; then + cm_macrofound=true + break + fi + # The macro dir in Cygwin environments may contain a file + # called dirlist containing other directories to look in. + if [ -f "$cm_dir/dirlist" ]; then + for cm_otherdir in `cat $cm_dir/dirlist`; do + if [ -f "$cm_otherdir/$cm_macro" ]; then + cm_macrofound=true + break + fi + done + fi + done + if $cm_macrofound; then + : + else + printerr " $cm_macro not found" + cm_status=1 + fi + done + fi + if [ "$cm_status" != 0 ]; then + print_m4macros_error + exit $cm_status + fi + if [ -n "$FORBIDDEN_M4MACROS" ]; then + printbold "Checking for forbidden M4 macros..." + # check that each macro file is in one of the macro dirs + for cm_macro in $FORBIDDEN_M4MACROS; do + cm_macrofound=false + for cm_dir in $cm_macrodirs; do + if [ -f "$cm_dir/$cm_macro" ]; then + cm_macrofound=true + break + fi + done + if $cm_macrofound; then + printerr " $cm_macro found (should be cleared from macros dir)" + cm_status=1 + fi + done + fi + if [ "$cm_status" != 0 ]; then + print_m4macros_error + exit $cm_status + fi +} + +# try to catch the case where the macros2/ directory hasn't been cleared out. +forbid_m4macro gnome-cxx-check.m4 + +want_libtool=false +want_gettext=false +want_glib_gettext=false +want_intltool=false +want_pkg_config=false +want_gtk_doc=false +want_gnome_doc_utils=false +want_maintainer_mode=false + +find_configure_files() { + configure_ac= + if test -f "$1/configure.ac"; then + configure_ac="$1/configure.ac" + elif test -f "$1/configure.in"; then + configure_ac="$1/configure.in" + fi + if test "x$configure_ac" != x; then + echo "$configure_ac" + # TODO We have not detected the right autoconf yet! + autoconf -t 'AC_CONFIG_SUBDIRS:$1' "$configure_ac" | while read dir; do + find_configure_files "$1/$dir" + done + fi +} + +configure_files="`find_configure_files $srcdir`" + +for configure_ac in $configure_files; do + dirname=`dirname $configure_ac` + if [ -f $dirname/NO-AUTO-GEN ]; then + echo skipping $dirname -- flagged as no auto-gen + continue + fi + if grep "^A[CM]_PROG_LIBTOOL" $configure_ac >/dev/null || + grep "^LT_INIT" $configure_ac >/dev/null; then + want_libtool=true + fi + if grep "^AM_GNU_GETTEXT" $configure_ac >/dev/null; then + want_gettext=true + fi + if grep "^AM_GLIB_GNU_GETTEXT" $configure_ac >/dev/null; then + want_glib_gettext=true + fi + if grep "^AC_PROG_INTLTOOL" $configure_ac >/dev/null || + grep "^IT_PROG_INTLTOOL" $configure_ac >/dev/null; then + want_intltool=true + fi + if grep "^PKG_CHECK_MODULES" $configure_ac >/dev/null; then + want_pkg_config=true + fi + if grep "^GTK_DOC_CHECK" $configure_ac >/dev/null; then + want_gtk_doc=true + fi + if grep "^GNOME_DOC_INIT" $configure_ac >/dev/null; then + want_gnome_doc_utils=true + fi + + # check that AM_MAINTAINER_MODE is used + if grep "^AM_MAINTAINER_MODE" $configure_ac >/dev/null; then + want_maintainer_mode=true + fi + + if grep "^YELP_HELP_INIT" $configure_ac >/dev/null; then + require_m4macro yelp.m4 + fi + + # check to make sure gnome-common macros can be found ... + if grep "^GNOME_COMMON_INIT" $configure_ac >/dev/null || + grep "^GNOME_DEBUG_CHECK" $configure_ac >/dev/null || + grep "^GNOME_MAINTAINER_MODE_DEFINES" $configure_ac >/dev/null; then + require_m4macro gnome-common.m4 + fi + if grep "^GNOME_COMPILE_WARNINGS" $configure_ac >/dev/null || + grep "^GNOME_CXX_WARNINGS" $configure_ac >/dev/null; then + require_m4macro gnome-compiler-flags.m4 + fi + if grep "^GNOME_CODE_COVERAGE" $configure_ac >/dev/null; then + require_m4macro gnome-code-coverage.m4 + fi +done + +#tell Mandrake autoconf wrapper we want autoconf 2.5x, not 2.13 +WANT_AUTOCONF_2_5=1 +export WANT_AUTOCONF_2_5 +version_check autoconf AUTOCONF 'autoconf2.50 autoconf autoconf-2.53' $REQUIRED_AUTOCONF_VERSION \ + "http://ftp.gnu.org/pub/gnu/autoconf/autoconf-$REQUIRED_AUTOCONF_VERSION.tar.gz" +AUTOHEADER=`echo $AUTOCONF | sed s/autoconf/autoheader/` + +case $REQUIRED_AUTOMAKE_VERSION in + 1.4*) automake_progs="automake-1.4" ;; + 1.5*) automake_progs="automake-1.13 automake-1.12 automake-1.11 automake-1.10 automake-1.9 automake-1.8 automake-1.7 automake-1.6 automake-1.5" ;; + 1.6*) automake_progs="automake-1.13 automake-1.12 automake-1.11 automake-1.10 automake-1.9 automake-1.8 automake-1.7 automake-1.6" ;; + 1.7*) automake_progs="automake-1.13 automake-1.12 automake-1.11 automake-1.10 automake-1.9 automake-1.8 automake-1.7" ;; + 1.8*) automake_progs="automake-1.13 automake-1.12 automake-1.11 automake-1.10 automake-1.9 automake-1.8" ;; + 1.9*) automake_progs="automake-1.13 automake-1.12 automake-1.11 automake-1.10 automake-1.9" ;; + 1.10*) automake_progs="automake-1.13 automake-1.12 automake-1.11 automake-1.10" ;; + 1.11*) automake_progs="automake-1.13 automake-1.12 automake-1.11" ;; + 1.12*) automake_progs="automake-1.13 automake-1.12" ;; + 1.13*) automake_progs="automake-1.13" ;; +esac +version_check automake AUTOMAKE "$automake_progs" $REQUIRED_AUTOMAKE_VERSION \ + "http://ftp.gnu.org/pub/gnu/automake/automake-$REQUIRED_AUTOMAKE_VERSION.tar.gz" +ACLOCAL=`echo $AUTOMAKE | sed s/automake/aclocal/` + +if $want_libtool; then + version_check libtool LIBTOOLIZE "libtoolize glibtoolize" $REQUIRED_LIBTOOL_VERSION \ + "http://ftp.gnu.org/pub/gnu/libtool/libtool-$REQUIRED_LIBTOOL_VERSION.tar.gz" + require_m4macro libtool.m4 +fi + +if $want_gettext; then + version_check gettext GETTEXTIZE gettextize $REQUIRED_GETTEXT_VERSION \ + "http://ftp.gnu.org/pub/gnu/gettext/gettext-$REQUIRED_GETTEXT_VERSION.tar.gz" + require_m4macro gettext.m4 +fi + +if $want_glib_gettext; then + version_check glib-gettext GLIB_GETTEXTIZE glib-gettextize $REQUIRED_GLIB_GETTEXT_VERSION \ + "ftp://ftp.gtk.org/pub/gtk/v2.2/glib-$REQUIRED_GLIB_GETTEXT_VERSION.tar.gz" + require_m4macro glib-gettext.m4 +fi + +if $want_intltool; then + version_check intltool INTLTOOLIZE intltoolize $REQUIRED_INTLTOOL_VERSION \ + "http://ftp.gnome.org/pub/GNOME/sources/intltool/" + require_m4macro intltool.m4 +fi + +if $want_pkg_config; then + version_check pkg-config PKG_CONFIG pkg-config $REQUIRED_PKG_CONFIG_VERSION \ + "'http://www.freedesktop.org/software/pkgconfig/releases/pkgconfig-$REQUIRED_PKG_CONFIG_VERSION.tar.gz" + require_m4macro pkg.m4 +fi + +if $want_gtk_doc; then + version_check gtk-doc GTKDOCIZE gtkdocize $REQUIRED_GTK_DOC_VERSION \ + "http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/" + require_m4macro gtk-doc.m4 +fi + +if $want_gnome_doc_utils; then + version_check gnome-doc-utils GNOME_DOC_PREPARE gnome-doc-prepare $REQUIRED_GNOME_DOC_UTILS_VERSION \ + "http://ftp.gnome.org/pub/GNOME/sources/gnome-doc-utils/" +fi + +if [ "x$USE_COMMON_DOC_BUILD" = "xyes" ]; then + version_check gnome-common DOC_COMMON gnome-doc-common \ + $REQUIRED_DOC_COMMON_VERSION " " +fi + +check_m4macros + +if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then + printerr "**Warning**: I am going to run \`configure' with no arguments." + printerr "If you wish to pass any to it, please specify them on the" + printerr \`$0\'" command line." + printerr +fi + +topdir=`pwd` +for configure_ac in $configure_files; do + dirname=`dirname $configure_ac` + basename=`basename $configure_ac` + if [ -f $dirname/NO-AUTO-GEN ]; then + echo skipping $dirname -- flagged as no auto-gen + elif [ ! -w $dirname ]; then + echo skipping $dirname -- directory is read only + else + printbold "Processing $configure_ac" + cd $dirname + + # Note that the order these tools are called should match what + # autoconf's "autoupdate" package does. See bug 138584 for + # details. + + # programs that might install new macros get run before aclocal + if grep "^A[CM]_PROG_LIBTOOL" $basename >/dev/null || + grep "^LT_INIT" $basename >/dev/null; then + printbold "Running $LIBTOOLIZE..." + $LIBTOOLIZE --force --copy || exit 1 + fi + + if grep "^AM_GLIB_GNU_GETTEXT" $basename >/dev/null; then + printbold "Running $GLIB_GETTEXTIZE... Ignore non-fatal messages." + echo "no" | $GLIB_GETTEXTIZE --force --copy || exit 1 + elif grep "^AM_GNU_GETTEXT" $basename >/dev/null; then + if grep "^AM_GNU_GETTEXT_VERSION" $basename > /dev/null; then + printbold "Running autopoint..." + autopoint --force || exit 1 + else + printbold "Running $GETTEXTIZE... Ignore non-fatal messages." + echo "no" | $GETTEXTIZE --force --copy || exit 1 + fi + fi + + if grep "^AC_PROG_INTLTOOL" $basename >/dev/null || + grep "^IT_PROG_INTLTOOL" $basename >/dev/null; then + printbold "Running $INTLTOOLIZE..." + $INTLTOOLIZE --force --copy --automake || exit 1 + fi + if grep "^GTK_DOC_CHECK" $basename >/dev/null; then + printbold "Running $GTKDOCIZE..." + $GTKDOCIZE --copy || exit 1 + fi + + if [ "x$USE_COMMON_DOC_BUILD" = "xyes" ]; then + printbold "Running gnome-doc-common..." + gnome-doc-common --copy || exit 1 + fi + if grep "^GNOME_DOC_INIT" $basename >/dev/null; then + printbold "Running $GNOME_DOC_PREPARE..." + $GNOME_DOC_PREPARE --force --copy || exit 1 + fi + + # Now run aclocal to pull in any additional macros needed + + # if the AC_CONFIG_MACRO_DIR() macro is used, pass that + # directory to aclocal. + m4dir=`cat "$basename" | grep '^AC_CONFIG_MACRO_DIR' | sed -n -e 's/AC_CONFIG_MACRO_DIR(\([^()]*\))/\1/p' | sed -e 's/^\[\(.*\)\]$/\1/' | sed -e 1q` + if [ -n "$m4dir" ]; then + m4dir="-I $m4dir" + fi + printbold "Running $ACLOCAL..." + $ACLOCAL $m4dir $ACLOCAL_FLAGS || exit 1 + + if grep "GNOME_AUTOGEN_OBSOLETE" aclocal.m4 >/dev/null; then + printerr "*** obsolete gnome macros were used in $configure_ac" + fi + + # Now that all the macros are sorted, run autoconf and autoheader ... + printbold "Running $AUTOCONF..." + $AUTOCONF || exit 1 + if grep "^A[CM]_CONFIG_HEADER" $basename >/dev/null; then + printbold "Running $AUTOHEADER..." + $AUTOHEADER || exit 1 + # this prevents automake from thinking config.h.in is out of + # date, since autoheader doesn't touch the file if it doesn't + # change. + test -f config.h.in && touch config.h.in + fi + + # Finally, run automake to create the makefiles ... + printbold "Running $AUTOMAKE..." + if [ -f COPYING ]; then + cp -pf COPYING COPYING.autogen_bak + fi + if [ -f INSTALL ]; then + cp -pf INSTALL INSTALL.autogen_bak + fi + if [ $REQUIRED_AUTOMAKE_VERSION != 1.4 ]; then + $AUTOMAKE --gnu --add-missing --copy -Wno-portability || exit 1 + else + $AUTOMAKE --gnu --add-missing --copy || exit 1 + fi + if [ -f COPYING.autogen_bak ]; then + cmp COPYING COPYING.autogen_bak > /dev/null || cp -pf COPYING.autogen_bak COPYING + rm -f COPYING.autogen_bak + fi + if [ -f INSTALL.autogen_bak ]; then + cmp INSTALL INSTALL.autogen_bak > /dev/null || cp -pf INSTALL.autogen_bak INSTALL + rm -f INSTALL.autogen_bak + fi + + cd "$topdir" + fi +done + +conf_flags="" + +if $want_maintainer_mode; then + conf_flags="--enable-maintainer-mode" +fi + +if test x$NOCONFIGURE = x; then + printbold Running $srcdir/configure $conf_flags "$@" ... + $srcdir/configure $conf_flags "$@" \ + && echo Now type \`make\' to compile $PKG_NAME || exit 1 +else + echo Skipping configure process. +fi diff --git a/community/nemo/nemo.install b/community/nemo/nemo.install new file mode 100644 index 000000000..da632ed5c --- /dev/null +++ b/community/nemo/nemo.install @@ -0,0 +1,14 @@ +post_install() { + glib-compile-schemas --allow-any-name usr/share/glib-2.0/schemas + update-desktop-database -q + gtk-update-icon-cache -ftq usr/share/icons/hicolor + update-mime-database usr/share/mime > /dev/null +} + +post_upgrade() { + post_install "$1" +} + +post_remove() { + post_install "$1" +} diff --git a/community/opencolorio/PKGBUILD b/community/opencolorio/PKGBUILD index a6db87b13..03af2a79f 100644 --- a/community/opencolorio/PKGBUILD +++ b/community/opencolorio/PKGBUILD @@ -2,7 +2,7 @@ # Contributor: Dumitru Ursu <dima@ceata.org> pkgname=opencolorio -pkgver=1.0.7 +pkgver=1.0.8 pkgrel=1 pkgdesc="A color management framework for visual effects and animation" arch=('i686' 'x86_64' 'mips64el') @@ -11,11 +11,11 @@ license=('BSD') depends=('python' 'lcms2' 'tinyxml') makedepends=('cmake') source=(http://github.com/imageworks/OpenColorIO/tarball/v$pkgver) -sha1sums=('01befa5c4198254b8848946ba3c85cce9a0f38d4') +sha1sums=('9b9bac9ed85c84f53775686eb72f3d612b148fef') build() { - mv imageworks-OpenColorIO-b3cb224 $pkgname-$pkgver + mv imageworks-OpenColorIO-* $pkgname-$pkgver cd $pkgname-$pkgver [ "$CARCH" = "mips64el" ] && extra=-DOCIO_USE_SSE=OFF diff --git a/community/openshadinglanguage/PKGBUILD b/community/openshadinglanguage/PKGBUILD index 92df51c92..2fcc49be5 100644 --- a/community/openshadinglanguage/PKGBUILD +++ b/community/openshadinglanguage/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> pkgname=openshadinglanguage -pkgver=1.2.1 +pkgver=1.3.0 pkgrel=1 pkgdesc="Advanced shading language for production GI renderers" arch=(i686 x86_64) @@ -8,16 +8,12 @@ url="http://code.google.com/p/openshadinglanguage/" license=('custom') depends=('boost-libs' 'openimageio' 'openexr' 'llvm' 'intel-tbb' 'freetype2' 'libpng' 'libtiff') makedepends=('boost' 'cmake' 'clang') -source=(https://github.com/imageworks/OpenShadingLanguage/archive/Release-${pkgver}.tar.gz - llvm32.patch) -md5sums=('5635d0c3005d839b9590b49c20e8b821' - '3147f26453b28a971688ab6e54933449') +source=(https://github.com/imageworks/OpenShadingLanguage/archive/Release-${pkgver}.tar.gz) +md5sums=('1e8c47475cb092cec0aada843b2893ed') build() { cd OpenShadingLanguage-Release-$pkgver/src - patch -Np2 < $srcdir/llvm32.patch - [[ -d build ]] && rm -r build mkdir build && cd build @@ -32,10 +28,8 @@ package() { mkdir -p $pkgdir/usr/share/OSL/ mkdir -p $pkgdir/usr/share/licenses/$pkgname - ls $pkgdir/usr/LICENSE - ls $pkgdir/usr/share/licenses/$pkgname - mv $pkgdir/usr/LICENSE $pkgdir/usr/share/licenses/$pkgname - mv $pkgdir/usr/{CHANGES,README,INSTALL} $pkgdir/usr/share/OSL/ + mv $pkgdir/usr/LICENSE $pkgdir/usr/share/licenses/$pkgname # TODO: Tell upstream about this shit + mv $pkgdir/usr/{CHANGES,README.md,INSTALL} $pkgdir/usr/share/OSL/ mv $pkgdir/usr/doc $pkgdir/usr/share/OSL/doc mv $pkgdir/usr/shaders $pkgdir/usr/share/OSL/shaders } diff --git a/community/projectm/PKGBUILD b/community/projectm/PKGBUILD index d6226ccf0..73552a51e 100644 --- a/community/projectm/PKGBUILD +++ b/community/projectm/PKGBUILD @@ -1,41 +1,82 @@ -# $Id: PKGBUILD 78939 2012-10-27 23:45:21Z ebelanger $ +# $Id: PKGBUILD 84566 2013-02-19 22:29:25Z arodseth $ # Maintainer: Alexander Rødseth <rodseth@gmail.com> # Contributor: Lukas Fleischer <archlinux at cryptocrack dot de> # Contributor: Alexander Baldeck <alexander@archlinux.org> +# Contributor: Denis A. Altoe Falqueto <denisfalqueto@gmail.com> pkgbase=projectm -pkgname=('projectm' 'libvisual-projectm') +pkgname=('projectm' 'projectm-libvisual' 'projectm-pulseaudio' 'projectm-qt' 'projectm-test') pkgver=2.1.0 -pkgrel=2 +pkgrel=3 arch=('i686' 'x86_64' 'mips64el') url='http://projectm.sourceforge.net/' license=('LGPL') -makedepends=('cmake' 'ftgl' 'glew' 'gtkglext' 'libvisual' 'sdl' 'libxext') -source=("http://downloads.sourceforge.net/$pkgname/projectM-complete-$pkgver-Source.tar.gz") -sha256sums=('513204f033006bd3dcdf8aada196d816d6b7187266ddcbb1594d0285cc9406ee') +makedepends=('mesa' 'qt' 'cmake' 'ftgl' 'glew' 'gtkglext' 'libvisual' 'sdl' 'libxext' 'pulseaudio') +source=("http://downloads.sourceforge.net/$pkgname/projectM-complete-$pkgver-Source.tar.gz" + 'projectm-test-opengl.patch' + 'projectm-install-vera-ttf.patch') +sha256sums=('513204f033006bd3dcdf8aada196d816d6b7187266ddcbb1594d0285cc9406ee' + 'c577d8356be011a3b3ee9f9b389db55f47804d100f690d8ea12f2920cdd432d1' + '7d67aad0b210edf25a527274504c9efdf3e9d5b737235b938fec361ac5a8b110') +_projectmdir="projectM-complete-$pkgver-Source" build() { - cd $srcdir/projectM-complete-$pkgver-Source/src - cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DINCLUDE-PROJECTM-QT=OFF \ - -DINCLUDE-PROJECTM-PULSEAUDIO=OFF -DINCLUDE-PROJECTM-TEST=OFF + cd "$srcdir/projectM-complete-$pkgver-Source" + patch -p1 -i "$srcdir/projectm-test-opengl.patch" + patch -p1 -i "$srcdir/projectm-install-vera-ttf.patch" + + mkdir -p "$srcdir/build" + cd "$srcdir/build" + + cmake \ + -Wno-dev \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + "../projectM-complete-$pkgver-Source" make } package_projectm() { pkgdesc='Music visualizer which uses 3D accelerated iterative image based rendering' - depends=('ftgl' 'glew' 'gtkglext') + depends=('ftgl' 'glew') + + cd "$srcdir/build" + + for dirs in src/{NativePresets,libprojectM}; do + make -C "$dirs" DESTDIR="$pkgdir" install + done +} - cd $srcdir/projectM-complete-$pkgver-Source/src/libprojectM - make DESTDIR=$pkgdir install - install -m644 fonts/Vera.ttf $pkgdir/usr/share/projectM/fonts/Vera.ttf +package_projectm-libvisual() { + pkgdesc='ProjectM plugin for XMMS' + depends=('projectm' 'libvisual') + + cd "$srcdir/build/src/projectM-libvisual" + make DESTDIR="$pkgdir" install } -package_libvisual-projectm() { - pkgdesc='ProjectM XMMS plugin' - depends=("projectm>=$pkgver" 'libvisual' 'sdl') +package_projectm-pulseaudio() { + pkgdesc='ProjectM support for Pulseaudio' + depends=('projectm' 'projectm-qt' 'pulseaudio') + + cd "$srcdir/build/src/projectM-pulseaudio" + make DESTDIR="$pkgdir" install +} + +package_projectm-qt() { + pkgdesc='Qt bindings for ProjectM' + depends=('projectm' 'qt') + + cd "$srcdir/build/src/projectM-qt" + make DESTDIR="$pkgdir" install +} - cd $srcdir/projectM-complete-$pkgver-Source/src/projectM-libvisual - make DESTDIR=$pkgdir install +package_projectm-test() { + pkgdesc='ProjectM test applications' + depends=('projectm' 'sdl') + + cd "$srcdir/build/src/projectM-test" + make DESTDIR="$pkgdir" install } # vim:set ts=2 sw=2 et: diff --git a/community/projectm/projectm-install-vera-ttf.patch b/community/projectm/projectm-install-vera-ttf.patch new file mode 100644 index 000000000..ee7a5e943 --- /dev/null +++ b/community/projectm/projectm-install-vera-ttf.patch @@ -0,0 +1,12 @@ +diff -rupN projectM-complete-2.1.0-Source.old/src/libprojectM/CMakeLists.txt projectM-complete-2.1.0-Source/src/libprojectM/CMakeLists.txt +--- projectM-complete-2.1.0-Source.old/src/libprojectM/CMakeLists.txt 2012-06-30 02:21:45.134586637 -0300 ++++ projectM-complete-2.1.0-Source/src/libprojectM/CMakeLists.txt 2012-06-30 02:24:58.476872545 -0300 +@@ -224,7 +224,7 @@ CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_D + CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/config.inp.in" "${CMAKE_CURRENT_BINARY_DIR}/config.inp" @ONLY) + + IF(projectM_FONT_MENU MATCHES "${CMAKE_INSTALL_PREFIX}/${RESOURCE_PREFIX}/fonts/Vera.ttf" OR projectM_FONT_TITLE MATCHES "${CMAKE_INSTALL_PREFIX}/${RESOURCE_PREFIX}/fonts/Vera.ttf") +- INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/fonts/VeraMono.ttf DESTINATION ${CMAKE_INSTALL_PREFIX}/${RESOURCE_PREFIX}/fonts) ++ INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/fonts/Vera.ttf DESTINATION ${CMAKE_INSTALL_PREFIX}/${RESOURCE_PREFIX}/fonts) + ENDIF(projectM_FONT_MENU MATCHES "${CMAKE_INSTALL_PREFIX}/${RESOURCE_PREFIX}/fonts/Vera.ttf" OR projectM_FONT_TITLE MATCHES "${CMAKE_INSTALL_PREFIX}/${RESOURCE_PREFIX}/fonts/Vera.ttf") + + IF(projectM_FONT_MENU MATCHES "${CMAKE_INSTALL_PREFIX}/${RESOURCE_PREFIX}/fonts/VeraMono.ttf" OR projectM_FONT_TITLE MATCHES "${CMAKE_INSTALL_PREFIX}/${RESOURCE_PREFIX}/fonts/VeraMono.ttf") diff --git a/community/projectm/projectm-test-opengl.patch b/community/projectm/projectm-test-opengl.patch new file mode 100644 index 000000000..b9211ea0c --- /dev/null +++ b/community/projectm/projectm-test-opengl.patch @@ -0,0 +1,19 @@ +diff -rupN projectM-complete-2.1.0-Source.old/src/projectM-test/CMakeLists.txt projectM-complete-2.1.0-Source/src/projectM-test/CMakeLists.txt +--- projectM-complete-2.1.0-Source.old/src/projectM-test/CMakeLists.txt 2012-05-20 00:43:26.000000000 -0300 ++++ projectM-complete-2.1.0-Source/src/projectM-test/CMakeLists.txt 2012-06-30 01:01:55.947058502 -0300 +@@ -35,11 +35,11 @@ elseif (${CMAKE_PROJECT_NAME} MATCHES ${ + set(PROJECTM_LINK ${LIBPROJECTM_LDFLAGS}) + endif (${CMAKE_PROJECT_NAME} MATCHES "projectM-complete") + +-INCLUDE_DIRECTORIES(${PROJECTM_INCLUDE} ${SDL_INCLUDE_DIR} ${GTK_INCLUDE_DIR}) ++INCLUDE_DIRECTORIES(${PROJECTM_INCLUDE} ${SDL_INCLUDE_DIR} ${GTK_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR}) + LINK_DIRECTORIES(${PROJECTM_LINK}) + +-TARGET_LINK_LIBRARIES(projectM-test projectM ${SDL_LIBRARY}) +-TARGET_LINK_LIBRARIES(projectM-test-memleak projectM ${SDL_LIBRARY} ) +-TARGET_LINK_LIBRARIES(projectM-test-texture projectM ${SDL_LIBRARY} ) ++TARGET_LINK_LIBRARIES(projectM-test projectM ${SDL_LIBRARY} ${OPENGL_gl_LIBRARY} ) ++TARGET_LINK_LIBRARIES(projectM-test-memleak projectM ${SDL_LIBRARY} ${OPENGL_gl_LIBRARY} ) ++TARGET_LINK_LIBRARIES(projectM-test-texture projectM ${SDL_LIBRARY} ${OPENGL_gl_LIBRARY} ) + + INSTALL(TARGETS projectM-test projectM-test-texture DESTINATION ${CMAKE_INSTALL_PREFIX}/bin ) |