summaryrefslogtreecommitdiff
path: root/community/kchmviewer
diff options
context:
space:
mode:
Diffstat (limited to 'community/kchmviewer')
-rw-r--r--community/kchmviewer/PKGBUILD40
-rw-r--r--community/kchmviewer/kchmviewer.changelog29
-rw-r--r--community/kchmviewer/kchmviewer.install12
3 files changed, 81 insertions, 0 deletions
diff --git a/community/kchmviewer/PKGBUILD b/community/kchmviewer/PKGBUILD
new file mode 100644
index 000000000..3a41d670c
--- /dev/null
+++ b/community/kchmviewer/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 85365 2013-03-01 10:34:18Z andrea $
+# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+# Contributor: Alexander Bogdanov <andorn@gmail.com>
+
+pkgname=kchmviewer
+pkgver=6.0
+pkgrel=3
+pkgdesc="A .chm files (MS HTML help file format) viewer"
+arch=('i686' 'x86_64')
+url="http://kchmviewer.sourceforge.net/"
+license=('GPL')
+depends=('desktop-file-utils' 'chmlib' 'kdebase-runtime' 'xdg-utils')
+makedepends=('automoc4' 'cmake')
+options=('libtool')
+install=$pkgname.install
+changelog=$pkgname.changelog
+source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
+sha256sums=('81c856434a86977039c36cb10f2427cc8cb1ea29a778f24fff2285d49c717979')
+
+build() {
+ cd $pkgname-$pkgver
+
+ cmake . -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+
+ make DESTDIR=${pkgdir} install
+
+#icon file
+ install -D -m644 ${srcdir}/$pkgname-$pkgver/packages/$pkgname.png \
+ ${pkgdir}/usr/share/pixmaps/$pkgname.png
+
+#msits.protocol file provided by kdegraphics-okular package
+ rm -rf ${pkgdir}/usr/share/kde4
+#kio_msits.so file provided by kdegraphics-okular package - FS#14376
+ rm -rf ${pkgdir}/usr/lib
+}
diff --git a/community/kchmviewer/kchmviewer.changelog b/community/kchmviewer/kchmviewer.changelog
new file mode 100644
index 000000000..3204bc3dc
--- /dev/null
+++ b/community/kchmviewer/kchmviewer.changelog
@@ -0,0 +1,29 @@
+2011-12-21 Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+ * kchmviewer 6.0-1
+
+2011-01-15 Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+ * kchmviewer-5.3
+
+2010-06-14 Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+ * Update to major release 5.2
+
+2009-12-19 Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+ * Update to major release 5.1
+
+2009-07-26 Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+ * Update to major release 4.1
+
+2009-04-30 Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+ * FS#14376 fixed
+
+2009-03-26 Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+ * FS#12349 fixed
+
+2008-12-04 Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+ * Update to major release 4.0 final
+
+2008-11-22 Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+ * Update to major release 4.0beta3 - KDE4 version
+
+2007-08-09 Vinay S Shastry <vinayshastry@gmail.com>
+ * PKGBUILD: do not delete libtool files.
diff --git a/community/kchmviewer/kchmviewer.install b/community/kchmviewer/kchmviewer.install
new file mode 100644
index 000000000..82baa7bf0
--- /dev/null
+++ b/community/kchmviewer/kchmviewer.install
@@ -0,0 +1,12 @@
+post_install() {
+ which xdg-icon-resource 1>/dev/null 2>/dev/null && xdg-icon-resource forceupdate
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}