[arch-commits] Commit in qsopcast/trunk (PKGBUILD qsopcast.desktop)

Alexander Rødseth arodseth at archlinux.org
Thu Nov 23 21:11:11 UTC 2017


    Date: Thursday, November 23, 2017 @ 21:11:10
  Author: arodseth
Revision: 268242

upgpkg: qsopcast 0.3.8.1-3

Modified:
  qsopcast/trunk/PKGBUILD
Deleted:
  qsopcast/trunk/qsopcast.desktop

------------------+
 PKGBUILD         |   40 ++++++++++++++++++++++------------------
 qsopcast.desktop |   10 ----------
 2 files changed, 22 insertions(+), 28 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-23 20:44:31 UTC (rev 268241)
+++ PKGBUILD	2017-11-23 21:11:10 UTC (rev 268242)
@@ -1,36 +1,40 @@
 # $Id$
-# Maintainer: Giovanni Scafora <giovanni at archlinux.org>
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
 # Contributor: Andrea Scarpino <andrea at archlinux.org>
 
 pkgname=qsopcast
 pkgver=0.3.8.1
-pkgrel=2
-pkgdesc="A Qt front-end to p2p TV sopcast"
+pkgrel=3
+pkgdesc='Qt front-end for p2p TV sopcast'
 arch=('x86_64')
-url="http://code.google.com/p/qsopcast"
+url='https://code.google.com/archive/p/qsopcast/'
 license=('GPL2')
 depends=('qt4' 'sopcast')
-source=("http://qsopcast.googlecode.com/files/${pkgname}-${pkgver}-qt4.tar.bz2"
-        'qsopcast.desktop')
-sha1sums=('9c89c15544e20c120c97a0b54589c5d2acac398e'
-          'ada48f3fdeab903235967142740d057d544494c4')
+makedepends=('gendesk' 'imagemagick')
+source=("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$pkgname/$pkgname-$pkgver-qt4.tar.bz2")
+sha256sums=('59ebca822102e7c3af1d5a39368457a3bb659ceba74cdd9aa9034fb68a8af8fc')
 
+prepare() {
+  sed -i 's,/local,/,g' "$pkgname-$pkgver-qt4/src/"{qsopcast.pro,main.cpp}
+  convert "$pkgname-$pkgver-qt4/src/icons/mozart.xpm" "$srcdir/qsopcast.png"
+  gendesk -f -n --pkgname="$pkgname" --pkgdesc="$pkgdesc" --custom='GenericName=Online TV'
+}
+
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}-qt4/src"
+  cd "$pkgname-$pkgver-qt4/src"
 
-  sed -i "s:/usr/local:/usr:g" qsopcast.pro main.cpp
   qmake-qt4
-
   make
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}-qt4/src"
+  make -C "$pkgname-$pkgver-qt4/src" INSTALL_ROOT="$pkgdir" install
 
-  make INSTALL_ROOT=${pkgdir} install
-  install -D -m644 "${srcdir}/qsopcast.desktop" \
-                   "${pkgdir}/usr/share/applications/qsopcast.desktop"
-  install -D -m644 "icons/mozart.xpm" \
-                   "${pkgdir}/usr/share/pixmaps/qsopcast.xpm"
-  rm -rf "${pkgdir}/usr/bin/sp-sc"
+  install -Dm644 qsopcast.png "$pkgdir/usr/share/pixmaps/qsopcast.png"
+  install -Dm644 qsopcast.desktop "$pkgdir/usr/share/applications/qsopcast.desktop"
+
+  rm "$pkgdir/usr/bin/sp-sc"
 }
+
+# vim: ts=2 sw=2 et:

Deleted: qsopcast.desktop
===================================================================
--- qsopcast.desktop	2017-11-23 20:44:31 UTC (rev 268241)
+++ qsopcast.desktop	2017-11-23 21:11:10 UTC (rev 268242)
@@ -1,10 +0,0 @@
-[Desktop Entry]
-Comment=A Qt frontend of sopcast
-Exec=qsopcast
-GenericName=Online TV
-Icon=qsopcast.xpm
-Name=QSopcast
-StartupNotify=true
-Terminal=false
-Type=Application
-Categories=Application;Network;


More information about the arch-commits mailing list