aboutsummaryrefslogtreecommitdiffstats
path: root/community/rutorrent/APKBUILD
blob: 6729557edd72daeb1a6089b84067c84959ca5563 (plain) (blame)
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
# Contributor: Francesco Colis_ta <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=rutorrent
pkgver=3.7
pkgrel=2
pkgdesc="Yet another web front-end for rTorrent"
url="http://code.google.com/p/rutorrent/"
arch="noarch"
license="GPL"
depends="php5 curl"
# 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.zip"
builddir="$srcdir"/ruTorrent-master

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="8ef91254d5bbf45da3e1d1962b6fe8e7  ruTorrent-3.7.zip"
sha256sums="c1fb86317231c8e8fa9e1a7dea450ce4687d94caad22d763bc68d90c56d0749f  ruTorrent-3.7.zip"
sha512sums="b8e1173e39f90c21903f3f5cc39377fb7a874bd2023130f4ffba6927ed85583c7934709eea130b1871f217f873c888fc42d53a0f9bb3ee4397f01b3aff850660  ruTorrent-3.7.zip"