mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-09 16:37:14 +08:00
69 lines
1.6 KiB
Bash
69 lines
1.6 KiB
Bash
#
|
|
# Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=chakra-gtk-config
|
|
pkgver=1.7
|
|
pkgrel=3
|
|
pkgdesc="A configuration dialog to adapt GTK applications appearance to your taste under KDE."
|
|
arch=('i686' 'x86_64')
|
|
url=("http://chakra-linux.org")
|
|
license=('LGPL3' 'GPL')
|
|
depends=('kde-workspace')
|
|
makedepends=('gcc' 'cmake' 'automoc4')
|
|
optdepends=('gtk-integration-engine-molecule: Molecule GTK integration engine'
|
|
'gtk-integration-engine-qtcurve: QtCurve GTK integration engine'
|
|
'oxygen-gtk2: Oxygen GTK integration engine for GTK2'
|
|
'oxygen-gtk3: Oxygen GTK integration engine for GTK3'
|
|
'oxygen-gtk-icons: Oxygen icon set for GTK')
|
|
conflicts=('gtk-integration')
|
|
categories=('system')
|
|
groups=('gtk-integration')
|
|
|
|
source=("http://chakra-linux.org/sources/gtk-integration/${pkgname}-${pkgver}.tar.gz")
|
|
|
|
md5sums=('d7e9c6ba2a9dc06252589f3d86b44489')
|
|
|
|
function create_install() {
|
|
cat > "${startdir}/${pkgname}.install" <<EOF
|
|
post_install() {
|
|
cat <<-'EOF'
|
|
|
|
GTK - Chakra GTK Config 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}/chakra-gtk-config-${pkgver}
|
|
rm -rf build
|
|
mkdir build && cd build
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr .. || return 1
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/chakra-gtk-config-${pkgver}/build
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
# Create the install file
|
|
create_install
|
|
export install="${pkgname}.install"
|
|
}
|