summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorkaptoxic2016-01-19 14:25:00 +0100
committerkaptoxic2016-01-19 14:25:00 +0100
commit975a74f5cfbe51c4d3f59a81fd73b8dfee877e62 (patch)
tree8efc06a1b6645d50731441af5d090f16757b156f
downloadaur-covergloobus-bzr.tar.gz
Revive original package
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD53
-rw-r--r--covergloobus-bzr.install14
3 files changed, 89 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e41bad57c5e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+# Generated by mksrcinfo v8
+# Tue Jan 19 13:24:53 UTC 2016
+pkgbase = covergloobus-bzr
+ pkgdesc = a standalone application to see what is playing in the your favourite music player
+ pkgver = 381
+ pkgrel = 1
+ url = https://launchpad.net/covergloobus
+ install = covergloobus-bzr.install
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = bzr
+ makedepends = intltool
+ makedepends = gettext
+ depends = dbus-python
+ depends = pygtk
+ depends = pyxdg
+ depends = sysvinit-tools
+ conflicts = covergloobus
+
+pkgname = covergloobus-bzr
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0182221f5f3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,53 @@
+# Maintainer: kicka <robertocalabrese75@gmail.com>
+# Contributor: cahr_g <cahr.gr@gmail.com>
+
+pkgname=covergloobus-bzr
+pkgver=381
+pkgrel=1
+pkgdesc="a standalone application to see what is playing in the your favourite music player"
+arch=('i686' 'x86_64')
+url="https://launchpad.net/covergloobus"
+license=('GPL3')
+depends=('dbus-python' 'pygtk' 'pyxdg' 'sysvinit-tools')
+makedepends=('bzr' 'intltool' 'gettext')
+options=()
+install=${pkgname}.install
+source=()
+md5sums=()
+conflicts=('covergloobus')
+
+_bzrtrunk=lp:covergloobus
+_bzrmod=covergloobus
+
+build() {
+
+ msg "Connecting to the server...."
+ cd ${srcdir}
+ if [ -d "${srcdir}/${_bzrmod}" ] ; then
+ cd ${_bzrmod} && bzr pull
+ msg "The local files are updated."
+ else
+ bzr branch ${_bzrtrunk}
+ cd ${_bzrmod}
+ fi
+
+ msg "BZR checkout done or server timeout"
+ msg "Starting make..."
+
+ # python2 fix
+ for file in $(find . -name Makefile -print) src/scripts/covergloobus.in src/scripts/covergloobus-config.in; do
+ sed -i 's_python _python2 _' $file
+ done
+
+ export PYTHON=python2
+ ./autogen.sh --prefix=/usr
+ ./configure --prefix=/usr --sysconfdir=/etc
+ make
+
+}
+
+package() {
+ cd ${srcdir}/${_bzrmod}
+
+ make PREFIX=/usr DESTDIR=${pkgdir} install
+}
diff --git a/covergloobus-bzr.install b/covergloobus-bzr.install
new file mode 100644
index 00000000000..28b658659e0
--- /dev/null
+++ b/covergloobus-bzr.install
@@ -0,0 +1,14 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
+ update-desktop-database -q
+}
+