Created
May 19, 2016 23:04
-
-
Save nbrownus/851ef1c86817bc100ddf27f38097f409 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
VERSION="1.3.6" | |
BUILD="slack1" | |
set -e -x | |
DIRNAME="$(cd "$(dirname "$0")" && pwd)" | |
OLDESTPWD="$PWD" | |
cd "$(mktemp -d)" | |
trap "rm -rf \"$PWD\"" EXIT INT QUIT TERM | |
curl -LO "https://github.com/sleinen/samplicator/releases/download/v$VERSION/samplicator-${VERSION}.tar.gz" | |
tar -xvf "samplicator-${VERSION}.tar.gz" | |
cd "samplicator-${VERSION}" | |
./configure | |
make | |
mkdir -p "$PWD/rootfs/usr/bin" | |
mv "$PWD/samplicate" "$PWD/rootfs/usr/bin" | |
fakeroot fpm -C "$PWD/rootfs" \ | |
-m "Nate Brown <[email protected]>" \ | |
-n "samplicator" -v "$VERSION-$BUILD" \ | |
-p "$OLDESTPWD/samplicator_${VERSION}-${BUILD}_amd64.deb" \ | |
-s "dir" -t "deb" \ | |
"usr" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment