From 9d273854f6563c2443369188e03f6682cd250c4f Mon Sep 17 00:00:00 2001 From: Anke Date: Wed, 4 May 2011 16:23:43 +0000 Subject: [PATCH] adding mediadownloader, voted in from ccr & calibre-bin --- calibre-bin/PKGBUILD | 59 +++++++++++++++++++++++++ calibre-bin/calibre.install | 12 +++++ mediadownloader/PKGBUILD | 35 +++++++++++++++ mediadownloader/mediadownloader.install | 6 +++ 4 files changed, 112 insertions(+) create mode 100644 calibre-bin/PKGBUILD create mode 100644 calibre-bin/calibre.install create mode 100644 mediadownloader/PKGBUILD create mode 100644 mediadownloader/mediadownloader.install diff --git a/calibre-bin/PKGBUILD b/calibre-bin/PKGBUILD new file mode 100644 index 000000000..23b2d5edb --- /dev/null +++ b/calibre-bin/PKGBUILD @@ -0,0 +1,59 @@ +# +# Apps Packages for Chakra, part of chakra-project.org +# +# contributor (x86_64): Daniele Cocca + +# include global config +source ../_buildscripts/${current_repo}-${_arch}-cfg.conf + +pkgname=calibre-bin +pkgver=0.7.59 +pkgrel=1 +pkgdesc="Ebook management application." +arch=('i686' 'x86_64') +url="http://www.calibre-ebook.com/" +license=('GPL3') +depends=('python2') +makedepends=('python2' 'xdg-utils') +provides=("calibre=${pkgver}") +conflicts=('calibre') +install=calibre.install +source=('http://status.calibre-ebook.com/linux_installer') +md5sums=('a648c653b4f9503a4faeaa73e1ecf534') +noextract=('linux_installer') + +package() { + cd "${srcdir}" + + # + # Create the needed install directories. + # + install -d "${pkgdir}/opt" + install -d "${pkgdir}/usr/bin" + + # + # Patch and launch the installer script. + # + cp -f linux_installer linux_installer.py + sed "s~destdir = os.path.abspath(destdir)~originaldir = destdir; destdir = os.path.abspath(destdir) + '/opt'~g" -i linux_installer.py + sed "s~subprocess.call(pi, shell=True)~subprocess.call(pi + ' --root="{0}/usr"'.format(originaldir), shell=True)~g" -i linux_installer.py + echo "${pkgdir}" | python2 -c "from linux_installer import *; main()" + + # + # Remove the symlinks and create wrapper scripts with a correct LD_LIBRARY_PATH. + # + __to_fix=('fetch-ebook-metadata' 'lrf2lrs' 'ebook-convert' 'ebook-meta' 'pdfmanipulate' 'lrs2lrf' 'lrfviewer' 'calibre' 'markdown-calibre' 'calibre-debug' 'calibre-parallel' 'web2disk' 'calibre-server' 'calibre-customize' 'ebook-viewer' 'calibre-smtp' 'epub-fix' 'ebook-device' 'librarything' 'calibredb') + + for file in ${__to_fix[@]}; do + rm -f "${pkgdir}/usr/bin/${file}" + + cat > "${pkgdir}/usr/bin/${file}" <<-EOF +#!/bin/sh +LD_LIBRARY_PATH=/opt/calibre/lib /opt/calibre/bin/${file} +EOF + + chmod +x "${pkgdir}/usr/bin/${file}" + done +} + +# vim:set ts=2 sw=2 et: diff --git a/calibre-bin/calibre.install b/calibre-bin/calibre.install new file mode 100644 index 000000000..6210bd0ab --- /dev/null +++ b/calibre-bin/calibre.install @@ -0,0 +1,12 @@ +post_install() { + update-desktop-database -q + update-mime-database usr/share/mime &> /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} diff --git a/mediadownloader/PKGBUILD b/mediadownloader/PKGBUILD new file mode 100644 index 000000000..0f7677b3e --- /dev/null +++ b/mediadownloader/PKGBUILD @@ -0,0 +1,35 @@ +# Platform Packages for Chakra, part of chakra-project.org +# +# maintainer (i686): Phil Miller +# maintainer (x86_64): Manuel Tortosa +# Maintainer: Adrián Chaves Fernández (Gallaecio) + +pkgname=mediadownloader +_pkgname=MediaDownloader +pkgver=1.5.0_1 +_pkgver=1.5.0-1 +_pkgver2=1.5.0 +pkgrel=1 +pkgdesc="Application for searching images and videos in the Internet." +arch=('i686' 'x86_64') +url="http://mediadownloader.cz.cc/" +license=('GPL3') +depends=('libxtst' 'qt') +install=$pkgname.install +source=("http://downloads.sourceforge.net/project/googleimagedown/project/v$_pkgver2/${pkgname}_v${_pkgver}_src.tar.bz2") +md5sums=('39cfb1d335587a243bf5ccb5b4ff2cef') + +build() { + cd $srcdir/$_pkgname + + qmake + make +} + +package() { + cd $srcdir/$_pkgname +# make DESTDIR="$pkgdir" install + + # Manual installation (DESTDIR variable is not working ATM) + install -Dm 755 $srcdir/$_pkgname/bin/$pkgname $pkgdir/usr/bin/$pkgname +} diff --git a/mediadownloader/mediadownloader.install b/mediadownloader/mediadownloader.install new file mode 100644 index 000000000..b44908d9a --- /dev/null +++ b/mediadownloader/mediadownloader.install @@ -0,0 +1,6 @@ +post_install() { + echo "==> KNOWN ISSUES" + echo "==> Seeking while flv is playing restarts video." +} + +# vim:set ts=2 sw=2 et: