Browse Source

xap/zynaddsubfx: Add banks numbers.

slackware-14.2
Damien Goutte-Gattat 10 years ago
parent
commit
fe75c55378
  1. 13
      xap/zynaddsubfx/zynaddsubfx.SlackBuild

13
xap/zynaddsubfx/zynaddsubfx.SlackBuild

@ -36,7 +36,7 @@ WGET=${WGET:-http://downloads.sourceforge.net/zynaddsubfx/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-zynaddsubfx}
BUILD=${BUILD:-3GGD}
BUILD=${BUILD:-4GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -109,6 +109,17 @@ find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
mkdir -p $PKG/usr/share/zynaddsubfx
cp -r ../banks ../examples $PKG/usr/share/zynaddsubfx/
# Add bank numbers
(
cd $PKG/usr/share/zynaddsubfx/banks
rmdir default_bank
i=0
find . -type d | sed '1d;s,^\./,,' | sort | while read bank ; do
i=$(($i+1))
mv "$bank" "$(printf %04d $i)-$bank"
done
)
# Install the documentation
mkdir -p $PKG/usr/doc
mv $PKG/usr/share/doc/zynaddsubfx $PKG/usr/doc/$NAMEPKG-$VERSION

Loading…
Cancel
Save