forked from chenxiaolong/Unity-for-Arch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
57 lines (46 loc) · 2.11 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
47
48
49
50
51
52
53
54
55
56
57
# Maintainer: Xiao-Long Chen <[email protected]>
# Original Maintainer: Balló György <[email protected]>
# Contributor: thn81 <root@scrat>
pkgname=indicator-sound
_actual_ver=12.10.2
_extra_ver=+14.04.20140401
pkgver=${_actual_ver}daily14.04.01
pkgrel=2
pkgdesc="A unified sound menu"
arch=('i686' 'x86_64')
url="https://launchpad.net/indicator-sound"
license=('GPL')
depends=('accountsservice' 'dconf' 'libgee06' 'libnotify' 'libpulse' 'libxml2')
makedepends=('cmake' 'gobject-introspection' 'intltool' 'vala')
groups=('unity')
install=${pkgname}.install
source=("https://launchpad.net/ubuntu/+archive/primary/+files/indicator-sound_${_actual_ver}${_extra_ver}.orig.tar.gz"
'com.ubuntu.sound.gschema.xml'
'0001_Not_a_phone.patch'
'0002_Remove_tests.patch')
sha512sums=('73a3c1f2febf569e77118fd3cf7e2dcf9abef818f1829b4a07a1f843b6b39b41fa41d2d74dc8086c6a712a1fa2684faa57ef7a0aa9a5f9d7b782054cb8202513'
'04e662c9724f983c0b9129e13394937541949d481de3722e72046a68a49772707a145854a09bc7830e10ddd9bcf3b3095c9101fbc0c29fd03cfd267a074aee3c'
'57649313d8bd5e053d95e52882039a39ac505ac26a90c9144fc18705fb618548c3c83aafb2a2fc89f6ed7539720811ffa0e9055566ad612f473b6a427e58ac4f'
'95235ea7e399cc88cfe0a682059fc2d3c3536e86f577d16141de8a2532b4236bd9881f1ccc5201b187977075ba1d99180a63e526968f571219f0d6e0573e449b')
prepare() {
cd "${srcdir}/${pkgname}-${_actual_ver}${_extra_ver}"
patch -p1 -i "${srcdir}/0001_Not_a_phone.patch"
patch -p1 -i "${srcdir}/0002_Remove_tests.patch"
}
build() {
cd "${srcdir}/${pkgname}-${_actual_ver}${_extra_ver}"
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBEXECDIR=lib
make
}
package() {
cd "${srcdir}/${pkgname}-${_actual_ver}${_extra_ver}/build/"
make DESTDIR="${pkgdir}/" install
install -dm755 "${pkgdir}/usr/share/glib-2.0/schemas/"
install -m644 "${srcdir}/com.ubuntu.sound.gschema.xml" \
"${pkgdir}/usr/share/glib-2.0/schemas/"
rm -r "${pkgdir}/usr/share/upstart/"
sed -i 's/NotShowIn/OnlyShowIn/g' \
"${pkgdir}/etc/xdg/autostart/indicator-sound.desktop"
}
# vim:set ts=2 sw=2 et: