summaryrefslogtreecommitdiff
path: root/extra/gnome-alsamixer/PKGBUILD
blob: 5afe3f74b0b5da7d45093a4fd8d1be4955eb7a19 (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
# $Id: PKGBUILD 189332 2013-07-03 05:25:03Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=gnome-alsamixer
pkgver=0.9.7
pkgrel=1
pkgdesc="Gnome ALSA mixer"
arch=('i686' 'x86_64' 'mips64el')
url="https://launchpad.net/gnome-alsamixer"
license=('GPL')
depends=('libgnomeui')
options=('!emptydirs')
install=gnome-alsamixer.install
source=(https://launchpad.net/ubuntu/+archive/primary/+files/gnome-alsamixer_0.9.7~cvs.20060916.ds.1.orig.tar.gz
        02_change_gconf-keys_path.diff 03_gnome-alsamixer.schemas.diff 04_ignore-delimiters.diff
	05-remove-G_CONST_RETURN.patch 06-use-libgnome-headers.patch gnome-alsamixer.desktop)
sha1sums=('98e716cd14fe46cb9c77034de7558ef113da26f5'
          'ee7743abfc8d6005be6fcb0fb47b45e636db5fdc'
          '6b3148bab4ed53bc9a0a123b33585cd81b138225'
          'd4a7f9a5868c5af52f9b3c7a146ae34ddc45adf7'
          '6b19224d0346cf53b864333b191fa99fc8e7ebdc'
          '2731a7ef249aac51eeab1717c645c995780f36a7'
          '31639f7932d088ca76a18c79839682be811f23d0')

prepare() {
  cd ${pkgname}-${pkgver}~cvs.20060916
  patch -Np1 -i ../02_change_gconf-keys_path.diff
  patch -Np1 -i ../03_gnome-alsamixer.schemas.diff
  patch -Np1 -i ../04_ignore-delimiters.diff
  patch -Np1 -i ../05-remove-G_CONST_RETURN.patch
  patch -Np1 -i ../06-use-libgnome-headers.patch

  ln -sf /usr/share/automake-*/mkinstalldirs mkinstalldirs
}

build() {
  cd ${pkgname}-${pkgver}~cvs.20060916
  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
  make MSGFMT_OPTS="-c" LIBS+="-lm"
}

package() {
  cd ${pkgname}-${pkgver}~cvs.20060916
  make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install
  install -D -m644 "${srcdir}/gnome-alsamixer.desktop" "${pkgdir}/usr/share/applications/gnome-alsamixer.desktop"

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