mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 07:17:25 +08:00
90 lines
2.3 KiB
Bash
90 lines
2.3 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=gtk-integration
|
|
pkgver=3.2
|
|
pkgrel=1
|
|
iconspkgver=0.1
|
|
widgetpkgver=1.1.6
|
|
cgcver=1.7
|
|
|
|
pkgdesc="A bundles and Gtk apps integration package for Chakra GNU/Linux"
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="https://projects.kde.org/projects/playground/artwork/oxygen-gtk"
|
|
|
|
license=('LGPL3' 'GPL')
|
|
|
|
depends=('kdelibs' 'qt' 'oxygen-icons' 'cairo')
|
|
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')
|
|
categories=('system')
|
|
source=("http://sourceforge.net/projects/chakra/files/Tools/Oxygen-Gtk-Icons/oxygen-gtk-0.1.tar.gz/download"
|
|
"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'
|
|
'714cd895e276cfd20a43b406a78ae6af'
|
|
'd7e9c6ba2a9dc06252589f3d86b44489')
|
|
|
|
function create_install() {
|
|
cat > "${startdir}/${pkgname}.install" <<EOF
|
|
post_install() {
|
|
cat <<-'EOF'
|
|
|
|
GTK - Integration v$pkgver-$pkgrel
|
|
|
|
You can install aditional engines:
|
|
----------------------------------
|
|
gtk-integration-engine-molecule
|
|
gtk-integration-engine-qtcurve
|
|
|
|
EOF
|
|
}
|
|
|
|
post_upgrade() {
|
|
post_install \$1
|
|
}
|
|
|
|
op=\$1
|
|
shift
|
|
\$op \$*
|
|
EOF
|
|
}
|
|
|
|
function build() {
|
|
# Icon theme
|
|
cd ${srcdir}
|
|
install -d ${pkgdir}/usr/share/icons/oxygen-gtk
|
|
cp -rf oxygen-gtk-${iconspkgver}/* ${pkgdir}/usr/share/icons/oxygen-gtk || return 1
|
|
find -type f -print0 | xargs -0 chmod 644
|
|
|
|
# Widget theme
|
|
cd $srcdir/oxygen-gtk-$widgetpkgver
|
|
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
|
|
|
|
# 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
|
|
|
|
# Create the install file
|
|
create_install
|
|
export install="${pkgname}.install"
|
|
}
|
|
|
|
|