From 6ff348da868df51a91f9b69a5b6f48e444f7901d Mon Sep 17 00:00:00 2001 From: Jeff Huang Date: Thu, 14 Jun 2018 00:47:32 +0100 Subject: [PATCH] Revert "[skip-ci] [testing] okteta: update to 0.25.0 (failed to build)" This reverts commit b544037bc9134d3acaffb5bc507b237f39bacfe6. --- okteta/PKGBUILD | 27 ++++++++++++++------------- okteta/okteta.install | 12 ++++++++++++ 2 files changed, 26 insertions(+), 13 deletions(-) create mode 100644 okteta/okteta.install diff --git a/okteta/PKGBUILD b/okteta/PKGBUILD index 4b89e7d4a..d930596c9 100644 --- a/okteta/PKGBUILD +++ b/okteta/PKGBUILD @@ -1,21 +1,25 @@ +# Include global configuration +source ../kdeapps.conf + pkgname=okteta arch=('x86_64') -pkgver=0.25.0 +pkgver=${_kdever} pkgrel=1 -pkgdesc="KDE hex editor for viewing and editing the raw data of files" -url="https://kde.org/applications/utilities/okteta/" -screenshot="https://www.kde.org/images/screenshots/okteta.png" +pkgdesc="A hex editor" +url="http://kde.org/applications/utilities/okteta/" +screenshot="http://www.kde.org/images/screenshots/okteta.png" groups=("kde" "kde-devel" "kdesdk" "kde-uninstall") -depends=('kcmutils' 'kparts' 'knewstuff' 'qca-qt5' 'hicolor-icon-theme') +depends=('kcmutils' 'kparts' 'knewstuff' 'qca-qt5') makedepends=('extra-cmake-modules' 'kdoctools' 'python3' 'qt5-tools') replaces=('kdesdk-okteta') conflicts=('kdesdk-okteta') provides=('kdesdk-okteta') +install=${pkgname}.install license=('GPL' 'LGPL' 'FDL') -source=("https://download.kde.org/stable/$pkgname/$pkgver/src/$pkgname-$pkgver.tar.xz"{,.sig}) -sha256sums=('5e0399195fc2177fc39caf5c24585c9521f38b92c0780f92c329ee737e5e644d' - 'SKIP') -validpgpkeys=(E191FD5BE6F46870F09E82B2024E7FB43D015474) # Friedrich W. H. Kossebau +source=("$_mirror/${pkgname}-$_kdever.tar.xz"{,.sig}) +sha256sums=(`grep ${pkgname}-$_kdever.tar.xz ../kdeapps.sums | cut -d " " -f1` + 'SKIP') +validpgpkeys=(${Avalidpgpkeys[@]}) prepare() { mkdir build @@ -23,10 +27,7 @@ prepare() { build() { cd build - cmake ../$pkgname-$pkgver \ - -DBUILD_TESTING=OFF \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib + cmake_kf5 ../${pkgname}-${pkgver} make } diff --git a/okteta/okteta.install b/okteta/okteta.install new file mode 100644 index 000000000..3f06b8deb --- /dev/null +++ b/okteta/okteta.install @@ -0,0 +1,12 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null + update-mime-database usr/share/mime &> /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +}