summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cf34c31ccc32cdf71f66bc17c0f3df35b696fc09 (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: Michael Picht <michael dot picht at ussenterprise dot de>

pkgname=gool-git
_pkgname=gool
pkgver=1.0.2.r1.g05febea
pkgrel=1
pkgdesc='Go - Online TV Recorder on Linux'
arch=('x86_64' 'i686')
url="http://github.com/mipimipi/$_pkgname/"
license=('GPL3')
depends=('mkvtoolnix-cli')
makedepends=('go' 'git')
source=("git://github.com/mipimipi/$_pkgname.git")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "$_pkgname"
  export GOPATH=$(pwd)
  mkdir src
  ln -s -r vendor/github.com src/github.com
  ln -s -r vendor/golang.org src/golang.org
}

build() {
  cd "$_pkgname"
  export GOPATH=$(pwd)
  make VERSION=$pkgver
}

package() {
  cd "$_pkgname"
  make DESTDIR=$pkgdir install
}