summaryrefslogtreecommitdiff
path: root/community/qtscrobbler
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/qtscrobbler
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/qtscrobbler')
-rw-r--r--community/qtscrobbler/PKGBUILD43
-rw-r--r--community/qtscrobbler/qtscrobbler.install9
2 files changed, 52 insertions, 0 deletions
diff --git a/community/qtscrobbler/PKGBUILD b/community/qtscrobbler/PKGBUILD
new file mode 100644
index 000000000..804a797ea
--- /dev/null
+++ b/community/qtscrobbler/PKGBUILD
@@ -0,0 +1,43 @@
+# $Id: PKGBUILD 92967 2013-06-21 07:22:15Z alucryd $
+# Maintainer: Maxime Gauduin <alucryd@gmail.com>
+# Contributor: Simon Legner <simon dot legner at gmail dot com>
+
+pkgname=qtscrobbler
+pkgver=0.11
+pkgrel=4
+pkgdesc="Submit .scrobbler.log from portable players to Last.fm and Libre.fm"
+arch=('i686' 'x86_64')
+url="http://qtscrob.sourceforge.net/"
+license=('GPL')
+depends=('libmtp' 'qt4')
+makedepends=('gtk-update-icon-cache' 'gzip')
+install=${pkgname}.install
+source=("http://downloads.sourceforge.net/project/qtscrob/qtscrob/${pkgver}/qtscrob-${pkgver}.tar.bz2")
+sha256sums=('01c8e48f616ed09504833d27d92fd62f455bd645ea2d1cc2a5f4c287d641daba')
+
+build() {
+ cd "$srcdir"/qtscrob-${pkgver}/src
+
+ qmake-qt4
+ make
+}
+
+package() {
+ cd "$srcdir"/qtscrob-${pkgver}/src
+
+ install -dm 755 "${pkgdir}"/usr/{bin,share/{applications,icons/hicolor,man/man1}}
+ install -m 755 cli/scrobbler "${pkgdir}"/usr/bin/qtscrob-cli
+ install -m 755 qt/qtscrob "${pkgdir}"/usr/bin/qtscrob
+
+ install -m 644 cli/scrobbler.1 "${pkgdir}"/usr/share/man/man1/qtscrob-cli.1
+ install -m 644 qt/qtscrob.1 "${pkgdir}"/usr/share/man/man1/qtscrob.1
+ gzip -9 -f "${pkgdir}"/usr/share/man/man1/*
+
+ install -m 644 qt/qtscrob.desktop "${pkgdir}"/usr/share/applications/qtscrob.desktop
+ for size in 16 32 48 64 128 256 512 ; do
+ install -dm 755 "${pkgdir}"/usr/share/icons/hicolor/${size}x${size}/apps
+ install -m 644 qt/resources/icons/${size}x${size}/qtscrob.png "${pkgdir}"/usr/share/icons/hicolor/${size}x${size}/apps/qtscrob.png
+ done
+}
+
+# vim: ts=2 sw=2 et:
diff --git a/community/qtscrobbler/qtscrobbler.install b/community/qtscrobbler/qtscrobbler.install
new file mode 100644
index 000000000..3e26308b0
--- /dev/null
+++ b/community/qtscrobbler/qtscrobbler.install
@@ -0,0 +1,9 @@
+post_install() {
+ gtk-update-icon-cache -ftq usr/share/icons/hicolor
+}
+
+post_remove() {
+ post_install
+}
+
+# vim: ts=2 sw=2 et: