blob: 3458366c815d651dbf59c0db03140992c49193e7 (
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
43
44
45
46
47
48
49
|
# Maintainer: txtsd <aur.archlinux@ihavea.quest>
pkgname=bitmagnet-bin
_pkgname=${pkgname/-bin}
pkgver=0.9.5
pkgrel=1
pkgdesc='A self-hosted BitTorrent indexer, DHT crawler, content classifier and torrent search engine with web UI, GraphQL API and Servarr stack integration.'
arch=('x86_64' 'aarch64' 'armv7h')
url='https://bitmagnet.io'
license=('MIT')
depends=('glibc')
makedepends=('go')
checkdepends=()
optdepends=(
'postgresql: database'
'redis: cache'
'prometheus: metrics'
'loki: logs'
'grafana: dashboards'
'pyroscope: profiling')
backup=('etc/bitmagnet/config.yml')
provides=(${_pkgname})
conflicts=(${_pkgname})
options=('!debug')
source=(
"https://github.com/bitmagnet-io/bitmagnet/releases/download/v${pkgver}/${_pkgname}_${pkgver}_linux_x86_64.tar.gz"
'config.yml'
'bitmagnet.service'
'bitmagnet.sysusers'
'bitmagnet.tmpfiles'
)
sha256sums=('93d1dc503c92ed53d1eb7c18ae0b53f6d8c5c42e5d4440a62b01887395aa123d'
'20f4a744e7b5f8549a66713bee5fcb65fcee58647370b2107adbc0f0bfc000c9'
'64f010000e230da3d3245d2eec2c31df6e3f70c7eaae3e490357ff1145a440c9'
'9eab02f76a22e3ff627bd6f7fe609480ced67c076f079e985a34d41d13fe8f08'
'0972b20f948b5e685c659dfefa7a4e200f75fa12dfe9d4779ef3ad5c8ffdca86')
package() {
cd ${srcdir}
install -Dm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 "licenses/LICENSE_anacrolix" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE_anacrolix"
install -Dm644 "config.yml" "${pkgdir}/etc/bitmagnet/config.yml"
install -Dm644 "bitmagnet.service" "${pkgdir}/usr/lib/systemd/system/bitmagnet.service"
install -Dm644 "bitmagnet.sysusers" "${pkgdir}/usr/lib/sysusers.d/bitmagnet.conf"
install -Dm644 "bitmagnet.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/bitmagnet.conf"
}
|