builder b4f7172
#!/bin/sh
builder b4f7172
builder b4f7172
# Regenerate nicotine+ tarball without nonfree sound themes (licensed under CC
22aab0a
# Sampling Plus 1.0)
builder b4f7172
builder b4f7172
VERSION=$1
3c5f0f0
SHORT_VERSION=$VERSION
3c5f0f0
[[ "$VERSION" =~ [a-z0-9]{7,} ]] && SHORT_VERSION=${VERSION:0:7}
builder b4f7172
3c5f0f0
SRC_TARBALL=nicotine+-$SHORT_VERSION.tar.gz
3c5f0f0
DEST_TARBALL=nicotine+-$SHORT_VERSION-without-nonfree-sounds.tar.gz
3c5f0f0
3c5f0f0
curl -L -R -O https://github.com/Nicotine-plus/nicotine-plus/archive/$VERSION/$SRC_TARBALL
3c5f0f0
gunzip <$SRC_TARBALL | tar --delete nicotine-plus-$VERSION/sounds | gzip >$DEST_TARBALL
3c5f0f0
rm $SRC_TARBALL