[magickthumbnail] Imported MagickThumbnail from ABS.

git-svn-id: svn+ssh://scm.narf.ssji.net/svn/archlinux-packages@249 df209809-8e4a-0410-9a64-c169741eb0fc
This commit is contained in:
shtrom 2010-07-12 07:01:37 +00:00
commit a9efaf0c1b
4 changed files with 83 additions and 0 deletions

16
.SRCINFO Normal file
View file

@ -0,0 +1,16 @@
pkgbase = magickthumbnail
pkgdesc = Helper program for ROX-Filer that provides thumbnails for image and font files
pkgver = 1.0
pkgrel = 1
url = http://roxos.sunsite.dk/dev-contrib/guido/
install = magickthumbnail.install
arch = i686
arch = x86_64
license = GPL2
depends = rox
depends = rox-lib
source = http://roxos.sunsite.dk/dev-contrib/guido/MagickThumbnail.tar.bz2
md5sums = 7407cd73f085d13682ac82516988c37c
pkgname = magickthumbnail

0
.gitignore vendored Normal file
View file

25
PKGBUILD Normal file
View file

@ -0,0 +1,25 @@
# $Id$
# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
pkgname=magickthumbnail
pkgver=1.0
pkgrel=1
pkgdesc="Helper program for ROX-Filer that provides thumbnails for image and font files"
arch=('i686' 'x86_64')
url="http://roxos.sunsite.dk/dev-contrib/guido/"
license=("GPL2")
depends=('rox' 'rox-lib')
install=magickthumbnail.install
source=(http://roxos.sunsite.dk/dev-contrib/guido/MagickThumbnail.tar.bz2)
md5sums=('7407cd73f085d13682ac82516988c37c')
build() {
mkdir -p $startdir/pkg/usr/share
cp -rp MagickThumbnail $startdir/pkg/usr/share
# create a shellscript which is known in the PATH
mkdir -p $startdir/pkg/usr/bin
echo "#!/bin/sh" > "$startdir/pkg/usr/bin/magickthumbnail"
echo "exec /usr/share/MagickThumbnail/AppRun \"\$@\"" >> "$startdir/pkg/usr/bin/magickthumbnail"
chmod a+x $startdir/pkg/usr/bin/magickthumbnail
}

42
magickthumbnail.install Normal file
View file

@ -0,0 +1,42 @@
# This is a default template for a post-install scriptlet. You can
# remove any functions you don't need (and this header).
# arg 1: the new package version
pre_install() {
/bin/true
}
# arg 1: the new package version
post_install() {
echo " > To install the handlers necessary to display thumbs,"
echo " > as EACH user you need to first run:"
echo " > /usr/bin/magickthumbnail"
echo " > and click \"install handlers\", then click \"ok\" and"
echo " > \"ok\" to exit"
}
# arg 1: the new package version
# arg 2: the old package version
pre_upgrade() {
/bin/true
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
/bin/true
}
# arg 1: the old package version
pre_remove() {
/bin/true
}
# arg 1: the old package version
post_remove() {
/bin/true
}
op=$1
shift
$op $*