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

David Runge dvzrv at archlinux.org
Mon Dec 4 16:39:45 UTC 2017


    Date: Monday, December 4, 2017 @ 16:39:44
  Author: dvzrv
Revision: 272123

upgpkg: pd 0.48.0-2

Updating maintainer. Removing unneeded strip option. Adding desktop file and png icon.
Adding portaudio and hicolor-icon-theme to depends. Using autoreconf in prepare() instead of autogen.sh.
Enabling portaudio, disabling debug build. Switching to sha512sums.
Installing desktop file and png icon. Fixing broken symlink to /usr/lib/pd/bin/pd. Minor fixes.

Added:
  pd/trunk/pd.desktop
  pd/trunk/pd.png
Modified:
  pd/trunk/PKGBUILD

------------+
 PKGBUILD   |   46 +++++++++++++++++++++++++++++++---------------
 pd.desktop |    7 +++++++
 pd.png     |    1 +
 3 files changed, 39 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-04 16:39:31 UTC (rev 272122)
+++ PKGBUILD	2017-12-04 16:39:44 UTC (rev 272123)
@@ -1,5 +1,6 @@
 # $Id$
-# Maintainer : speps <speps at aur dot archlinux dot org>
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: speps <speps at aur dot archlinux dot org>
 # Contributor: TDY <tdy at gmx.com>
 # Contributor: Shinlun Hsieh <yngwiexx at yahoo.com.tw>
 
@@ -6,34 +7,49 @@
 pkgname=pd
 pkgver=0.48.0
 _ver=${pkgver%.*}-${pkgver##*.}
-pkgrel=1
+pkgrel=2
 pkgdesc="The Pure Data real-time music and multimedia environment"
 arch=('x86_64')
 url="http://msp.ucsd.edu/software.html"
 license=('custom:BSD')
-depends=('jack' 'fftw' 'tk')
+depends=('jack' 'fftw' 'tk' 'hicolor-icon-theme' 'portaudio')
 provides=('puredata')
-options=('!strip')
-source=("http://msp.ucsd.edu/Software/pd-$_ver.src.tar.gz")
-md5sums=('b746efd17a8a571c6fcfb536ff607c29')
+source=("http://msp.ucsd.edu/Software/${pkgname}-${_ver}.src.tar.gz"
+        "${pkgname}.desktop"
+        "${pkgname}.png")
+sha512sums=('2312590131a2110de1c84fa2b5d407286f2a073564c6f4cd285d48dcf1ae9d003dc5f20ce74a970eeb4ae8ff68d537e2eaf9ca6322d4f975a7a39893f4d8f0f0'
+            '4d3596b337456117ecdf0f1709358b4298198e0b347cb13b884e35ad2f2f667561a10b44683cf916c1da123daebee7141e9ab8bd89405a579b69d30b0e718f37'
+            '61300b58f10018b0bd28424ac00d1b8158f8ace9855742e19e48c98f915cabcade6c6041460aa795005c0fb6abc93e7116f9999c6d001999916c9fe6c85c162d')
 
+prepare() {
+  cd "${pkgname}-${_ver}"
+  autoreconf -vi
+}
+
 build() {
-  cd pd-$_ver
-  ./autogen.sh
+  cd "${pkgname}-${_ver}"
   ./configure --prefix=/usr \
               --enable-alsa \
               --enable-jack \
-              --disable-portaudio \
-              --enable-fftw \
-              --enable-debug
+              --enable-portaudio \
+              --enable-fftw
   make
 }
 
 package() {
-  cd pd-$_ver
-  make DESTDIR="$pkgdir" install
+  cd "${pkgname}-${_ver}"
+  make DESTDIR="${pkgdir}" install
 
   # license
-  install -Dm644 LICENSE.txt \
-    "$pkgdir/usr/share/licenses/pd/LICENSE"
+  install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  # desktop file
+  install -Dm644 "${srcdir}/${pkgname}.desktop" \
+    "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+  # icon from puredata.info
+  # https://puredata.info/Members/claudiusmaximus/icons/index_html/
+  install -Dm644 "${srcdir}/${pkgname}.png" \
+    "${pkgdir}/usr/share/icons/hicolor/64x64/apps/${pkgname}.png"
+  # fix broken symlink
+  rm "${pkgdir}/usr/lib/${pkgname}/bin/${pkgname}"
+  ln -s "/usr/bin/${pkgname}" "${pkgdir}/usr/lib/${pkgname}/bin/${pkgname}"
 }

Added: pd.desktop
===================================================================
--- pd.desktop	                        (rev 0)
+++ pd.desktop	2017-12-04 16:39:44 UTC (rev 272123)
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Type=Application
+Terminal=false
+Exec=pd
+Name=pd
+Icon=pd
+Categories=Audio;AudioVideo;Midi;X-Alsa;X-Jack;GTK;

Added: pd.png
===================================================================
(Binary files differ)

Index: pd/trunk/pd.png
===================================================================
--- pd.png	2017-12-04 16:39:31 UTC (rev 272122)
+++ pd.png	2017-12-04 16:39:44 UTC (rev 272123)

Property changes on: pd/trunk/pd.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+image/png
\ No newline at end of property



More information about the arch-commits mailing list