mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
51 lines
1.4 KiB
Bash
51 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=5.3
|
|
pkgrel=2
|
|
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')
|
|
options=('libtool')
|
|
install=${pkgname}.install
|
|
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")
|
|
#'kchmview-build-fix.diff')
|
|
md5sums=('619bae91bcaf9cc81d9907f0d593798f')
|
|
#'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
|
|
}
|