This repository has been archived by the owner on Feb 27, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
/
PKGBUILD
46 lines (37 loc) · 1.56 KB
/
PKGBUILD
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
# Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
# Original Maintainer: Balló György <ballogy@freestart.hu>
# Contributor: thn81 <root@scrat>
pkgname=indicator-sound
_ubuntu_rel=0ubuntu1
pkgver=12.10.1.${_ubuntu_rel}
pkgrel=100
pkgdesc="A unified sound menu"
arch=('i686' 'x86_64')
url="https://launchpad.net/indicator-sound"
license=('GPL')
depends=('libpulse' 'libindicator3' 'libdbusmenu-gtk3' 'libido3' 'libnotify' 'libgee' 'dconf')
makedepends=('intltool' 'vala' 'libgee')
groups=('unity')
options=('!libtool')
install=${pkgname}.install
source=("http://launchpad.net/${pkgname}/12.10/${pkgver%.*}/+download/${pkgname}-${pkgver%.*}.tar.gz"
"http://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_${pkgver%.*}-${_ubuntu_rel}.debian.tar.gz")
sha512sums=('58563f2b269a6b6e236a5e1dca0c406a0ee35686a3e66980c4611e6f864b6855b6d13016cc9ec10f6fc38896e0d65cb9a946d799f01517d0612a8422572f1b78'
'565029beb7c91909be88895eb1a33e17982d6894bc69bdd5d012aeeba1ad60e2c8bad422aca165a62eb732671badd1a96ecb3e4e4a62c44bb232aeaa866fe695')
build() {
cd "${srcdir}/${pkgname}-${pkgver%.*}"
# Apply Ubuntu patches
for i in $(cat "${srcdir}/debian/patches/series" | grep -v '#'); do
patch -Np1 -i "${srcdir}/debian/patches/${i}"
done
# Fix build
CFLAGS="${CFLAGS} -Wno-error=deprecated-declarations"
autoreconf -vfi
./configure --prefix=/usr --libexecdir=/usr/lib/${pkgname} --disable-static --disable-schemas-compile
make ${MAKEFLAGS}
}
package() {
cd "${srcdir}/${pkgname}-${pkgver%.*}/"
make DESTDIR="${pkgdir}/" install
}
# vim:set ts=2 sw=2 et: