desktop/kchmviewer/PKGBUILD
2014-05-14 15:40:44 +00:00

53 lines
1.5 KiB
Bash

# 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.1
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=('09471178529b47cbeb3bcb68200a81a4')
#'555b08c8aca9883e7916dc1fe11a8aea')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
sed -e "/keyeventfilter.cpp/d" -i src/CMakeLists.txt
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# got patch from http://bugs.gentoo.org/320191
#patch -Np1 -i ${srcdir}/kchmview-build-fix.diff
[[ -d build ]] || mkdir build ; cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}/build"
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
}