From 347ec3da29f866b75d6734e9f891940f03c8a454 Mon Sep 17 00:00:00 2001 From: Xiao-Long Chen Date: Thu, 20 Dec 2012 03:26:48 -0500 Subject: [PATCH] Revert "[indicator-sound] Removed: https://bbs.archlinux.org/viewtopic.php?pid=1199369#p1199369" This reverts commit 17971d79ecd689b8feb865b67e27c483c0768653. Conflicts: README --- README | 21 +++++------ indicator-sound/PKGBUILD | 46 +++++++++++++++++++++++++ indicator-sound/compare_versions.sh | 15 ++++++++ indicator-sound/indicator-sound.install | 12 +++++++ 4 files changed, 84 insertions(+), 10 deletions(-) create mode 100644 indicator-sound/PKGBUILD create mode 100755 indicator-sound/compare_versions.sh create mode 100644 indicator-sound/indicator-sound.install diff --git a/README b/README index a67d6295..eb290268 100644 --- a/README +++ b/README @@ -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 diff --git a/indicator-sound/PKGBUILD b/indicator-sound/PKGBUILD new file mode 100644 index 00000000..d9c1e5b6 --- /dev/null +++ b/indicator-sound/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Xiao-Long Chen +# Original Maintainer: Balló György +# Contributor: thn81 + +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: diff --git a/indicator-sound/compare_versions.sh b/indicator-sound/compare_versions.sh new file mode 100755 index 00000000..e6f2d911 --- /dev/null +++ b/indicator-sound/compare_versions.sh @@ -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[@]}" diff --git a/indicator-sound/indicator-sound.install b/indicator-sound/indicator-sound.install new file mode 100644 index 00000000..bc3c3915 --- /dev/null +++ b/indicator-sound/indicator-sound.install @@ -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} +} +