Date: Thursday, September 11, 2014 @ 07:05:14 Author: bpiotrowski Revision: 118796
upgpkg: kpartsplugin 20120723-2 mtree rebuild Modified: kpartsplugin/trunk/PKGBUILD ----------+ PKGBUILD | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2014-09-11 03:59:01 UTC (rev 118795) +++ PKGBUILD 2014-09-11 05:05:14 UTC (rev 118796) @@ -2,9 +2,10 @@ # Maintainer: Timothy Redaelli <[email protected]> # Contributor: birdflesh <antkoul at gmail dot com> # Contributor: Frikilinux <frikilinux at frikilinux.com.ar> + pkgname=kpartsplugin pkgver=20120723 -pkgrel=1 +pkgrel=2 pkgdesc="This plugin uses KDE's KParts to embed file viewers into non-KDE browsers" arch=('i686' 'x86_64') url="http://www.unix-ag.uni-kl.de/~fischer/kpartsplugin/" @@ -11,23 +12,27 @@ license=('GPL3' 'BSD') depends=('kdelibs') makedepends=('automoc4' 'cmake') -source=("${url}${pkgname}-${pkgver}.tar.bz2" "LICENSE") +source=("http://pkgs.fedoraproject.org/repo/pkgs/kpartsplugin/kpartsplugin-20120723.tar.bz2/cf94ee866a934da97a04cd1619e16099/kpartsplugin-20120723.tar.bz2" + "LICENSE") md5sums=('cf94ee866a934da97a04cd1619e16099' 'c4cc811349e40e9f34e77e27b902ad96') +prepare() { + sed -i 's/nsbrowser/mozilla/g' ${pkgname}-${pkgver}/CMakeLists.txt +} + build(){ - sed -i 's/nsbrowser/mozilla/g' ${pkgname}-${pkgver}/CMakeLists.txt - cd "${srcdir}" mkdir build cd build + cmake ../${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr + make } package() { - cd "${srcdir}"/build - make DESTDIR="${pkgdir}/" install - install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENCE" + make -C build DESTDIR="${pkgdir}/" install + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENCE" }
