blob: 0ec63b2dc2d0eb5d6e3fb955511052b59f02fd17 (
plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=transmission
pkgver=2.94
pkgrel=1
pkgdesc="Lightweight GTK BitTorrent client"
url="http://www.transmissionbt.com"
install="transmission-daemon.pre-install transmission-daemon.post-upgrade"
arch="all"
license="GPL-2.0-or-later MIT"
depends=""
pkgusers="transmission"
pkggroups="transmission"
makedepends="autoconf automake bsd-compat-headers curl-dev dbus-glib-dev
gconf-dev gtk+3.0-dev intltool libevent-dev libnotify-dev openssl-dev tar"
source="https://github.com/transmission/$pkgname-releases/raw/master/$pkgname-$pkgver.tar.xz
transmission-daemon.initd
transmission-daemon.confd
"
subpackages="$pkgname-cli $pkgname-daemon $pkgname-doc $pkgname-lang"
options="!checkroot"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--enable-utp \
--with-inotify \
--enable-cli
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
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 \
"$subpkgdir"/var/log/transmission
mv "$pkgdir"/usr/bin/transmission-daemon \
"$subpkgdir"/usr/bin/
mv "$pkgdir"/usr/share/transmission \
"$subpkgdir"/usr/share/
install -D -m755 "$srcdir"/transmission-daemon.initd \
"$subpkgdir"/etc/init.d/transmission-daemon
install -D -m644 "$srcdir"/transmission-daemon.confd \
"$subpkgdir"/etc/conf.d/transmission-daemon
}
cli() {
pkgdesc="Lightweight BitTorrent client (cli and remote)"
install -d "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/transmission-cli \
"$pkgdir"/usr/bin/transmission-create \
"$pkgdir"/usr/bin/transmission-edit \
"$pkgdir"/usr/bin/transmission-show \
"$pkgdir"/usr/bin/transmission-remote \
"$subpkgdir"/usr/bin/
}
sha512sums="ee411743940f2897aa0bbc351ce79f11d860075d2e9e399d60301eae8cfc453e20426ef553fc62ee43019a07c052d512f5d7972cc4411fb57b1312c2c1558da7 transmission-2.94.tar.xz
d31275fba7eb322510f9667e66a186d626889a6e3143be2923aae87b9c35c5cf0c508639f1cb8c1b88b1e465bc082d80bb1101385ebde736a34d4eeeae0f6e15 transmission-daemon.initd
a3b9ac2b7bbe30e33060c8b6a693dc7072d3c6ac44f92ddd567969d8f57a0bfc1a561e781ae167703ccb4b2fd5b0e6d8f8a66c5ba14fe01d8d89a501d4501474 transmission-daemon.confd"
|