-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
28 lines (21 loc) · 917 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
# Bash strict mode
set -euo pipefail
export DEBIAN_FRONTEND=noninteractive
# install build dependencies and cleanup apt cache
apt-get update
apt-get install --no-install-recommends --quiet curl git-core ca-certificates wget build-essential autopoint debhelper dh-autoreconf gcc libavutil-dev libavcodec-dev libavformat-dev libjpeg-dev libsqlite3-dev libexif-dev libid3tag0-dev libogg-dev libvorbis-dev libflac-dev -y
rm -rf /var/lib/apt/lists/*
# Download source and untar
cd /tmp
wget https://sourceforge.net/projects/minidlna/files/latest/download?source=files -O minidlna.tar.gz
tar -xvf minidlna*.tar.gz
# Apply patch, compile and install
# TODO: Apply patch
cd minidlna-*
git apply /tmp/*.patch
./configure && make && make install
# Cleanup
apt-get purge wget git-core build-essential ca-certificates autopoint debhelper dh-autoreconf gcc -y
apt-get autoremove -y
rm -rf /tmp/minidlna*