PKGBUILD 1.53 KB
Newer Older
1 2 3 4 5 6 7
#
# 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-gtk2
george's avatar
george committed
8 9
pkgver=1.1.6
pkgrel=1
10 11 12 13 14 15 16 17 18 19 20 21

pkgdesc="The Oxygen engine for GTK2, 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')
replaces=('gtk-integration')
22
conflicts=('oxygen-gtk')
23
categories=('system')
24
#groups=('gtk-integration')
25 26 27

source=("ftp://ftp.caliu.cat/pub/mirrors/kde/stable/oxygen-gtk/$pkgver/src/oxygen-gtk-$pkgver.tar.bz2")

george's avatar
george committed
28
md5sums=('714cd895e276cfd20a43b406a78ae6af')
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72

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"
}