summaryrefslogtreecommitdiffstats
path: root/testing/rutorrent/APKBUILD
blob: 8f69bc2af5da77fcbf58bf43c08ad5bc76d8c6fd (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=rutorrent
pkgver=3.6
pkgrel=0
pkgdesc="Yet another web front-end for rTorrent"
url="http://code.google.com/p/rutorrent/"
arch="noarch"
license="GPL"
depends="php curl"
depends_dev=""

# we need to user gnu tar since the permissions on files in tar archive are
# bad
makedepends="tar"

pkggroups="rutorrent"
install="$pkgname.pre-install $pkgname.post-install"
subpackages=""
source="http://dl.bintray.com/novik65/generic/rutorrent-$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname


build() {
        cd "$_builddir"
	chmod -R u+w "$_builddir"
}

package() {
        cd "$_builddir"
        install -d $pkgdir/usr/share/webapps/$pkgname
        install -d $pkgdir/var/www/localhost/htdocs/
        cp -r * $pkgdir/usr/share/webapps/$pkgname
	chgrp -R rutorrent $pkgdir/usr/share/webapps/$pkgname/share
        chmod 0775 $pkgdir/usr/share/webapps/$pkgname/share/settings
        chmod 0775 $pkgdir/usr/share/webapps/$pkgname/share/torrents
        chmod 0775 $pkgdir/usr/share/webapps/$pkgname/share/users
}

md5sums="e5a908b9473be73007b614f4a72fc1d3  rutorrent-3.6.tar.gz"
sha256sums="cd2fb3c4e2799f232bf0844b54ce2065d34a927a15b7ae14746714ce79d829f5  rutorrent-3.6.tar.gz"
sha512sums="a3686c77ced2a76f0656bee776f6536d8967cebb130a87987b7be40b4183fb3cb9598ded230831a54e213a3f87a2a2a8829fb6a329bd9fe8a3f520d5f34dcd3b  rutorrent-3.6.tar.gz"