summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 679f925ac4f55c9432f062f38e5b10d41ba53cbb (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
35
36
37
38
# Maintainer: Victor Hermann Chiletto <victor dot vasconceloschiletto at gmail dot com>

pkgname=livestreamer-gtkmm3-git
pkgver=r22.65f50cc
pkgrel=1
pkgdesc="A GTKMM3 UI for streamlink"
arch=('i686' 'x86_64')
url="https://github.com/vitorhnn/livestreamer-gtkmm3"
license=('MIT') 
depends=('gtkmm3' 'desktop-file-utils' 'streamlink')
makedepends=('git' 'cmake')
provides=('livestreamer-gtkmm3')
conflicts=('livestreamer-gtkmm3')
source=('git+https://github.com/vitorhnn/livestreamer-gtkmm3#branch=master')
md5sums=('SKIP')

pkgver() {
  cd "livestreamer-gtkmm3"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "livestreamer-gtkmm3"
  mkdir -p "build"
  cd "build"

  cmake -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_BUILD_TYPE=Release ..
  make
}

package() {
  cd "livestreamer-gtkmm3/build"
  make DESTDIR="$pkgdir" install

  install -Dm644 "../LICENSE" "${pkgdir}/usr/share/licenses/livestreamer-gtkmm3/LICENSE"
}

# vim:set ts=2 sw=2 et: