summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 826cd21e11680254a4aeccc7ae2d0106c24d3684 (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
# Maintainer: Gustavo Jasso <gustavo at jasso dot info>
_pkgname='reStream'
pkgname=$(echo "$_pkgname-git" | tr '[:upper:]' '[:lower:]')
pkgdesc="Shell script for sharing the reMarkable's screen over SSH."
pkgver=r45.220d387
pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
pkgrel=1
url="https://github.com/rien/reStream"
arch=('any')
license=('MIT')
depends=('openssh' 'ffmpeg')
optdepends=('lz4: sub-second latency streaming (see README)' 'v4l2loopback-dkms: stream reMarkable as a webcam')
source=("git+https://github.com/rien/reStream.git")
md5sums=('SKIP')
conflicts=('restream')
provides=('restream')

package() {
    install -Dm644 "$startdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    install -Dm644 "$srcdir/$_pkgname/README.md" "$pkgdir/usr/share/$pkgname/README.md"
    install -Dm644 "$srcdir/$_pkgname/extra/demo.gif" "$pkgdir/usr/share/$pkgname/extra/demo.gif"
    install -Dm755 $srcdir/$_pkgname/reStream.sh $pkgdir/usr/bin/restream
}