summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0eb96b6aad7ee7619efb6a65d2473e6a9766ea2e (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=132
pkgrel=1
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=('0b445c28ba2a6ceb55aaf0024e3eca2b11e71aac9d653dc43b7190b4de477e7093a3212b5c4ec3e97d66a5b94a61d75e1a8270d1ccda603b1d6208a0d8c3945a')
b2sums_armv7h=('47b826f0a95376dc5e608918a9e7e0dfa579ca5d96068e137ddf5e3eb95a782653995607b7ef9b0676662e6866522616e0678886835be588e8b5c0bebcfa9c60')
b2sums_aarch64=('62ad3442794e150b72dbf792b4253595ce826bc71adfe17a1bea0d22ce7825e15c078ad75b5a7b4bda9bdbc2d8d16af8666dbdd0954c1594e35552d1bdc9c579')
b2sums_i686=('fbf701587b3c758f6a6b0a129ba0b5f0d1c89f0a387f0507229de0d21e3fa554c926055a7931f6c00aa53bdaacd9a5d82925363264c632b6eae807df6c6fa157')

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"
}