# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=asciinema pkgver=1.1.1 pkgrel=2 pkgdesc="A Command line recorder for asciinema.org service" url="https://github.com/asciinema/asciinema/" arch="all" license="GPLv3" depends="curl" depends_dev="" makedepends="go python" subpackages="$pkgname-doc" options="!strip" source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" export GOPATH="$_builddir" mkdir -p src/github.com/asciinema ln -s "$_builddir" src/github.com/asciinema/asciinema make build || return 1 } package() { cd "$_builddir" PREFIX="$pkgdir"/usr make install || return 1 } md5sums="109a695b729f76334a16b20a3d01cfc1 asciinema-1.1.1.tar.gz" sha256sums="841b3393a65a4f49a01354aed4e2da6c30822dc83bcd988ff100fabda7038055 asciinema-1.1.1.tar.gz" sha512sums="b67e3dadb50023a2de08cf52de9e97ed9939b2db887b2fe8dcaae7a24c47059613e581476d6b96628c1612de052f42421c5c9fe2d0ef83ea512727c2056ae0d4 asciinema-1.1.1.tar.gz"