diff options
-rw-r--r-- | pcr/din/PKGBUILD | 80 | ||||
-rw-r--r-- | pcr/din/din.desktop | 11 | ||||
-rw-r--r-- | pcr/din/din.install | 14 | ||||
-rw-r--r-- | pcr/din/din.png | bin | 0 -> 420 bytes |
4 files changed, 71 insertions, 34 deletions
diff --git a/pcr/din/PKGBUILD b/pcr/din/PKGBUILD index 77013fc5c..bf57f3bcc 100644 --- a/pcr/din/PKGBUILD +++ b/pcr/din/PKGBUILD @@ -1,38 +1,66 @@ -# Maintainer: Guest One <theguestone at gmail dot com> +# Maintainer (AUR): muzhed <chustokes@126.com> + +# parabola changes and rationale: +# - added missing depends: glu pkgname=din -pkgver=5.2.1 +pkgver=29 pkgrel=1 -pkgdesc="A software musical instrument and audio synthesizer using Bezier curves to draw waveforms." -arch=('i686') +pkgdesc="A sound synthesizer and musical instrument." +arch=("i686" "x86_64" "armv7h") url="http://dinisnoise.org/" -license=('GPL3') -depends=('fftw' 'jack' 'liblo' 'libgl' 'libircclient' 'tcl') -makedepends=('mesa') -install="$pkgname.install" -source=("http://din.googlecode.com/files/$pkgname-$pkgver.tar.gz") -md5sums=('d5a9c375b58e7652004bfcc1e3e17f88') - -build() { - cd "$srcdir/$pkgname-$pkgver" - - # remove previously generated checkdotdin - rm data/checkdotdin +license=('GPL2') +depends=('jack' 'libgl' 'sdl' 'tcl' 'glu') +makedepends=('boost') +install=$pkgname.install +source=("https://archive.org/download/dinisnoise_source_code/$pkgname-$pkgver.tar.gz" + din.png + din.desktop) +md5sums=('a55e6eb3f1e112150481ad75894b3ea4' + '50ca4dc107eaa0d5b6a1efe21c469bd7' + 'e38840354b0f197079e6bbeda03c8613') - # colourized echo in m00 script - sed -i "s|echo|& -e|" data/m00 - # tcl 8.6 fix - sed -i "s/tcl8\.5/tcl8\.6/g" `grep -rl "tcl8\.5"` +build() { + cd "$srcdir"/"$pkgname-$pkgver" - ./configure --prefix=/usr \ - --datarootdir=/usr/share + autoreconf -fvi + # use alsa instead of jack + # ./configure CXXFLAGS="-O3 -D__UNIX_ALSA__" CFLAGS=-O3 + ./configure CXXFLAGS="-O3 -D__UNIX_JACK__" CFLAGS=-O3 make } package() { - cd "$srcdir/$pkgname-$pkgver" - make DESTDIR="$pkgdir/" install -} + cd "$srcdir"/"$pkgname-$pkgver" + install -Dm755 src/din "$pkgdir/usr/lib/din/din" + cp -r "src/factory" "$pkgdir/usr/lib/din" + ln -s "/usr/lib/din/factory" "$pkgdir/usr/lib/din/user" + + # install exec script + mkdir -p "$pkgdir/usr/bin" + cat > "$pkgdir/usr/bin/din" <<EOF +#!/bin/sh -# vim:set ts=2 sw=2 et: +DIN_HOME_DIR="\${HOME}/.config/din" +DIN_INSTALL_DIR="/usr/lib/din" + +mkdir -p "\${DIN_HOME_DIR}" + +# copy files so that user could save settings +cp -rn "\${DIN_INSTALL_DIR}/factory" "\${DIN_HOME_DIR}" +cp -rn "\${DIN_INSTALL_DIR}/din" "\${DIN_HOME_DIR}" + +cd "\${DIN_HOME_DIR}" +exec ./din "\$@" +EOF + chmod +x "$pkgdir/usr/bin/din" + + # install license + install -Dm644 COPYING "$pkgdir/usr/share/licenses/din/LICENSE" + + # install icon and desktop file + cd "$srcdir" + install -Dm644 $pkgname.png "$pkgdir/usr/share/pixmaps/$pkgname.png" + install -Dm644 $pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop" +} diff --git a/pcr/din/din.desktop b/pcr/din/din.desktop new file mode 100644 index 000000000..b39f142c9 --- /dev/null +++ b/pcr/din/din.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=DIN Is Noise +GenericName=DIN Is Noise +Comment=An sound synthesizer and musical instrument +Exec=din +Icon=din +StartupNotify=true +Terminal=false +Type=Application +Categories=Application;AudioVideo;Audio;Midi;Music; diff --git a/pcr/din/din.install b/pcr/din/din.install index 810ee4bfd..a8b6891b8 100644 --- a/pcr/din/din.install +++ b/pcr/din/din.install @@ -1,12 +1,10 @@ post_install() { - echo ">>> If you get any trouble, remeber to clean your ~/.din folder" - update-desktop-database -q + echo + echo " If you are upgrading, please remove your HOME/.config/din folder manually so that it can be updated" + echo } - post_upgrade() { - post_install -} - -post_remove() { - post_install + echo + echo " If you are upgrading, please remove your HOME/.config/din folder manually so that it can be updated" + echo } diff --git a/pcr/din/din.png b/pcr/din/din.png Binary files differnew file mode 100644 index 000000000..532aaf914 --- /dev/null +++ b/pcr/din/din.png |