aboutsummaryrefslogtreecommitdiffstats
path: root/community/asciinema/APKBUILD
blob: 9ee12c2bc42632bc3d85601ed4bae0b88acb8737 (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.2.0
pkgrel=0
pkgdesc="A Command line recorder for asciinema.org service"
url="https://github.com/asciinema/asciinema/"
arch="all !aarch64"
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="f61680ca17328ed43b61a24b1c267e29  asciinema-1.2.0.tar.gz"
sha256sums="64b8c2b034945a99398c5593fd8831c6448fd3b6dd788a979582805bfdcb5746  asciinema-1.2.0.tar.gz"
sha512sums="b172fa2c122ce6d4191d898292f70b462f18c9436a7a95b56a3d4405f66a4003d52877b5d632a829f94704f7d8a07c1202f1d3059e1eec6b583b63daf90a9006  asciinema-1.2.0.tar.gz"