blob: aa1bd5946896255cf346db2a055ec3d57f580d1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# Maintainer: martadinata666 <martadinata666@gmail.com>
_use_marco=0
_upstream="compiz"
pkgbase=compiz-core-git
pkgname=(compiz-core-git compiz-gtk-git)
pkgver=0.8.12.3.r0.g59328f2
pkgrel=1
pkgdesc="This is the latest git release of Compiz without DE deps"
url="https://github.com/compiz-reloaded/${_upstream}"
license=('GPL' 'LGPL' 'MIT')
arch=('i686' 'x86_64')
depends=('startup-notification' 'librsvg' 'dbus' 'glu' 'libxslt' 'libxrandr' 'libsm' 'libxcomposite' 'libxinerama')
makedepends=('intltool' 'libice')
options=(!libtool !emptydirs)
provides=("compiz-core=$pkgver")
source=(
"git+https://github.com/compiz-reloaded/${_upstream}.git"
)
sha1sums=('SKIP')
_configure_opts=(
--prefix=/usr
--enable-shared
--enable-dbus
--enable-dbus-glib
--enable-librsvg
--enable-glib
--disable-static
--disable-inotify
)
if (("${_use_marco}"));then
_configure_opts+=("--enable-marco")
makedepends+=("marco")
msg "Marco theme support enabled"
else
_configure_opts+=("--disable-marco")
msg "Marco theme support disabled, rebuild with _use_marco=1 in the PKGBUILD if you want it"
fi
pkgver() {
cd "${srcdir}/${_upstream}"
git describe --long --tags|sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build()
{
cd "${srcdir}/${_upstream}"
NOCONFIGURE=1 ./autogen.sh
./configure "${_configure_opts[@]}"
make
}
package_compiz-core-git() {
cd "$srcdir/${_upstream}"
pkgdesc+=" (Core w/o decorator)"
provides=("compiz-core=$pkgver")
conflicts=('compiz' 'compiz-core')
make DESTDIR="$pkgdir" install
rm "${pkgdir}/usr/bin/gtk-window-decorator"
rm "${pkgdir}/usr/share/glib-2.0/schemas/org.compiz-0.gwd.gschema.xml"
rm "${pkgdir}/usr/share/icons/hicolor/"*"/apps/gtk-decorator."*
}
package_compiz-gtk-git()
{
if (("${_use_marco}"));then
#separating libmarco-private would be nice, but this is a workaround for now
depends+=('marco')
fi
pkgdesc+=" (GTK+ window decorator)"
provides=("compiz-gtk=$pkgver")
conflicts=('compiz-gtk')
cd "${srcdir}/${_upstream}/gtk"
make DESTDIR="${pkgdir}" install
rm "${pkgdir}/usr/share/applications/compiz.desktop"
cd "${srcdir}/${_upstream}/images"
make DESTDIR="${pkgdir}" install
rm "${pkgdir}/usr/share/icons/hicolor/"*"/apps/compiz."*
rm "${pkgdir}/usr/share/compiz/"*.png
}
|