Skip to content

Commit

Permalink
Revert "[indicator-sound] Removed: https://bbs.archlinux.org/viewtopi…
Browse files Browse the repository at this point in the history
…c.php?pid=1199369#p1199369"

This reverts commit 17971d7.

Conflicts:
	README
  • Loading branch information
Xiao-Long Chen committed Dec 20, 2012
1 parent ad7c409 commit 347ec3d
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 10 deletions.
21 changes: 11 additions & 10 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,17 @@ Order to compile/install:
26: indicator-power -> Indicator to show battery information
27: indicator-printers -> Indicator showing active print jobs
28: indicator-session -> Indicator to manage session
29: network-manager-applet-ubuntu -> Network Manager applet with indicator support
30: overlay-scrollbar * -> Overlay scrollbars for GTK 2 and GTK 3
31: evemu -> Linux evdev event emulation
32: fixesproto-ubuntu -> X11 Fixes extension wire protocol
33: libxfixes-ubuntu -> X11 misc. 'fixes' extension library
34: xorg-server-ubuntu -> Xorg X server
35: nux -> An OpenGL toolkit
36: nautilus-ubuntu -> File manager and graphics shell for GNOME
37: compiz-ubuntu -> Compiz compositing window manager
38: unity -> A desktop experience designed for efficiency
29: indicator-sound -> A unified sound menu
30: network-manager-applet-ubuntu -> Network Manager applet with indicator support
31: overlay-scrollbar * -> Overlay scrollbars for GTK 2 and GTK 3
32: evemu -> Linux evdev event emulation
33: fixesproto-ubuntu -> X11 Fixes extension wire protocol
34: libxfixes-ubuntu -> X11 misc. 'fixes' extension library
35: xorg-server-ubuntu -> Xorg X server
36: nux -> An OpenGL toolkit
37: nautilus-ubuntu -> File manager and graphics shell for GNOME
38: compiz-ubuntu -> Compiz compositing window manager
39: unity -> A desktop experience designed for efficiency

* Optional packages
- overlay-scrollbar => For GNOME/Unity users who want a space saving scrollbar
Expand Down
46 changes: 46 additions & 0 deletions indicator-sound/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Maintainer: Xiao-Long Chen <[email protected]>
# Original Maintainer: Balló György <[email protected]>
# 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:
15 changes: 15 additions & 0 deletions indicator-sound/compare_versions.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

source "$(dirname ${0})/PKGBUILD"

echo "Getting latest Ubuntu version..."
UBUNTU_VER=($(wget -q -O - 'https://launchpad.net/ubuntu/quantal/+source/indicator-sound' | sed -n 's/^.*current\ release\ (\(.*\)-\(.*\)).*$/\1 \2/p'))

echo "Getting latest upstream version..."
UPSTREAM_VER=$(wget -q 'https://launchpad.net/indicator-sound/+download' -O - | sed -n 's/.*indicator-sound-\(.*\)\.tar\.gz.*/\1/p' | head -n 1)

echo ""

echo -e "PKGBUILD version: ${pkgver%.*} ${_ubuntu_rel}"
echo -e "Upstream version: ${UPSTREAM_VER}"
echo -e "Ubuntu version: ${UBUNTU_VER[@]}"
12 changes: 12 additions & 0 deletions indicator-sound/indicator-sound.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
post_install() {
glib-compile-schemas usr/share/glib-2.0/schemas
}

post_upgrade() {
post_install ${1}
}

post_remove() {
post_install ${1}
}

0 comments on commit 347ec3d

Please sign in to comment.