forked from chenxiaolong/Unity-for-Arch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[indicator-sound] Removed: https://bbs.archlinux.org/viewtopi…
…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
Showing
4 changed files
with
84 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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[@]}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} | ||
} | ||
|