summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 18cee7bcbae8923f9869ea8adb768f3f2bfc51e3 (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=133t
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=('67a499a1523fd0974c9ba695df76cafb109908d7f5117fd7b46c3e4afbc4fb66e8577d40897498064d9121e5e01b4d82ea0d07e71cf01fb7c308a103c643c4d7')
b2sums_armv7h=('d6d1a46245b0acf391a4b86989cd36436cbaabe8b8eeb028e3b2ffbc7b93af5facdaa018e197442867eac5689246def3dafccb1fa199d2eb75d697233dab8c91')
b2sums_aarch64=('b07940fc4cb8bd1f10e5226975aa9fcd62603a84fea5dd6ea0dcf6cd72459c394c40a92b5e5f44b3c9d4bc5f442deb233189971c8510b1d402b0c3b1473984bc')
b2sums_i686=('d6556781e1bc381156151c71b38b10eb5824ad9fd8a1771ee4f01c6250419449902ba8a302eb10b579b2e28248d939e956955912a7c5d5ce9879ad8bdebcbe73')

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