aboutsummaryrefslogtreecommitdiffstats
path: root/testing/asciinema/APKBUILD
blob: f5e423b29a4d38d49b9c119110852507cc3ec7a5 (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
42
43
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
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"