Skip to content

Commit

Permalink
Added SlackBuild for Transmission BT
Browse files Browse the repository at this point in the history
  • Loading branch information
erikkugel committed Nov 22, 2018
1 parent 4c2b6d8 commit b5c5e00
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
11 changes: 11 additions & 0 deletions transmission/slack-desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
transmission: transmission
transmission:
transmission: Transmission is a fast, easy, and free BitTorrent client.
transmission:
transmission:
transmission:
transmission:
transmission:
transmission:
transmission:
transmission: (https://transmissionbt.com/)
28 changes: 28 additions & 0 deletions transmission/transmission.SlackBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/sh -e

PRGNAM='transmission'
VERSION='2.94'
TAG='1_x'
APP_URL="https://github.com/transmission/transmission/archive/${VERSION}.tar.gz -O ${PRGNAM}-${VERSION}.tar.gz"
BUILD_DIR="/tmp/SlackBuild-${PRGNAM}-$(date +%s)"

# Download
mkdir -v -p ${BUILD_DIR}/install ${BUILD_DIR}/src
if ! [ -f ${PRGNAM}-${VERSION}.tar.gz ]; then
wget ${APP_URL}
fi
tar -v -x -z -C ${BUILD_DIR}/src -f ./${PRGNAM}-${VERSION}.tar.gz
cp -v -f ./slack-desc ${BUILD_DIR}/install/slack-desc

# Build
cd ${BUILD_DIR}/src/${PRGNAM}-${VERSION}
./autogen.sh && ./configure --with-crypto=openssl --prefix=/usr --libdir=/lib64
DESTDIR=${BUILD_DIR} make install

cd ${BUILD_DIR}
rm -v -r -f ${BUILD_DIR}/src

# Create package
/sbin/makepkg -l y -c n /tmp/${PRGNAM}-${VERSION}-$(uname -m)-${TAG}.txz

rm -v -r -f ${BUILD_DIR}

0 comments on commit b5c5e00

Please sign in to comment.