From a1a09917b55f25b0533a2584a6972fb5a3a20638 Mon Sep 17 00:00:00 2001 From: gnastyle Date: Wed, 25 Jan 2017 23:18:26 +0100 Subject: [PATCH] peruse imported FS1784 --- peruse/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ peruse/peruse.install | 12 ++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 peruse/PKGBUILD create mode 100644 peruse/peruse.install diff --git a/peruse/PKGBUILD b/peruse/PKGBUILD new file mode 100644 index 000000000..c807fd452 --- /dev/null +++ b/peruse/PKGBUILD @@ -0,0 +1,33 @@ +pkgname=peruse +pkgver=1.2 +pkgrel=1 +pkgdesc="A comic book reader. It gets out of your way and let you read your comics, comfortably" +license=('GPL') +arch=('x86_64') +url="https://peruse.kde.org/" +depends=('qt5-base' 'karchive' 'baloo' 'ki18n' 'kdeclarative' 'kconfig' 'kfilemetadata' 'kiconthemes' 'kio' 'kirigami') +makedepends=('extra-cmake-modules') +categories=('office') +options=('debug') +install=peruse.install +source=("http://download.kde.org/stable/${pkgname}/${pkgname}-${pkgver}.tar.xz") +sha1sums=('1f91d84086e71dcd6e2a853aac04dfd50bc7fc9a') + +prepare() { + mkdir -p build +} + +build() { + cd build + cmake ../$pkgname \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DKDE_INSTALL_LIBDIR=lib \ + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON + make +} + +package() { + cd build + make DESTDIR="$pkgdir" install +} diff --git a/peruse/peruse.install b/peruse/peruse.install new file mode 100644 index 000000000..5c501dc49 --- /dev/null +++ b/peruse/peruse.install @@ -0,0 +1,12 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +}