arch-pkgs/rtorrent-systemd/PKGBUILD

39 lines
1.6 KiB
Text
Raw Permalink Normal View History

# Maintainer: George Rawlinson <george@rawlinson.net.nz>
pkgname=rtorrent-systemd
_pkgname=rtorrent
pkgver=0.2
pkgrel=1
pkgdesc="systemd integration for rtorrent"
arch=('any')
url="https://git.little.kiwi/grawlinson/arch-pkgs"
license=('GPL')
depends=(rtorrent bash mediainfo unrar unzip sox ffmpeg) # explicit deps after bash
source=(
"$_pkgname.conf"
'cleanlock'
'tmpfiles.conf'
'sysusers.conf'
'systemd.service'
)
b2sums=('9284e1616a0d3c2a1c06195f8db162c9ef0b19a22d8c9cdc4b2a784b242975ab6df6f87f1f28c7e8462fe9b1b88151002daf238502ca54c747066aa5831176ea'
'e4d4040cbf72c83abc68ad0ca3888c04a435034913346d72ebb9db2c7868fd137f1161fd0f2516aa8e9283c53f9d172bbaf3268c91ed35945483fec19256f0f9'
'bfb998985ba22350bbabf93cabfae8ea6594ccd9516e0f558d6e1698835f63841644e6dbd9c1a7efe8e2bb762cb2da6aaed3fcd4ed905465dd613003289fecc0'
'9c5abfe2383c1e95e7566b835dc27a59c1f25a5318d4652d5eac722ea7b689d342b3a8fcccde1b60bf01c763fd2859f0e8b23ccf3f3f8477df4614e5fb682121'
'6bc6643e0ec942a07848b249aecf76b815dfa2da67acc95741483d47e05b4e9b80546a2324911e60b3dc9a0d30a8ecc1708974450de2eb30351b354525b05639')
backup=("etc/$_pkgname/$_pkgname.conf")
options=('emptydirs')
package() {
# binaries
install -vDm755 -t "$pkgdir/usr/lib/$_pkgname" cleanlock
# configuration
install -vDm644 -t "$pkgdir/etc/rtorrent" "$_pkgname.conf"
# systemd integration
install -vDm644 systemd.service "$pkgdir/usr/lib/systemd/system/$_pkgname.service"
install -vDm644 tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/$_pkgname.conf"
install -vDm644 sysusers.conf "$pkgdir/usr/lib/sysusers.d/$_pkgname.conf"
}