desktop/kchmviewer/PKGBUILD

52 lines
1.4 KiB
Bash

#
# Chakra 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>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=kchmviewer
pkgver=6.0
pkgrel=1
pkgdesc="A .chm files (MS HTML help file format) viewer"
arch=('i686' 'x86_64')
url="http://kchmviewer.sourceforge.net/"
license=('GPL')
depends=('chmlib' 'kdelibs' 'qt' 'xdg-utils')
makedepends=('automoc4' 'cmake')
categories=('office')
options=('libtool')
install=${pkgname}.install
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")
#'kchmview-build-fix.diff')
md5sums=('940fdeeb5f50cdd0d0611f7a13e003f9')
#'555b08c8aca9883e7916dc1fe11a8aea')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# got patch from http://bugs.gentoo.org/320191
#patch -Np1 -i ${srcdir}/kchmview-build-fix.diff
cmake . -DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd "${srcdir}/${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 package
rm -rf ${pkgdir}/usr/share/kde4
#kio_msits.so file provided by kdegraphics package - FS#14376
rm -rf ${pkgdir}/usr/lib
}