desktop/oxygen-gtk3/PKGBUILD

72 lines
1.5 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=oxygen-gtk3
pkgver=1.1.4
pkgrel=2
pkgdesc="The Oxygen engine for GTK3, for better Qt/GKT+ integration."
arch=('i686' 'x86_64')
url=("http://kde-look.org/content/show.php/gtk-oxygen-engine?content=129715")
license=('LGPL3' 'GPL')
depends=('kdelibs' 'qt' 'oxygen-icons' 'cairo')
makedepends=('gcc' 'cmake' 'findutils' 'imagemagick' 'liblqr' 'gtk2' 'automoc4')
provides=('oxygen-gtk')
conflicts=('oxygen-gtk' 'gtk-integration' 'oxygen-gtk2')
categories=('system')
#groups=('gtk-integration')
source=("ftp://ftp.caliu.cat/pub/mirrors/kde/stable/oxygen-gtk/$pkgver/src/oxygen-gtk-$pkgver.tar.bz2")
md5sums=('61a7424e77785501df27b5c050e5f287')
create_install() {
cat > "${startdir}/${pkgname}.install" <<EOF
post_install() {
cat <<-'EOF'
GTK - Oxygen-GTK2 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/oxygen-gtk-$pkgver
rm -rf build
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_INSTALL_PREFIX=/usr .. || return 1
make
}
package() {
cd $srcdir/oxygen-gtk-$pkgver/build
make DESTDIR="${pkgdir}" install
# Create the install file
create_install
export install="${pkgname}.install"
}