summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a636044ede4d4fe3b3d14fa28887b89d01d677ca (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
# Maintainer:  Robin Visser  <rxvisser@gmail.com>
# Contributor: Filip Hendrik <stoatally@gmail.com>
# Contributor: Rowan Lewis   <rl@nbsp.io>

pkgname=gnome-settings-daemon-volume-step-patch
pkgver=3.24.3
pkgrel=1
pkgdesc="GNOME Settings daemon with an additional patch to allow configuration of volume steps"
url="http://www.gnome.org"
arch=(x86_64)
license=('GPL')
depends=(dconf gnome-desktop gsettings-desktop-schemas libcanberra-pulse libnotify libsystemd
         libwacom pulseaudio pulseaudio-alsa upower librsvg libgweather geocode-glib geoclue2 nss
         libgudev gtk3-print-backends libnm)
makedepends=(intltool xf86-input-wacom libxslt docbook-xsl python git gnome-common)
provides=('gnome-settings-daemon')
conflicts=('gnome-settings-daemon')
options=('!emptydirs')
install=gnome-settings-daemon.install
groups=('gnome')
source=(https://download.gnome.org/sources/${pkgname:0:21}/${pkgver:0:4}/${pkgname:0:21}-$pkgver.tar.xz
        volume-step.patch)
sha256sums=('68c46038bc32b7cbe933cc24fa9f1eb96127d9900c07627767ab0a802f948593'
            '754b89fbb2fd1da0f431e53b9aeaab511734234031c57c62d4747cfafeef2438')

prepare() {
  cd ${pkgname:0:21}-$pkgver

  # https://bugzilla.gnome.org/show_bug.cgi?id=650371
  patch -p1 -i ../volume-step.patch
}

build() {
  cd ${pkgname:0:21}-$pkgver

  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
      --libexecdir=/usr/lib/${pkgname:0:21} --disable-static

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

  make
}

package() {
  cd ${pkgname:0:21}-$pkgver
  make DESTDIR="$pkgdir" install
}