summaryrefslogtreecommitdiff
path: root/pcr/lxappearance-gtk3/PKGBUILD
blob: 210037f2285852c3bedde0e439197854cbea4bbf (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
#$Id$
# Maintainer : Aurelien Desbrieres <aurelien@hackers.camp>
# Contributor: Balló György <ballogyor+arch at gmail dot com>
# Contributor:  Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Angel Velasquez <angvp@archlinux.org>
# Contributor: Geoffroy Carrier <geoffroy.carrier@koon.fr>

pkgname=lxappearance-gtk3
_pkgname=lxappearance
pkgver=0.6.1
pkgrel=1
pkgdesc='Feature-rich GTK+ theme switcher of the LXDE Desktop (GTK+ 3 version)'
arch=('i686' 'x86_64')
license=('GPL2')
url='http://lxde.org/'
groups=('lxde-gtk3')
depends=('gtk3')
makedepends=('intltool' 'dbus-glib')
conflicts=($_pkgname)
provides=($_pkgname)
source=(http://downloads.sourceforge.net/lxde/$_pkgname-$pkgver.tar.xz
        0001-Substitute-the-correct-GTK-version-in-pkgconfig-file.patch
        0002-Fix-About-dialog-for-GTK-3.patch)

prepare() {
  cd $_pkgname-$pkgver

  # Substitute the correct GTK+ version in pkgconfig file
  patch -Np1 -i ../0001-Substitute-the-correct-GTK-version-in-pkgconfig-file.patch

  # Fix About dialog for GTK+ 3
  patch -Np1 -i ../0002-Fix-About-dialog-for-GTK-3.patch

  autoreconf -fi
}

build() {
  cd $_pkgname-$pkgver
  ./configure --sysconfdir=/etc --prefix=/usr \
    --enable-dbus --enable-gtk3
  make
}

package() {
  cd $_pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}