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

View File

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