desktop/chakra-gtk-config/PKGBUILD

75 lines
1.8 KiB
Bash

#
# Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=chakra-gtk-config
pkgver=1.7
pkgrel=2
pkgdesc="A configuration dialog to adapt GTK applications appearance to your taste under KDE."
arch=('i686' 'x86_64')
url=("http://chakra-linux.org/sources/index.php?loc=./gtk-integration")
license=('LGPL3' 'GPL')
depends=('kdelibs' 'qt' 'oxygen-icons' 'cairo')
makedepends=('gcc' 'cmake' 'findutils' 'imagemagick' 'liblqr' 'gtk2' 'automoc4')
optdepends=('gtk-integration-engine-molecule: Molecule GTK integration engine'
'gtk-integration-engine-qtcurve: QtCurve GTK integration engine'
'oxygen-gtk2: Oxygen GTK integration engine for GTK2'
'oxygen-gtk3: Oxygen GTK integration engine for GTK3'
'oxygen-gtk-icons: Oxygen icon set for GTK')
replaces=('gtk-integration')
provides=('gtk-integration')
categories=('system')
#groups=('gtk-integration')
source=("http://chakra-linux.org/sources/gtk-integration/${pkgname}-${pkgver}.tar.gz")
md5sums=('d7e9c6ba2a9dc06252589f3d86b44489')
function create_install() {
cat > "${startdir}/${pkgname}.install" <<EOF
post_install() {
cat <<-'EOF'
GTK - Chakra GTK Config v$pkgver
You can install aditional engines:
----------------------------------
gtk-integration-engine-molecule
gtk-integration-engine-qtcurve
EOF
}
post_upgrade() {
post_install \$1
}
op=\$1
shift
\$op \$*
EOF
}
build() {
cd ${srcdir}/chakra-gtk-config-${pkgver}
rm -rf build
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr .. || return 1
make
}
package() {
cd ${srcdir}/chakra-gtk-config-${pkgver}/build
make DESTDIR="${pkgdir}" install
# Create the install file
create_install
export install="${pkgname}.install"
}