Umieszczam działający PKGBUILD z kgtk:
# Maintainer: Piotr Gorski <lucjan.lucjanov@gmail.com>
pkgname=kgtk
pkgver=0.11.0
pkgrel=3.1
pkgdesc="LD_PRELOAD hack with helper scripts to make gtk and qt-only programs use KDE file dialogs."
arch=('i686' 'x86_64')
url="http://www.kde-apps.org/content/show.php?content=36077"
license=('GPL')
depends=('kdelibs')
makedepends=('pkgconfig' 'automoc4' 'cmake' 'gettext' 'gtk2>=2.6' 'gtk3>=3.0')
install=kgtk.install
source=(http://kde-apps.org/CONTENT/content-files/36077-KGtk-${pkgver}.tar.bz2)
md5sums=('e5abf37b9f15b301d213ffb881144ddb')
build() {
cd "${srcdir}/KGtk-${pkgver}"
mkdir -p "${srcdir}/build"
cd "${srcdir}/build"
cmake "../KGtk-${pkgver}" -DCMAKE_INSTALL_PREFIX=/usr
}
package() {
cd "${srcdir}/build"
make || return 1
make DESTDIR=$pkgdir install || return 1
}
Plik kgtk.install
post_install() {
echo ""
echo "This converts GTK Filedialogs to KDE4 dialogs."
echo ""
echo "You can run GTK applications in 2 ways:"
echo " A. Call /usr/bin/kgtk-wrapper gimp"
echo " B. Create a symbolic link from the wrapper script to"
echo " your application, e.g."
echo ""
echo " ln -s /usr/bin/kgtk-wrapper /usr/local/bin/gimp"
echo ""
echo " and make sure you run /usr/local/bin/gimp instead of"
echo " /usr/bin/gimp in the future"
echo ""
/bin/true
}
pre_remove() {
echo ""
echo "If you linked some GTK applications to the wrapper"
echo "script provided by this package, make sure to"
echo "remove those links."
echo ""
/bin/true
}
Sprawdzone, działa.