summaryrefslogtreecommitdiff
path: root/community/gnome-settings-daemon-updates/PKGBUILD
blob: e05c0fe581952ce2140c6f05813dbd130aea323f (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: PKGBUILD 102872 2013-12-23 06:37:43Z bgyorgy $
# Maintainer: Jonathan Conder <jonno.conder@gmail.com>

_pkgname=gnome-settings-daemon
pkgname=$_pkgname-updates
pkgver=3.10.2
pkgrel=1
pkgdesc="Updates plugin for the GNOME Settings daemon"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
depends=('gnome-packagekit' "$_pkgname")
makedepends=('intltool' 'gtk-doc' 'gnome-desktop' 'gnome-common' 'xf86-input-wacom')
options=('!emptydirs')
install=$_pkgname.install
url="http://www.gnome.org"
source=("http://ftp.gnome.org/pub/gnome/sources/$_pkgname/${pkgver%.*}/$_pkgname-$pkgver.tar.xz"
	'packagekit-0.8.patch'
	'arch.patch')
sha256sums=('808899c6e434ecb71f42d3ac022dc51f5963bdf2478f4634078483f9e8a78264'
            '2fd5ee457f5d57bfd9edef049719f55ab1cab5fe6d0fb422f91fe363c02e6efd'
            '217004c112b18cf136c535ef3d6cc90f0cecc495573cfb8653ff089230d248bb')

prepare() {
  cd "$srcdir/$_pkgname-$pkgver"
  patch -RNp1 -i "$srcdir/packagekit-0.8.patch"
  patch -Np1 -i "$srcdir/arch.patch"
  autoreconf -fi
}

build() {
  cd "$srcdir/$_pkgname-$pkgver"
  ./configure --prefix=/usr \
              --sysconfdir=/etc \
              --localstatedir=/var \
              --libexecdir=/usr/lib/gnome-settings-daemon \
              --disable-static

  #https://bugzilla.gnome.org/show_bug.cgi?id=656231
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make -C 'gnome-settings-daemon'
  make -C 'plugins/updates'
}

package() {
  cd "$srcdir/$_pkgname-$pkgver"
  make -C 'plugins/updates' DESTDIR="${pkgdir}" install
}