Compiling packages on debian it's quite easy and it's done in 4 stages: download source code, configure, make, install (optionally you can apply patches)
A - For Arm routers, setup Debian from here
B - For Mipsel routers, setup Debian from here
Compile Transmission Torrent Download Manager
1 - Enter chrooted debian with:
2 - Update Debian
apt-get upgrade
3 - Install necessary packages
3a - Fix checkinstall
4 - Download libevent v2.0.22 source code and compile
wget wget https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
tar xf libevent-2.0.22-stable.tar.gz
cd libevent-2.0.22-stable
./configure
make -j 2
5 - Run checkinstall, press enter, enter, type 2 and name it libevent, type 3 and give it version 2.0.22, now press enter again
The libevent package has been installed and saved to /var/tmp/libevent-2.0.22-stable/libevent_2.0.22-1_armel.deb, you can store it in another place for future use or share it with someone else.
6 - Download transmission v2.92 source code and compile
wget https://download.transmissionbt.com/files/transmission-2.92.tar.xz
tar xvf transmission-2.92.tar.xz
cd transmission-2.92
./configure --enable-lightweight
make -j 2
7 - Run checkinstall and press enter 3 times
The transmission package has been installed and saved to /var/tmp/transmission-2.92/transmission_2.92-1_armel.deb, you can store it in another place for future use or share it with someone else.
If you need a startup script and an optimized settings file, get point 7 & 9 from here
Compile Minidlna Upnp Media Server
1 - Enter chrooted debian with:
2 - Update Debian
apt-get upgrade
3 - Install necessary packages
libid3tag0-dev libFLAC-dev libvorbis-dev libsqlite3-dev libavformat-dev libffmpegthumbnailer-dev libjpeg-dev
3a - Fix checkinstall
4 - Download minidlna v1.1.5 source code and compile
wget -c -O minidlna-1.1.5.tar.gz https://sourceforge.net/projects/minidlna/files/minidlna/1.1.5/minidlna-1.1.5.tar.gz
tar xvf minidlna-1.1.5.tar.gz
cd minidlna-1.1.5
./autogen.sh
./configure
make -j 2
5 - Run checkinstall and press enter 3 times
The minidlna package has been installed and saved to /var/tmp/minidlna-1.1.5/minidlna_1.1.5-1_armel.deb, you can store it in another place for future use or share it with someone else.
If you need startup script and configuration file, use point 6 & 7 from here
Enjoy...