summaryrefslogtreecommitdiffstats
path: root/testing/rutorrent/APKBUILD
blob: 7310d60e9d5d4f93ee13a0fd055e66a4a0e5df78 (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=rutorrent
pkgver=3.5
pkgrel=1
pkgdesc="Yet another web front-end for rTorrent"
url="http://code.google.com/p/rutorrent/"
arch="noarch"
license="GPL"
depends="php curl"
depends_dev=""
makedepends=""
pkggroups="rutorrent"
install="$pkgname.pre-install $pkgname.post-install"
subpackages=""
source="http://rutorrent.googlecode.com/files/$pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname

build() {
        cd "$_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="210cbabe0ead88c865c654bab2109e92  rutorrent-3.5.tar.gz"