updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / kpartsplugin / PKGBUILD
blob7e09829d9454010aaa58481183df9bf4f3f39970
1 # Maintainer: birdflesh <antkoul at gmail dot com>
2 # Contributor: Frikilinux <frikilinux at frikilinux.com.ar>
3 pkgname=kpartsplugin
4 pkgver=20110823
5 pkgrel=2
6 pkgdesc="This plugin uses KDE's KParts to embed file viewers into non-KDE browsers"
7 arch=('i686' 'x86_64')
8 url="http://www.unix-ag.uni-kl.de/~fischer/kpartsplugin/"
9 license=('GPL3' 'BSD')
10 depends=('kdelibs')
11 makedepends=('automoc4' 'cmake')
12 source=("${url}${pkgname}-${pkgver}.tar.bz2" "LICENSE")
13 md5sums=('d134198ff2f05ba414719920030ea71b'
14          'c4cc811349e40e9f34e77e27b902ad96')
16 build(){
17   sed -i 's/nsbrowser/mozilla/g' ${pkgname}-${pkgver}/CMakeLists.txt
18   cd ${srcdir}
19   mkdir build
20   cd build
21   cmake ../${pkgname}-${pkgver} \
22     -DCMAKE_BUILD_TYPE=Release \
23     -DCMAKE_INSTALL_PREFIX=/usr
24   make
27 package() {
28   cd ${srcdir}/build
29   make DESTDIR=${pkgdir} install
30   install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENCE"