summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMirko Dietrich2016-04-22 19:52:01 +0200
committerMirko Dietrich2016-04-22 19:52:01 +0200
commitaf77a1f52f0a8f6adaabe5b0e888d23cca3cad9c (patch)
treed1d01fb22797c8b0a20a483bc14ffa266131894c
parentf56985b132c3289004a88b00edd04fd2bb6979f3 (diff)
downloadaur-af77a1f52f0a8f6adaabe5b0e888d23cca3cad9c.tar.gz
added .SRCINFO, .gitignore, volctl.install, updated PKGBUILD
-rw-r--r--.SRCINFO1
-rw-r--r--.gitignore7
-rw-r--r--PKGBUILD35
-rw-r--r--volctl.install15
4 files changed, 33 insertions, 25 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b3ac75743838..5921d9199ab7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -9,7 +9,6 @@ pkgbase = volctl
depends = python2
depends = python2-gobject
depends = pulseaudio
- depends = pavucontrol
optdepends = pavucontrol: mixer support
options = !emptydirs
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..e49d5d593f3c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+\#*#
+.#*
+*~
+volctl-*.pkg.tar.xz
+volctl/
+src/
+pkg/
diff --git a/PKGBUILD b/PKGBUILD
index 7f22bc7a8fc4..26a7e8a7aafa 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,15 @@
# Maintainer: buzz <buzz-AT-l4m1-DOT-de>
pkgname=volctl
-pkgver=0.3
+_gitname=volctl
+pkgver=0.3.r0.gc5a4b3f
pkgrel=1
pkgdesc="Per-application volume control for GNU/Linux desktops"
arch=("any")
url="https://buzz.github.io/volctl/"
license=("GPL")
groups=()
-depends=("python2" "python2-gobject" "pulseaudio")
+depends=("python2" "python2-gobject" "pulseaudio" "desktop-file-utils")
+install=volctl.install
optdepends=("pavucontrol: mixer support")
makedepends=("git")
provides=()
@@ -15,32 +17,17 @@ conflicts=()
replaces=()
backup=()
options=(!emptydirs)
-install=
-source=()
+source=("git+https://github.com/buzz/volctl.git")
+md5sums=("SKIP")
-_gitroot="https://github.com/buzz/volctl.git"
-_gitname="volctl"
-
-build() {
- cd "$srcdir"
- msg "Connecting to GIT server...."
-
- if [[ -d "$_gitname" ]]; then
- cd "$_gitname" && git pull origin
- msg "The local files are updated."
- else
- git clone "$_gitroot" "$_gitname"
- fi
-
- msg "GIT checkout done or server timeout"
-
- rm -rf "$srcdir/$_gitname-build"
- git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
+pkgver() {
+ cd "${_gitname}"
+ git describe --long --tags | sed 's/-/.r/;s/-/./'
}
package() {
- cd "$srcdir/$_gitname-build"
- python2 setup.py install --root="$pkgdir/" --optimize=1
+ cd "${_gitname}"
+ python2 setup.py install --root="${pkgdir}/" --optimize=1
}
# vim:set ts=2 sw=2 et:
diff --git a/volctl.install b/volctl.install
new file mode 100644
index 000000000000..b77bcc5b312e
--- /dev/null
+++ b/volctl.install
@@ -0,0 +1,15 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ /bin/true
+}
+
+post_remove() {
+ update-desktop-database -q
+}