summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 36713cdfd3b69235ceb0b690ca0780d993d5e5fe (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
# Maintainer: Michael Kogan <michael dot kogan at gmx dot net>
# Contributor: Charles Bos <charlesbos1 AT gmail>
# Contributor: Evangelos Foutras <evangelos@foutrelis.com>
# Contributor: tobias <tobias funnychar archlinux.org>

pkgname=xfce4-panel-compiz
_realname=xfce4-panel
pkgver=4.14.0
pkgrel=2
pkgdesc="Panel for the Xfce desktop environment with fixes for Compiz"
arch=('i686' 'x86_64')
url="http://www.xfce.org/"
license=('GPL2')
groups=('xfce4')
depends=('exo' 'garcon' 'libxfce4ui' 'libwnck' 'hicolor-icon-theme'
         'desktop-file-utils')
makedepends=('intltool' 'gtk-doc' 'xfce4-dev-tools')
provides=("$_realname=$pkgver")
conflicts=("$_realname")
source=(http://archive.xfce.org/src/xfce/$_realname/${pkgver%.*}/$_realname-$pkgver.tar.bz2
        button-visibility.patch
	  fix-scrolling.patch
	  fix-scrolling2.patch
	  fix-scrolling3.patch
	  pager-dimensions.patch
	  wrap-workspaces.patch)
sha256sums=('d5f8f3bd7e142139987e5e62cda26135a424baabb5e47aa0c23b4169d0a66ef4'
            '556f7ecc22fdf024101d2e8a0416b953efaef48ff4ed649aab97d5b115a94931'
		'023fbeb4caa99dc97d460040f3d507794f3f576dc6cde98d834ba8a8e581f5ee'
		'2bbcace9c0c25c14fc1180a1064329240867a0b83c1c668aadc8c77f92ee0aab'
		'5e17300981a6030a2a3d4172b897e7aea0037401c8c9866cc03d82e0629c7fe2'
		'7055df37c000731057af828ef99ffb7193a18b3f2ab7dee541d79de029995cae'
		'063f11ddbf695d0f7b819209245e201c8d7420cbf94a6c557593deb2aa061f82')

prepare() {
  cd "$srcdir/$_realname-$pkgver"

  # See https://bugzilla.xfce.org/show_bug.cgi?id=10908
  echo "Applying button-visibility.patch:"
  patch -p1 -i "$srcdir/button-visibility.patch"
  
  # See https://git.xfce.org/xfce/xfce4-panel/commit/?id=55dc7b400feef0c35fda3e8d3515dada2ced29c4
  echo "Applying fix-scrolling.patch:"
  patch -p1 -i "$srcdir/fix-scrolling.patch"
  
  # See https://bugzilla.xfce.org/show_bug.cgi?id=3361#c28
  echo "Applying fix-scrolling2.patch:"
  patch -p1 -i "$srcdir/fix-scrolling2.patch"
  
  # See https://bugzilla.xfce.org/show_bug.cgi?id=3361#c32
  echo "Applying fix-scrolling3.patch:"
  patch -p1 -i "$srcdir/fix-scrolling3.patch"
  
  # See https://bugzilla.xfce.org/show_bug.cgi?id=3361#c30
  echo "Applying wrap-workspaces.patch:"
  patch -p1 -i "$srcdir/wrap-workspaces.patch"
  
  # See https://bugzilla.xfce.org/show_bug.cgi?id=11697
  echo "Applying pager-dimensions.patch:"
  patch -p1 -i "$srcdir/pager-dimensions.patch"
}

build() {
  cd "$srcdir/$_realname-$pkgver"

  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --libexecdir=/usr/lib \
    --localstatedir=/var \
    --disable-static \
    --enable-gio-unix \
    --enable-gtk-doc \
    --enable-gtk3 \
    --disable-debug
  make
}

package() {
  cd "$srcdir/$_realname-$pkgver"
  make DESTDIR="$pkgdir" install
}