desktop/gtk-integration/PKGBUILD

90 lines
2.3 KiB
Bash
Raw Normal View History

2010-06-19 04:42:58 +08:00
#
# 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=gtk-integration
2011-12-20 05:21:32 +08:00
pkgver=3.2
2011-04-27 05:17:32 +08:00
pkgrel=1
iconspkgver=0.1
2011-12-20 05:21:32 +08:00
widgetpkgver=1.1.6
2011-10-02 03:26:57 +08:00
cgcver=1.7
2010-06-19 04:42:58 +08:00
pkgdesc="A bundles and Gtk apps integration package for Chakra GNU/Linux"
2010-06-19 04:42:58 +08:00
arch=('i686' 'x86_64')
url="https://projects.kde.org/projects/playground/artwork/oxygen-gtk"
2010-12-18 04:30:36 +08:00
2010-06-19 04:42:58 +08:00
license=('LGPL3' 'GPL')
2011-01-14 04:28:58 +08:00
depends=('kdelibs' 'qt' 'oxygen-icons' 'cairo')
2011-10-02 03:26:57 +08:00
makedepends=('gcc' 'cmake' 'findutils' 'imagemagick' 'liblqr' 'gtk2' 'automoc4')
provides=('gtk-integration' 'oxygen-gtk' 'chakra-gtk-config' 'oxygen-gtk-icons')
conflicts=('oxygen-gtk-icons' 'oxygen-gtk')
2010-06-19 04:42:58 +08:00
source=("http://sourceforge.net/projects/chakra/files/Tools/Oxygen-Gtk-Icons/oxygen-gtk-0.1.tar.gz/download"
2011-01-14 04:28:58 +08:00
"ftp://ftp.caliu.cat/pub/mirrors/kde/stable/oxygen-gtk/$widgetpkgver/src/oxygen-gtk-$widgetpkgver.tar.bz2"
"http://chakra.sourceforge.net/sources/gtk-integration/chakra-gtk-config-${cgcver}.tar.gz")
md5sums=('2690c3be8243af48d6bf10f7615c7bc0'
2011-12-20 05:21:32 +08:00
'714cd895e276cfd20a43b406a78ae6af'
2011-10-02 03:26:57 +08:00
'd7e9c6ba2a9dc06252589f3d86b44489')
2010-06-19 04:42:58 +08:00
function create_install() {
cat > "${startdir}/${pkgname}.install" <<EOF
post_install() {
cat <<-'EOF'
GTK - Integration v$pkgver-$pkgrel
2011-02-16 04:04:16 +08:00
You can install aditional engines:
----------------------------------
gtk-integration-engine-molecule
gtk-integration-engine-qtcurve
2010-06-19 04:42:58 +08:00
EOF
}
post_upgrade() {
post_install \$1
}
op=\$1
shift
\$op \$*
EOF
}
function build() {
# Icon theme
2010-06-19 04:42:58 +08:00
cd ${srcdir}
install -d ${pkgdir}/usr/share/icons/oxygen-gtk
cp -rf oxygen-gtk-${iconspkgver}/* ${pkgdir}/usr/share/icons/oxygen-gtk || return 1
2010-06-19 04:42:58 +08:00
find -type f -print0 | xargs -0 chmod 644
# Widget theme
cd $srcdir/oxygen-gtk-$widgetpkgver
2010-12-18 04:30:36 +08:00
rm -rf build
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release \
2011-10-02 03:26:57 +08:00
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_INSTALL_PREFIX=/usr .. || return 1
2010-12-18 04:30:36 +08:00
make || return 1
make DESTDIR=${pkgdir} install
2010-07-08 07:06:31 +08:00
# KCM
cd ${srcdir}/chakra-gtk-config-${cgcver}
rm -rf build
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr .. || return 1
make || return 1
make DESTDIR=${pkgdir} install
2010-07-08 07:06:31 +08:00
2010-06-19 04:42:58 +08:00
# Create the install file
create_install
export install="${pkgname}.install"
}
2010-12-18 04:30:36 +08:00