Skip to content
Snippets Groups Projects
Commit d0954689 authored by Carlo Landmeter's avatar Carlo Landmeter
Browse files

main/transmission: small fixes/cleanups and enable utp

parent 254f3770
No related branches found
No related tags found
No related merge requests found
# Maintainer:Carlo Landmeter
pkgname=transmission
pkgver=2.75
pkgrel=0
pkgrel=1
pkgdesc="Lightweight GTK BitTorrent client"
url="http://www.tansmissionbt.com"
install="transmission-daemon.pre-install transmission-daemon.post-upgrade"
......@@ -36,26 +36,36 @@ build() {
cd "$_builddir"
./configure --prefix=/usr \
--mandir=/usr/share/man
make || return 1
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--enable-utp \
--with-inotify \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install
make DESTDIR="$pkgdir" install || return 1
}
daemon() {
pkgdesc="Lightweight BitTorrent client (daemon and webinterface)"
install -d "$subpkgdir"/usr/share "$subpkgdir"/usr/bin
install -d -o transmission -g transmission "$subpkgdir"/var/lib/transmission
mv "$pkgdir"/usr/bin/transmission-daemon "$subpkgdir"/usr/bin/
mv "$pkgdir"/usr/share/transmission "$subpkgdir"/usr/share/
install -d "$subpkgdir"/usr/share \
"$subpkgdir"/usr/bin || return 1
install -d -o transmission -g transmission \
"$subpkgdir"/var/lib/transmission \
"$subpkgdir"/var/log/transmission || return 1
mv "$pkgdir"/usr/bin/transmission-daemon \
"$subpkgdir"/usr/bin/ || return 1
mv "$pkgdir"/usr/share/transmission \
"$subpkgdir"/usr/share/ || return 1
install -D -m755 "$srcdir"/transmission-daemon.initd \
"$subpkgdir"/etc/init.d/transmission-daemon
"$subpkgdir"/etc/init.d/transmission-daemon || return 1
install -D -m644 "$srcdir"/transmission-daemon.confd \
"$subpkgdir"/etc/conf.d/transmission-daemon
"$subpkgdir"/etc/conf.d/transmission-daemon || return 1
}
cli() {
......@@ -66,7 +76,7 @@ cli() {
"$pkgdir"/usr/bin/transmission-edit \
"$pkgdir"/usr/bin/transmission-show \
"$pkgdir"/usr/bin/transmission-remote \
"$subpkgdir"/usr/bin/
"$subpkgdir"/usr/bin/ || return 1
}
md5sums="ae3a3e7532560c16324e6c8a6386ad22 transmission-2.75.tar.bz2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment