summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 91f0207359f9d79bef08217fa2de45a09b0d9c65 (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
# Maintainer: Roman Vishnevsky <aka [dot] x0x01 [at] gmail [dot] com>

pkgname=torrserver-bin
pkgver=120
pkgrel=3
pkgdesc="Torrent to http. Streams media torrent files as media streams without fully downloading"
arch=('x86_64' 'armv7h' 'aarch64' 'i686')
url="https://github.com/YouROK/TorrServer"
license=("GPL3")
provides=("torrserver")
conflicts=("torrserver")
depends=("glibc")
install=torrserver.install
source=("https://raw.githubusercontent.com/YouROK/TorrServer/master/torrserver.service" "systemd.patch")
source_x86_64=("$pkgname-$pkgver-x86_64::https://github.com/YouROK/TorrServer/releases/download/MatriX.$pkgver/TorrServer-linux-amd64")
source_armv7h=("$pkgname-$pkgver-armv7h::https://github.com/YouROK/TorrServer/releases/download/MatriX.$pkgver/TorrServer-linux-arm7")
source_aarch64=("$pkgname-$pkgver-aarch64::https://github.com/YouROK/TorrServer/releases/download/MatriX.$pkgver/TorrServer-linux-arm64")
source_i686=("$pkgname-$pkgver-i686::https://github.com/YouROK/TorrServer/releases/download/MatriX.$pkgver/TorrServer-linux-386")
b2sums=('7b2dbfd1486e3abbe6977f5229746943ed4dbb588100d8bc768068574a3a3d2a01915a54e57a9203445fc4e3e72f09b562894d4164a854bc6dc56cab4764d4ad'
        '20d847419c499b2286abe6d12113443446feff6aa6c2dac5e60d4c1bbfb0845d682761bde2880eacb2f9b29c12f3213ef6f9f3ae7e141586bd8483da00b9f440')
b2sums_x86_64=('b34b34275c60359cd16c1052e6cb074df6dccdd474e06a13670a85b58d3c35b06ff6b903b2baeed1817c650ffaa44c18dbf061946609f3fb7132c3c00ba15152')
b2sums_armv7h=('46c777eb09b44a46af23fc6ac3f07db90175eb223ecd2a4c44d8658846959b32a367c3511edcc24b07ded3ad094f5e0cd78d4b27443dbecc637f6ca49c396f89')
b2sums_aarch64=('81067eb847712f46d6a1b70ed1a631dcbddb577731e3d51e0eeb5fec835140577b362b410032a5dc08e6b82dbd0f76083318e36d4122a9b149ce199a8d5e017a')
b2sums_i686=('577155772e208f89580b38c92b619e72e882596e836d64d21e175f0c9f978efde04b2ab85309ff9535d0d20abe7e2fcb040d6420ec7a4660dabb90c4b8d05404')

prepare() {
    patch -uN --follow-symlinks torrserver.service --input="${srcdir}/systemd.patch"
}

package() {
    install -Dm644 "${srcdir}/torrserver.service" "${pkgdir}/usr/lib/systemd/system/torrserver.service"
    install -Dm755 "${srcdir}"/$pkgname-$pkgver* "${pkgdir}/usr/bin/torrserver"
	install -d "${pkgdir}/var/lib/torrserver"
}