[arch-commits] Commit in pd/trunk (PKGBUILD pd.png)
David Runge
dvzrv at archlinux.org
Fri Aug 9 05:50:47 UTC 2019
Date: Friday, August 9, 2019 @ 05:50:47
Author: dvzrv
Revision: 498387
upgpkg: pd 0.49.1-1
Upgrading to 0.49.1. Removing custom icon. Integrating upstream svg and generating all icons from it, using inkscape. Switching to github for tarballs (because https and instant tarball generation).
Modified:
pd/trunk/PKGBUILD
Deleted:
pd/trunk/pd.png
----------+
PKGBUILD | 39 ++++++++++++++++++++++++++-------------
1 file changed, 26 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-08-09 05:13:57 UTC (rev 498386)
+++ PKGBUILD 2019-08-09 05:50:47 UTC (rev 498387)
@@ -3,26 +3,28 @@
# Contributor: TDY <tdy at gmx.com>
# Contributor: Shinlun Hsieh <yngwiexx at yahoo.com.tw>
+_resolutions=( 16 32 48 64 96 128 256 512 1024 )
+_name=pure-data
pkgname=pd
-pkgver=0.49.0
+pkgver=0.49.1
_ver=${pkgver%.*}-${pkgver##*.}
pkgrel=1
pkgdesc="The Pure Data real-time music and multimedia environment"
arch=('x86_64')
url="http://msp.ucsd.edu/software.html"
-license=('custom:BSD')
+license=('BSD')
groups=('pro-audio')
-depends=('fftw' 'portaudio' 'tk')
-makedepends=('gendesk' 'portmidi')
+depends=('fftw' 'hicolor-icon-theme' 'portaudio' 'tk')
+makedepends=('gendesk' 'inkscape' 'portmidi')
optdepends=('portmidi: for alternative portmidi support')
provides=('puredata')
-source=("http://msp.ucsd.edu/Software/${pkgname}-${_ver}.src.tar.gz"
- "${pkgname}.png")
-sha512sums=('5a8e606d2e1b62bc65903c7a30c6339f0f9acc676290d233bcb8ed87a817c7c3ff63207779f5e0d9caa231ad988770e5c2225921c2a616df661b3960b2c72480'
- '61300b58f10018b0bd28424ac00d1b8158f8ace9855742e19e48c98f915cabcade6c6041460aa795005c0fb6abc93e7116f9999c6d001999916c9fe6c85c162d')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pure-data/pure-data/archive/${_ver}.tar.gz"
+ "${pkgname}.svg::https://raw.githubusercontent.com/pure-data/pd-icon/master/masters/icon.svg")
+sha512sums=('c2dd4eadc622b1a626095cad95ce7e34be569414671af5938b339665526545174cf7abb77bf49943f617a93b3fae54fc890df46f1b9f73cb93b13a36db490fd7'
+ '3c88122e0bdbdda73d47a688de7264f4cf86537b981dfabcbc646fc621189612bd0ae4804ba962d533072df85faddb9a77daf3eb7c6ef8ea46c22e3216bf0d74')
prepare() {
- mv -v "${pkgname}-${_ver}" "${pkgname}-${pkgver}"
+ mv -v "${_name}-${_ver}" "${pkgname}-${pkgver}"
cd "${pkgname}-${pkgver}"
autoreconf -vfi
# XDG desktop files
@@ -32,6 +34,12 @@
--exec ${pkgname} \
--name "Pure Data" \
--categories "AudioVideo;Audio"
+ for _res in ${_resolutions[@]}; do
+ inkscape -z -e "pd-${_res}.png" \
+ -w "${_res}" \
+ -h "${_res}" \
+ "../${pkgname}.svg"
+ done
}
build() {
@@ -57,10 +65,15 @@
# desktop file
install -vDm 644 "${pkgname}.desktop" \
-t "${pkgdir}/usr/share/applications/"
- # icon from puredata.info
- # https://puredata.info/Members/claudiusmaximus/icons/index_html/
- install -vDm 644 "${srcdir}/${pkgname}.png" \
- -t "${pkgdir}/usr/share/pixmaps/"
+ # icons
+ install -vDm 644 "${pkgname}-32.png" \
+ "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
+ install -vDm 644 "${srcdir}/${pkgname}.svg" \
+ -t "${pkgdir}/usr/share/icons/hicolor/scalable/apps"
+ for _res in ${_resolutions[@]}; do
+ install -vDm 644 "${pkgname}-${_res}.png" \
+ "${pkgdir}/usr/share/icons/hicolor/${_res}x${_res}/apps/${pkgname}.png"
+ done
# readme
install -vDm 644 README.txt -t "${pkgdir}/usr/share/doc/${pkgname}/"
# fix broken symlink
Deleted: pd.png
===================================================================
(Binary files differ)
More information about the arch-commits
mailing list