diff options
author | root <root@rshg047.dnsready.net> | 2011-05-10 22:33:36 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-05-10 22:33:36 +0000 |
commit | 01b47af6474ac094ec199c7d75208874f8842d87 (patch) | |
tree | 44a048d09e5233a98d35c660e67be2a818832a56 /community-testing | |
parent | bbb460f85242e6ac03f47b74b9d0be66ff089ac4 (diff) |
Tue May 10 22:33:36 UTC 2011
Diffstat (limited to 'community-testing')
-rw-r--r-- | community-testing/calibre/PKGBUILD | 38 | ||||
-rw-r--r-- | community-testing/clementine/PKGBUILD | 35 | ||||
-rw-r--r-- | community-testing/clementine/clementine-0.7.1-fix-devicekit.patch | 11 | ||||
-rw-r--r-- | community-testing/clementine/clementine.install | 12 |
4 files changed, 77 insertions, 19 deletions
diff --git a/community-testing/calibre/PKGBUILD b/community-testing/calibre/PKGBUILD index 4bda28ff2..e6f9c227c 100644 --- a/community-testing/calibre/PKGBUILD +++ b/community-testing/calibre/PKGBUILD @@ -1,45 +1,45 @@ -# $Id: PKGBUILD 46006 2011-05-01 19:38:47Z schuay $ +# $Id: PKGBUILD 46560 2011-05-09 06:22:55Z andrea $ # Maintainer: Giovanni Scafora <giovanni@archlinux.org> # Contributor: Petrov Roman <nwhisper@gmail.com> # Contributor: Andrea Fagiani <andfagiani _at_ gmail dot com> pkgname=calibre pkgver=0.7.59 -pkgrel=2 +pkgrel=3 pkgdesc="Ebook management application" arch=('i686' 'x86_64') -url="http://calibre.kovidgoyal.net/" +url="http://calibre-ebook.com/" license=('GPL3') depends=('python-dateutil' 'python2-cssutils' 'python-pypdf' 'python2-cherrypy' 'python-mechanize' 'podofo' 'libwmf' 'python-beautifulsoup' 'imagemagick' 'poppler-qt' 'chmlib' 'python-lxml' 'libusb' 'python-imaging' 'desktop-file-utils' 'shared-mime-info' - 'python-dnspython' 'unrar' 'python2-qt' 'icu') + 'python-dnspython' 'unrar' 'python2-pyqt' 'icu') makedepends=('python2-pycountry') optdepends=('ipython: to use calibre-debug') install=calibre.install -source=(http://calibre-ebook.googlecode.com/files/${pkgname}-${pkgver}.tar.gz +source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz desktop_integration.patch) md5sums=('78ebed5248758b9be1d135ae018b8dfe' 'bcc538a3b004429bf8f5a0ac1d89a37f') build() { - cd "${pkgname}" + cd "${srcdir}/${pkgname}" rm -rf src/{cherrypy,pyPdf} sed -i -e "s/ldflags = shlex.split(ldflags)/ldflags = shlex.split(ldflags) + ['-fPIC']/" setup/extensions.py sed -i -e 's:\(#!/usr/bin/env[ ]\+python$\|#!/usr/bin/python$\):\12:g' \ $(find . -regex ".*.py\|.*.recipe") - python2 setup.py build || return 1 - python2 setup.py resources || return 1 - python2 setup.py translations || return 1 + python2 setup.py build + python2 setup.py resources + python2 setup.py translations } package() { - cd ${pkgname} + cd "${srcdir}/${pkgname}" - patch -Np1 -i $srcdir/desktop_integration.patch || return 1 + patch -Np1 -i "${srcdir}/desktop_integration.patch" # More on desktop integration (e.g. enforce arch defaults) sed -i -e "/self.create_uninstaller()/,/os.rmdir(config_dir)/d" \ @@ -51,16 +51,16 @@ package() { # Fix the environment module location sed -i -e "s|(prefix=.*)|(prefix='$pkgdir/usr')|g" setup/install.py - mkdir -p ${pkgdir}/usr/lib/python2.7/site-packages - python2 setup.py install --root=${pkgdir}/ --prefix=/usr \ - --staging-bindir=${pkgdir}/usr/bin \ - --staging-libdir=${pkgdir}/usr/lib \ - --staging-sharedir=${pkgdir}/usr/share + install -d "${pkgdir}/usr/lib/python2.7/site-packages" + python2 setup.py install --root="${pkgdir}" --prefix=/usr \ + --staging-bindir="${pkgdir}/usr/bin" \ + --staging-libdir="${pkgdir}/usr/lib" \ + --staging-sharedir="${pkgdir}/usr/share" - find ${pkgdir} -type d -empty -delete + find "${pkgdir}" -type d -empty -delete # Decompress the man pages so makepkg will do it for us. - for decom in ${pkgdir}/usr/share/man/man1/*.bz2; do - bzip2 -d ${decom} + for decom in "${pkgdir}"/usr/share/man/man1/*.bz2; do + bzip2 -d "${decom}" done } diff --git a/community-testing/clementine/PKGBUILD b/community-testing/clementine/PKGBUILD new file mode 100644 index 000000000..4d0965bed --- /dev/null +++ b/community-testing/clementine/PKGBUILD @@ -0,0 +1,35 @@ +# $Id: PKGBUILD 46607 2011-05-09 23:12:17Z stephane $ +#Maintainer: Stéphane Gaudreault <stephane@archlinux.org> +#Contributor: BlackEagle < ike DOT devolder AT gmail DOT com > +#Contributor: Dany Martineau <dany.luc.martineau@gmail.com> + +pkgname=clementine +pkgver=0.7.1 +pkgrel=3 +pkgdesc="A music player and library organizer" +url="http://www.clementine-player.org/" +license=('GPL') +arch=('i686' 'x86_64') +depends=('gstreamer0.10' 'taglib' 'glew' 'liblastfm' 'libgpod' 'libmtp' 'libplist' 'hicolor-icon-theme' 'qt' 'libimobiledevice') +makedepends=('cmake' 'boost') +optdepends=('gstreamer0.10-base-plugins: for more open formats' + 'gstreamer0.10-good-plugins: for use with "Good" plugin libraries' + 'gstreamer0.10-bad-plugins: for use with "Bad" plugin libraries' + 'gstreamer0.10-ugly-plugins: for use with "Ugly" plugin libraries') +source=(http://clementine-player.googlecode.com/files/${pkgname}-${pkgver}.tar.gz + clementine-0.7.1-fix-devicekit.patch) +sha1sums=('8b2025b8876f9f3fe33ef5001e0621f3a5d0f142' + 'd595e2746949363680e0d64fe2fb97b524c8d27c') +install=clementine.install + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -Np1 -i ../clementine-0.7.1-fix-devicekit.patch + cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DSTATIC_SQLITE=0 -DENABLE_GIO=OFF + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install +} diff --git a/community-testing/clementine/clementine-0.7.1-fix-devicekit.patch b/community-testing/clementine/clementine-0.7.1-fix-devicekit.patch new file mode 100644 index 000000000..797a2c864 --- /dev/null +++ b/community-testing/clementine/clementine-0.7.1-fix-devicekit.patch @@ -0,0 +1,11 @@ +diff -Naur clementine-0.7.1.ori/src/config.h.in clementine-0.7.1/src/config.h.in +--- clementine-0.7.1.ori/src/config.h.in 2011-03-29 12:16:15.000000000 -0700 ++++ clementine-0.7.1/src/config.h.in 2011-05-09 16:00:26.505080057 -0700 +@@ -29,6 +29,7 @@ + #cmakedefine HAVE_STATIC_SQLITE + + #cmakedefine HAVE_DBUS ++#cmakedefine HAVE_DEVICEKIT + #cmakedefine HAVE_GIO + #cmakedefine HAVE_IMOBILEDEVICE + #cmakedefine HAVE_LIBARCHIVE diff --git a/community-testing/clementine/clementine.install b/community-testing/clementine/clementine.install new file mode 100644 index 000000000..2d71a7563 --- /dev/null +++ b/community-testing/clementine/clementine.install @@ -0,0 +1,12 @@ +post_install() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install $1 +} + + +post_remove() { + post_install $1 +} |