diff options
| -rw-r--r-- | PKGBUILD | 46 | ||||
| -rw-r--r-- | dolphin.install | 13 |
2 files changed, 59 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..aafcce4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Antonio Rojas <arojas@archlinux,org> +# Maintainer: Felix Yan <[email protected]> +# Contributor: Andrea Scarpino <[email protected]> +# Contributor: Pierre Schmitz <[email protected]> + +pkgname=dolphin +pkgver=15.08.0 +pkgrel=1 +pkgdesc="File Manager" +arch=(i686 x86_64) +url="http://kde.org/applications/system/dolphin/" +license=(LGPL) +depends=(baloo-widgets knewstuff kio-extras ktexteditor kactivities-frameworks) +makedepends=(extra-cmake-modules kdoctools python) +optdepends=('kdebase-lib: Document templates') +conflicts=('kdebase-dolphin<15.08') +replaces=(kdebase-dolphin) +groups=(kde-applications kdebase) +source=("http://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz" + "http://download.kde.org/stable/applications/$pkgver/src/kde-baseapps-$pkgver.tar.xz") +install=$pkgname.install +md5sums=('11760d094c2c3e3fff0e89b81d4db118' + '1365964d1c20d353aacb022f5a1c4733') + +prepare() { + mkdir -p build +} + +build() { + cd build + cmake ../$pkgname-$pkgver \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_INSTALL_DIR=lib \ + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ + -DBUILD_TESTING=OFF + make +} + +package() { + cd build + make DESTDIR="$pkgdir" install + +# Workaround for missing service menus https://bugs.kde.org/show_bug.cgi?id=350769 + install -Dm644 "$srcdir"/kde-baseapps-$pkgver/lib/konq/konq*.desktop "$pkgdir"/usr/share/kservicetypes5/ +} diff --git a/dolphin.install b/dolphin.install new file mode 100644 index 0000000..74ff488 --- /dev/null +++ b/dolphin.install @@ -0,0 +1,13 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} + |
