summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e55f2ee7a97e1c9969f6959e8e8905611b019485 (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
# Maintainer: Nichlas Severinsen <ns@nsz.no>
pkgname=tusd-bin
_gitname='tusd'
provides=('tusd')
conflicts=('tusd')
pkgver=0.13.3
pkgrel=1
pkgdesc='Server implementation of tus in Go'
arch=('x86_64')
_archname='amd64'
license=('MIT')
url='https://tus.io'
install=tusd.install

source=(
  "tusd.service"
  "https://github.com/tus/${_gitname}/releases/download/${pkgver}/${_gitname}_linux_${_archname}.tar.gz"
  "https://raw.githubusercontent.com/tus/tusd/master/LICENSE.txt"
)

sha256sums=(
  'a83378b969ef0f4ca7eba194704c4a53650a7015201cc9148003d4d1a9a0d671'
  '7260ba23fd6a2d56fa6ead59c361dfcc1b80a23820ace49043cb997c6b99e6ce'
  '6ffc8271ebdc9f41112f385e7a80ca0c5167650883c90c4727848f5dc291fb5c'
)

package() {
  install -Dm755 "${srcdir}/${_gitname}_linux_${_archname}/${_gitname}" "${pkgdir}/usr/bin/${_gitname}"
  install -Dm644 "${srcdir}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${_gitname}/LICENSE"
  install -Dm644 "${srcdir}/tusd.service" "${pkgdir}/usr/lib/systemd/system/tusd.service"
}