kdegraphics-mobipocket: Update, add .install file

This commit is contained in:
totte 2013-12-20 12:26:01 +00:00
parent 45da335b25
commit d18571bfe6
2 changed files with 38 additions and 22 deletions

View File

@ -1,7 +1,5 @@
# Maintainer: Manuel Tortosa <manutortosa@chakra-project@org>
# Maintainer: Manuel Tortosa <manutortosa@chakra-project@org>
# Contributors: H W Tovetjärn (totte) <totte@tott.es>
# Include global configuration
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
@ -10,31 +8,38 @@ pkgname=kdegraphics-mobipocket
arch=('x86_64')
pkgver=${_kdever}
pkgrel=1
pkgdesc="split package"
url="http://www.kde.org"
license=('GPL' 'LGPL' 'FDL')
options=('docs' '!header' 'debug' 'log')
groups=("kde" "kdegraphics" "kde-uninstall")
pkgdesc='A collection of plugins to handle mobipocket files'
url='https://projects.kde.org/projects/kde/kdegraphics/kdegraphics-mobipocket'
license=('GPL'
'LGPL'
'FDL')
options=('docs'
'!header'
'debug'
'log')
groups=('kde'
'kdegraphics'
'kde-uninstall')
provides=('mobipocket')
depends=("kdegraphics-okular>=${_kdever}" "strigi")
depends=("kdegraphics-okular>=${_kdever}"
'strigi')
makedepends=('automoc4')
source=("$_mirror/${pkgname}-$_kdever.tar.xz")
install=${pkgname}.install
sha1sums=(`grep ${pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d" " -f1`)
build() {
msg "starting build ..."
cd ${srcdir}/${pkgname}-${pkgver}
cmake . -DCMAKE_BUILD_TYPE=${_build_type} \
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
make || return 1
cd "${srcdir}/${pkgname}-${pkgver}"
cmake . \
-DCMAKE_BUILD_TYPE=${_build_type} \
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DCMAKE_SKIP_RPATH=ON \
-DKDE4_BUILD_TESTS=OFF \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install || return 1
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR=${pkgdir} install
}

View File

@ -0,0 +1,11 @@
post_install() {
update-desktop-database -q
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}