diff options
author | Albert Graef | 2016-06-22 20:26:11 +0200 |
---|---|---|
committer | Albert Graef | 2016-06-22 20:26:11 +0200 |
commit | 7306c79c6d2c0ee8e7c21c55e560ce5c9d16eabf (patch) | |
tree | 3c468d7830b15dfa701b3acce68666c9c12ca50b | |
download | aur-7306c79c6d2c0ee8e7c21c55e560ce5c9d16eabf.tar.gz |
Initial import.
-rw-r--r-- | .SRCINFO | 75 | ||||
-rw-r--r-- | Gem-pix_colorclassify.patch | 31 | ||||
-rw-r--r-- | PKGBUILD | 117 | ||||
-rw-r--r-- | RTcmix-pd-LCPLAY-stabilize.patch | 13 | ||||
-rw-r--r-- | purr-data.install | 13 |
5 files changed, 249 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2b087e1abdaf --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,75 @@ +# Generated by mksrcinfo v8 +# Wed Jun 22 18:25:45 UTC 2016 +pkgbase = purr-data-git + pkgdesc = Jonathan Wilkes' nw.js variant of Pd-L2Ork (git version) + pkgver = r2727.fe96b91 + pkgrel = 1 + url = https://git.purrdata.net/jwilkes/purr-data + install = purr-data.install + arch = i686 + arch = x86_64 + license = BSD + makedepends = autoconf + makedepends = automake + makedepends = libtool + makedepends = git + depends = bluez-libs + depends = desktop-file-utils + depends = dssi + depends = fftw + depends = flite1 + depends = fluidsynth + depends = freeglut + depends = ftgl + depends = glew + depends = gmerlin + depends = gsl + depends = gsm + depends = hicolor-icon-theme + depends = imagemagick + depends = jack + depends = ladspa + depends = lame + depends = libdc1394 + depends = libdv + depends = libgl + depends = libiec61883 + depends = libjpeg + depends = libquicktime + depends = libxxf86vm + depends = libtiff + depends = libiec61883 + depends = libunicap + depends = libraw1394 + depends = libsndobj-git + depends = libv4l + depends = libvorbis + depends = lua51 + depends = portaudio + depends = smpeg + depends = speex + depends = stk + depends = tk + depends = tkpng + depends = vlc + depends = xapian-tcl-bindings + depends = zlib + provides = purr-data + provides = pd-l2ork + conflicts = purr-data + conflicts = pd-l2ork + conflicts = pd-l2ork-git + options = !makeflags + source = purr-data-git::git+https://git.purrdata.net/jwilkes/purr-data.git + source = Gem-pix_colorclassify.patch + source = RTcmix-pd-LCPLAY-stabilize.patch + md5sums = SKIP + md5sums = 33dc1880e38ac8dbc7aa5075bfe49abd + md5sums = 39c53063dc18681f29b12c08d9c453aa + source_i686 = http://dl.nwjs.io/v0.15.3/nwjs-sdk-v0.15.3-linux-ia32.tar.gz + md5sums_i686 = 76794117bfaeda9df25f9b3e9ce59e6d + source_x86_64 = http://dl.nwjs.io/v0.15.3/nwjs-sdk-v0.15.3-linux-x64.tar.gz + md5sums_x86_64 = 68af31ec7af198e24d0262afcc7f721c + +pkgname = purr-data-git + diff --git a/Gem-pix_colorclassify.patch b/Gem-pix_colorclassify.patch new file mode 100644 index 000000000000..b6ff9756c43b --- /dev/null +++ b/Gem-pix_colorclassify.patch @@ -0,0 +1,31 @@ +diff --git a/src/Pixes/pix_colorclassify.cpp b/src/Pixes/pix_colorclassify.cpp +index 7d922ea..1362fc2 100644 +--- a/src/Pixes/pix_colorclassify.cpp ++++ b/src/Pixes/pix_colorclassify.cpp +@@ -151,7 +151,7 @@ unsigned char class_red[] = { + 0,/*blue-green,*/ + 170,/*purple-pink-lavender,*/ + 255,/*purple-pink-magenta,*/ +-0.5*255,/*gray,*/ ++127,/*gray,*/ + 154,/*none ~ brownish for visualization only ~ skin color in the future*/ + }; + +@@ -165,7 +165,7 @@ unsigned char class_green[] = { + 235,/*blue-green,*/ + 0,/*purple-pink-lavender,*/ + 0,/*purple-pink-magenta,*/ +-0.5*255,/*gray,*/ ++127,/*gray,*/ + 115/*none*/ + }; + +@@ -179,7 +179,7 @@ unsigned char class_blue[] = { + 217,/*blue-green,*/ + 255,/*purple-pink-lavender,*/ + 255,/*purple-pink-magenta,*/ +-0.5*255,/*gray,*/ ++127,/*gray,*/ + 86/*none*/ + }; + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..dd675f4619ee --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,117 @@ +# Maintainer: <aggraef at gmail.com> +# Contributor: <aggraef at gmail.com> + +# This is Jonathan Wilkes' nw.js variant of Pd-L2Ork nick-named "Purr-Data". +# Basically, it is Pd-L2Ork with the Tk GUI replaced with a JavaScript GUI +# implemented using nw.js (http://nwjs.io/). + +# NOTE: This is experimental ALPHA software which is still heavily under +# development, so expect some bugs. If you want a version of Pd-L2Ork ready +# for production use, use the pd-l2ork or pd-l2ork-git package instead. + +# This package can be installed as a drop-in replacement for pd-l2ork, but +# currently the two cannot be installed together. Like the pd-l2ork package, +# this package *can* be installed along with pd or pd-extended, however. To +# avoid conflicts with these, cyclist, pdsend and pdreceive can be found under +# /usr/lib/pd-l2ork/bin instead. Likewise, the Gem include files get installed +# under /usr/include/pd-l2ork. + +pkgname=purr-data-git +pkgver=r2727.fe96b91 +pkgrel=1 +pkgdesc="Jonathan Wilkes' nw.js variant of Pd-L2Ork (git version)" +url="https://git.purrdata.net/jwilkes/purr-data" +arch=('i686' 'x86_64') +license=('BSD') +depends=('bluez-libs' 'desktop-file-utils' 'dssi' 'fftw' + 'flite1' 'fluidsynth' 'freeglut' 'ftgl' 'glew' 'gmerlin' + 'gsl' 'gsm' 'hicolor-icon-theme' 'imagemagick' 'jack' 'ladspa' 'lame' + 'libdc1394' 'libdv' 'libgl' 'libiec61883' 'libjpeg' 'libquicktime' + 'libxxf86vm' 'libtiff' 'libiec61883' 'libunicap' 'libraw1394' + 'libsndobj-git' 'libv4l' 'libvorbis' 'lua51' 'portaudio' + 'smpeg' 'speex' 'stk' 'tk' 'tkpng' 'vlc' 'xapian-tcl-bindings' 'zlib') +makedepends=('autoconf' 'automake' 'libtool' 'git') +provides=('purr-data' 'pd-l2ork') +conflicts=('purr-data' 'pd-l2ork' 'pd-l2ork-git') +install=purr-data.install +options=('!makeflags') +source=("$pkgname::git+https://git.purrdata.net/jwilkes/purr-data.git" + "Gem-pix_colorclassify.patch" + "RTcmix-pd-LCPLAY-stabilize.patch") +md5sums=('SKIP' + '33dc1880e38ac8dbc7aa5075bfe49abd' + '39c53063dc18681f29b12c08d9c453aa') +# nw.js sdk binaries +nwjsname=nwjs-sdk +nwjsver=0.15.3 +source_common="http://dl.nwjs.io/v$nwjsver/$nwjsname-v$nwjsver-linux" +source_i686=("$source_common-ia32.tar.gz") +source_x86_64=("$source_common-x64.tar.gz") +md5sums_i686=('76794117bfaeda9df25f9b3e9ce59e6d') +md5sums_x86_64=('68af31ec7af198e24d0262afcc7f721c') + +if [ "$CARCH" = "i686" ]; then + _arch="ia32" +elif [ "$CARCH" = "x86_64" ]; then + _arch="x64" +fi + +pkgver() { + cd $srcdir/$pkgname + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd $srcdir/$pkgname + # check out the latest source of all submodules + git submodule update --init + # copy the nw.js sources to where purr-data wants them + cp -a $srcdir/$nwjsname-v$nwjsver-linux-$_arch pd/nw/nw + # make the sources compile with gcc 6.1+ + cd $srcdir/$pkgname/Gem && patch -Np1 < $srcdir/Gem-pix_colorclassify.patch + cd $srcdir/$pkgname/l2ork_addons/rtcmix-in-pd && patch -Np1 < $srcdir/RTcmix-pd-LCPLAY-stabilize.patch +} + +build() { + unset CFLAGS + unset LDFLAGS + unset INCLUDES + + cd $srcdir/$pkgname/l2ork_addons + ./tar_em_up.sh -B -n +} + +package() { + cd "$srcdir/$pkgname/packages/linux_make/build" + cp -a * "$pkgdir" + # Remove init.d-related stuff. + cd "$pkgdir/etc" + rm -rf default init.d + # Move pdsend and pdreceive to avoid conflicts with other Pd versions. + cd "$pkgdir/usr" + mv bin/cyclist bin/pdreceive bin/pdsend lib/pd-l2ork/bin + # Get rid of the corresponding manpages + rm -f share/man/man1/pdreceive.* share/man/man1/pdsend.* + # Move the Gem include files into the pd-l2ork include directory to prevent + # conflicts with other packages providing these files. + mv include/Gem include/pd-l2ork + # Edit the Gem pkgconfig file accordingly and rename it. + sed -e 's?/include?/include/pd-l2ork?g' -e 's?/lib/pd/extra?/lib/pd-l2ork/extra?g' < lib/pkgconfig/Gem.pc > lib/pkgconfig/pd-l2ork-Gem.pc && rm -f lib/pkgconfig/Gem.pc + # The Japanese filename causes woes with pacman, remove it. + #rm -f lib/pd-l2ork/doc/manuals/StartHere/+ここからスタート.pd + # Remove libtool archives and extra object files. + rm -f lib/pd-l2ork/extra/*/*.la lib/pd-l2ork/extra/*/*.pd_linux_o + # Sanitize permissions. + cd "$pkgdir" + chmod -R go-w * + chmod -R a+r * + chmod a-x usr/lib/pd-l2ork/default.settings + find usr/lib/pd-l2ork/bin/nw -executable -not -type d | xargs chmod a+x + #find . -executable -name '*.pd_linux' | xargs chmod a-x + find . -executable -name '*.pd' | xargs chmod a-x + find . -executable -name '*.txt' | xargs chmod a-x + find . -executable -name '*.aif*' | xargs chmod a-x + find . -type d | xargs chmod a+x +} + +# vim:set ts=2 sw=2 et: diff --git a/RTcmix-pd-LCPLAY-stabilize.patch b/RTcmix-pd-LCPLAY-stabilize.patch new file mode 100644 index 000000000000..20f10a8b1669 --- /dev/null +++ b/RTcmix-pd-LCPLAY-stabilize.patch @@ -0,0 +1,13 @@ +diff --git a/RTcmix-pd-4.0.1.6/insts/std/LPCPLAY/stabilize.cpp b/RTcmix-pd-4.0.1.6/insts/std/LPCPLAY/stabilize.cpp +index 5753965..9cf85c4 100644 +--- a/RTcmix-pd-4.0.1.6/insts/std/LPCPLAY/stabilize.cpp ++++ b/RTcmix-pd-4.0.1.6/insts/std/LPCPLAY/stabilize.cpp +@@ -29,7 +29,7 @@ stabilize(float *frameIn, int npoles) + static Complex jay(0., 1.); + static Complex tmp; + +-inline double abs(double x) { return (x >= 0.) ? x : -x; } ++//inline double abs(double x) { return (x >= 0.) ? x : -x; } + + static int + factor(double *b, long *k4, double *rootr, double *rooti, diff --git a/purr-data.install b/purr-data.install new file mode 100644 index 000000000000..242aed92ab3d --- /dev/null +++ b/purr-data.install @@ -0,0 +1,13 @@ +post_install() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-desktop-database -q + update-mime-database usr/share/mime > /dev/null +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} |