summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 376dfae344d1b4e9ad602a85607c4f10c9e4b9cc (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
# Maintainer:  Dimitris Kiziridis <ragouel at outlook dot com>

pkgname=slingr-git
pkgver=r44.bf1de3d
pkgrel=1
pkgdesc='A simple CLI for UPnP media file streaming'
arch=('i686' 'x86_64')
url='https://github.com/yuvadm/slingr'
license=('GPL3')
provides=('slingr')
depends=('gcc-libs')
makedepends=('cargo')
source=("slingr::git+${url}")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/slingr"
  echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

build() {
  cd slingr
  cargo build --release
}

package() {
  cd slingr
  install -Dm755 target/release/slingr -t "$pkgdir"/usr/bin
}