# Contributor: Francesco Colis_ta # Maintainer: Francesco Colista pkgname=rutorrent _pkgname=ruTorrent pkgver=4.1.7 pkgrel=0 pkgdesc="Yet another web front-end for rTorrent" url="https://github.com/Novik/ruTorrent" arch="noarch" license="GPL" depends="php81 curl" options="!check" # no test available # 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" source="$pkgname-$pkgver.tar.gz::https://github.com/Novik/$_pkgname/archive/v$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { chmod -R u+w "$builddir" } package() { install -d $pkgdir/usr/share/webapps/$pkgname install -d $pkgdir/var/www/localhost/htdocs/ cp -r * $pkgdir/usr/share/webapps/$pkgname rm -fr $pkgdir/usr/share/webapps/$pkgname/tests 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 } sha512sums=" 05d357f8948655dd1ac54ad56e10852fe8ae1b0458d3ef9d979944a9fa4d4e8f4084f2b77f78c02ceb1e48e644ab4dea06ed15989741b88e632373e57df67e5c rutorrent-4.1.7.tar.gz "