summaryrefslogtreecommitdiff
path: root/community/chmsee
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-07-18 23:12:10 +0000
committerroot <root@rshg047.dnsready.net>2011-07-18 23:12:10 +0000
commit040215f1ca1d14472525c2562bc33e84f9728d4a (patch)
treec94addc612817e2d2fd14b36d7262bac86594877 /community/chmsee
parentddddf9c453076a407bfdbf3e030e606f31ee2b86 (diff)
Mon Jul 18 23:12:10 UTC 2011
Diffstat (limited to 'community/chmsee')
-rw-r--r--community/chmsee/PKGBUILD33
-rw-r--r--community/chmsee/chmsee4
-rw-r--r--community/chmsee/chmsee.install11
3 files changed, 37 insertions, 11 deletions
diff --git a/community/chmsee/PKGBUILD b/community/chmsee/PKGBUILD
index aeb5968f6..9bfa51483 100644
--- a/community/chmsee/PKGBUILD
+++ b/community/chmsee/PKGBUILD
@@ -4,29 +4,40 @@
# Contributor: Ermanno <erm67@yahoo.it>
pkgname=chmsee
-pkgver=1.3.1.1
+pkgver=1.99.03
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="A chm (MS HTML help file format) viewer based on xulrunner."
url="http://chmsee.googlecode.com/"
license="GPL"
-depends=('xulrunner>=2.0' 'libglade' 'chmlib')
-makedepends=('intltool' 'cmake')
-source=(http://chmsee.googlecode.com/files/$pkgname-$pkgver.tar.gz)
-md5sums=('7c226e6f518284a040ad3b9433d5e218')
+depends=('xulrunner>=5.0' 'chmlib' 'desktop-file-utils')
+makedepends=()
+source=(chmsee-$pkgver.tar.gz::https://github.com/jungleji/chmsee/tarball/v$pkgver
+ chmsee)
+install=chmsee.install
+md5sums=('d72625e82222497237efeb228fb53816'
+ '4999362b0c89c24764cbd25173610a38')
build() {
- cd ${srcdir}/$pkgname-$pkgver
+ cd ${srcdir}/jungleji-chmsee-e06453b/src
- mkdir build
- cd build
+ cp Makefile.arch Makefile
+ sed -i -e 's/2.0/5.0/g' Makefile
- cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
}
package() {
- cd ${srcdir}/$pkgname-$pkgver/build
+ cd ${srcdir}/jungleji-chmsee-e06453b
- make DESTDIR="$pkgdir" install
+ install -d ${pkgdir}/usr/share/chmsee
+ cp -a * ${pkgdir}/usr/share/chmsee
+ rm -r ${pkgdir}/usr/share/chmsee/src
+ install -Dm644 data/chmsee.desktop.in \
+ ${pkgdir}/usr/share/applications/chmsee.desktop
+ install -d ${pkgdir}/usr/share/pixmaps
+ install -Dm644 data/chmsee-icon.png ${pkgdir}/usr/share/pixmaps
+ install -Dm755 ${srcdir}/chmsee ${pkgdir}/usr/bin/chmsee
+# install -d ${pkgdir}/usr/share/icons
+# cp -a data/icons/* ${pkgdir}/usr/share/icons/
}
diff --git a/community/chmsee/chmsee b/community/chmsee/chmsee
new file mode 100644
index 000000000..0e7a79096
--- /dev/null
+++ b/community/chmsee/chmsee
@@ -0,0 +1,4 @@
+#!/bin/sh
+cd /usr/share/chmsee/
+xulrunner application.ini $@
+cd -
diff --git a/community/chmsee/chmsee.install b/community/chmsee/chmsee.install
new file mode 100644
index 000000000..308f27d33
--- /dev/null
+++ b/community/chmsee/chmsee.install
@@ -0,0 +1,11 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ update-desktop-database -q
+}