summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dd64f71e73380c6395491d657e04a7912c823e6a (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
39
40
41
# Maintainer:  sudokode <sudokode@gmail.com>
# Contributor: Marcin Kulik <m@kulik.com>

name=asciinema
pkgname=asciinema-git
pkgver=1.0.0.r8.g365b36c
pkgrel=2
pkgdesc="Record and share your terminal sessions, the right way"
arch=('any')
url="https://github.com/sickill/$name"
license=('MIT')
makedepends=('git' 'gcc-go')
conflicts=("$name")
source=("$pkgname::git+https://github.com/sickill/${name}.git")
sha256sums=('SKIP')

pkgver() {
  cd $pkgname

  git describe --long | sed 's/^v//; s/\([^-]*-g\)/r\1/; s/-/./g'
}

prepare() {
  cd $pkgname

  GOPATH="$srcdir" go get -v -d
}

build() {
  cd $pkgname

  GOPATH="$srcdir" make build
}

package() {
  cd $pkgname

  make DESTDIR="$pkgdir" install
}

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