summaryrefslogtreecommitdiff
path: root/distro/archlinux/PKGBUILD
blob: 391f411bd082f58ac0edf18161524ee5456f43d7 (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
pkgname=mate-window-manager
pkgver=1.1.0
pkgrel=1
pkgdesc="A window manager for MATE"
arch=(i686 x86_64)
license=('GPL')
depends=('mate-conf' 'mate-dialogs' 'libgtop' 'libwnck') #  'libcanberra' 'startup-notification'
makedepends=('intltool' 'pkgconfig' 'mate-doc-utils')
options=('!emptydirs' '!libtool')
install=mate-window-manager.install
url="http://matsusoft.com.ar/projects/mate/"
groups=('mate')
source=(metacity-restartstyle.patch)
sha256sums=('ea2450ca3e4fb59166ec18ff4844cc61cb16865880dc6b125078a3ab47bf2caf')

build() {
	cd "${srcdir}/../../../"
    patch -Np1 -i "${srcdir}/metacity-restartstyle.patch" || return 1
    ./autogen.sh \
        --prefix=/usr \
        --sysconfdir=/etc \
        --localstatedir=/var \
        --libexecdir=/usr/lib/mate-window-manager \
        --disable-static \
        --disable-startup-notification \
        --disable-scrollkeeper || return 1
    make || return 1
}

package() {
	cd "${srcdir}/../../../"

    make MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install || return 1

    install -m755 -d "${pkgdir}/usr/share/mateconf/schemas"
    mateconf-merge-schema "${pkgdir}/usr/share/mateconf/schemas/${pkgname}.schemas" --domain ${pkgname} ${pkgdir}/etc/mateconf/schemas/*.schemas
    rm -f ${pkgdir}/etc/mateconf/schemas/*.schemas
}