desktop/gtk-integration/PKGBUILD

93 lines
2.4 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-01-13 10:32:12 +08:00
pkgver=2.0
pkgrel=1
2010-07-31 19:42:27 +08:00
iconspkgver=2.5.0
2011-01-08 10:24:53 +08:00
widgetpkgver=1.0.0
2010-06-19 04:42:58 +08:00
_colors=3.0
2011-01-13 10:32:12 +08:00
cgcver=1.0
2010-06-19 04:42:58 +08:00
2011-01-13 10:32:12 +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')
2010-12-18 06:00:45 +08:00
url=("http://www.nanolx.org/home/item/75-oxygen-refit"
2011-01-13 10:32:12 +08:00
"http://kde-look.org/content/show.php/gtk-oxygen-engine?content=129715")
2010-12-12 19:45:10 +08:00
2010-06-19 04:42:58 +08:00
license=('LGPL3' 'GPL')
2011-01-13 10:32:12 +08:00
depends=('kdelibs' 'qt' 'oxygen-icons')
makedepends=('gcc' 'cmake' 'findutils' 'imagemagick' 'liblqr' 'gtk2')
provides=('gtk-integration' 'oxygenrefit2-icon-theme' 'gtk-oxygen-engine' 'oxygen-gtk')
conflicts=('oxygenrefit2-icon-theme' 'gtk-oxygen-engine' 'gtk-oxygen-engine-git' 'oxygen-gtk')
2010-06-19 04:42:58 +08:00
2010-07-31 19:42:27 +08:00
source=("http://download.tuxfamily.org/oxygenrefit2/oxygen-refit-2-$iconspkgver.tar.bz2"
2011-01-08 10:24:53 +08:00
"ftp://ftp.caliu.cat/pub/mirrors/kde/stable/oxygen-gtk/1.0.0/src/oxygen-gtk-$widgetpkgver.tar.bz2"
2011-01-13 10:32:12 +08:00
"http://chakra-project.org/sources/gtk-integration/chakra-gtk-config-${cgcver}.tar.gz")
2010-07-31 19:42:27 +08:00
md5sums=('60f32f98d8d33d82db79b6bb934f0580'
2011-01-08 10:24:53 +08:00
'441398b4569ce0282c39e5c21cb16dfc'
2011-01-13 10:32:12 +08:00
'1eeebdee9afda81b462e909b7979886e')
2010-06-19 04:42:58 +08:00
function create_install() {
cat > "${startdir}/${pkgname}.install" <<EOF
post_install() {
cat <<-'EOF'
2011-01-13 10:32:12 +08:00
GTK - Integration v$pkgver-$pkgrel
You can install our 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() {
2010-12-07 00:42:48 +08:00
# Icon theme
2010-06-19 04:42:58 +08:00
cd ${srcdir}
install -d ${pkgdir}/usr/share/icons/
2010-07-31 19:42:27 +08:00
cp -rf "oxygen-refit-2-${iconspkgver}" ${pkgdir}/usr/share/icons/ || return 1
mv "oxygen-refit-2-${iconspkgver}" "oxygen-refit-2"
2010-06-19 04:42:58 +08:00
find -type f -print0 | xargs -0 chmod 644
# Widget theme
2011-01-08 10:24:53 +08:00
cd $srcdir/oxygen-gtk-$widgetpkgver
2010-12-18 06:00:45 +08:00
rm -rf build
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_INSTALL_PREFIX=/usr .. || return 1
make || return 1
make DESTDIR=${pkgdir} install
2010-07-08 07:06:31 +08:00
2011-01-13 10:32:12 +08:00
# Chakra-Gtk-Config
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-07 00:42:48 +08:00
}
2010-12-18 06:00:45 +08:00