mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 17:57:14 +08:00
adding mediadownloader, voted in from ccr & calibre-bin
This commit is contained in:
parent
113f6006ba
commit
9d273854f6
59
calibre-bin/PKGBUILD
Normal file
59
calibre-bin/PKGBUILD
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
#
|
||||||
|
# Apps Packages for Chakra, part of chakra-project.org
|
||||||
|
#
|
||||||
|
# contributor (x86_64): Daniele Cocca <jmc@chakra-project.org>
|
||||||
|
|
||||||
|
# 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:
|
12
calibre-bin/calibre.install
Normal file
12
calibre-bin/calibre.install
Normal file
@ -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
|
||||||
|
}
|
35
mediadownloader/PKGBUILD
Normal file
35
mediadownloader/PKGBUILD
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
# Platform Packages for Chakra, part of chakra-project.org
|
||||||
|
#
|
||||||
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
||||||
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
||||||
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
6
mediadownloader/mediadownloader.install
Normal file
6
mediadownloader/mediadownloader.install
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
post_install() {
|
||||||
|
echo "==> KNOWN ISSUES"
|
||||||
|
echo "==> Seeking while flv is playing restarts video."
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 et:
|
Loading…
Reference in New Issue
Block a user