blob: 153f64ea22cd874fefbe4632c5b668072d942e63 (
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
# Maintainer:Carlo Landmeter
pkgname=transmission
pkgver=2.84
pkgrel=1
pkgdesc="Lightweight GTK BitTorrent client"
url="http://www.tansmissionbt.com"
install="transmission-daemon.pre-install transmission-daemon.post-upgrade"
arch="all"
license="MIT"
depends=
pkgusers="transmission"
pkggroups="transmission"
makedepends="openssl-dev curl-dev gtk+3.0-dev intltool libevent-dev
libnotify-dev dbus-glib-dev autoconf automake tar gconf-dev"
source="http://download.m0k.org/transmission/files/transmission-$pkgver.tar.xz
uclibc-quota.patch
musl-fix-includes.patch
transmission-daemon.initd
transmission-daemon.confd
"
subpackages="$pkgname-cli $pkgname-daemon $pkgname-doc $pkgname-lang"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch)
msg "Applying $i"
patch -p1 -i "$srcdir"/$i || return 1
;;
esac
done
}
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 \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
daemon() {
pkgdesc="Lightweight BitTorrent client (daemon and webinterface)"
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 || return 1
install -D -m644 "$srcdir"/transmission-daemon.confd \
"$subpkgdir"/etc/conf.d/transmission-daemon || return 1
}
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/ || return 1
}
md5sums="411aec1c418c14f6765710d89743ae42 transmission-2.84.tar.xz
c3b19aca8d871526b13e5ed856ca5ec2 uclibc-quota.patch
c82db96ef007babdc70b54652eec09be musl-fix-includes.patch
33aad5f659b532262fc38c908b6b3dd2 transmission-daemon.initd
5caf0fc25dfd67c61627f1e0313f4245 transmission-daemon.confd"
sha256sums="a9fc1936b4ee414acc732ada04e84339d6755cd0d097bcbd11ba2cfc540db9eb transmission-2.84.tar.xz
7e0b47664e26646acc078f0b826420481d0e8d72e74d2285a2015558fa42ee9a uclibc-quota.patch
ad5dd85c077fe2e389142a8210d3322c486892a0952fee650f92d76c1b698283 musl-fix-includes.patch
61b7bbba865e902400940f945de8df7cdafcc496573eb855491ebda47f837e23 transmission-daemon.initd
4b47acf195a14a322550cfcaa735a59aac38410d1c2c63ffa824ff131c55ca70 transmission-daemon.confd"
sha512sums="d6c2b17e7f8180a41ac70f5b503dfdb0353c6419db25df1b393b18c987c56fda9e2fd4c3f4cda7f08c301877bd0b4711842c28121ceaaaae87f5792cc6c29a3d transmission-2.84.tar.xz
becbfcf9ed80c4794b8eef23c508eaed9cb650b775d49bf7f0216f14d34644bd5f728624ff491465952adea4bcecb22aee42726649220d7791aa57eb0a19ad9d uclibc-quota.patch
4ded1ceb44ab973470ad568248658969268869036b18c9aa5c1122557e789dcd5123016633e983fffd00f879d8effd5e2810e0c2b99ae1d8b0eabe7cad2f4459 musl-fix-includes.patch
d31275fba7eb322510f9667e66a186d626889a6e3143be2923aae87b9c35c5cf0c508639f1cb8c1b88b1e465bc082d80bb1101385ebde736a34d4eeeae0f6e15 transmission-daemon.initd
a3b9ac2b7bbe30e33060c8b6a693dc7072d3c6ac44f92ddd567969d8f57a0bfc1a561e781ae167703ccb4b2fd5b0e6d8f8a66c5ba14fe01d8d89a501d4501474 transmission-daemon.confd"
|