X-Original-To: alpine-aports@lists.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from apollo.thewebhostserver.com (apollomail.thewebhostserver.com [46.23.65.248]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 486F3DC0C27 for ; Thu, 2 Apr 2015 21:53:47 +0000 (UTC) Received: from [81.4.121.188] (port=58068 helo=localhost.localdomain) by apollo.thewebhostserver.com with esmtpsa (TLSv1.2:AES128-SHA256:128) (Exim 4.85) (envelope-from ) id 1Ydn3X-001COd-Es; Thu, 02 Apr 2015 22:53:43 +0100 From: Stuart Cardall To: alpine-aports@lists.alpinelinux.org Cc: Stuart Cardall Subject: [alpine-aports] [PATCH] testing/asciinema: update to 1.0.0 Date: Thu, 2 Apr 2015 21:53:25 +0000 Message-Id: <1428011605-4251-1-git-send-email-developer@it-offshore.co.uk> X-Mailer: git-send-email 2.3.5 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - apollo.thewebhostserver.com X-AntiAbuse: Original Domain - lists.alpinelinux.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - it-offshore.co.uk X-Get-Message-Sender-Via: apollo.thewebhostserver.com: authenticated_id: developer@it-offshore.co.uk X-Source: X-Source-Args: X-Source-Dir: X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: 1.0 now builds with GO & adds a few more options: https://github.com/asciinema/asciinema/releases record / auth & upload tested, binary is 30% smaller than the release. --- testing/asciinema/APKBUILD | 31 +++++++++++++++++-------------- testing/asciinema/asciinema.post-install | 15 +++++++++++++++ 2 files changed, 32 insertions(+), 14 deletions(-) create mode 100644 testing/asciinema/asciinema.post-install diff --git a/testing/asciinema/APKBUILD b/testing/asciinema/APKBUILD index d215d5c..e16f62b 100644 --- a/testing/asciinema/APKBUILD +++ b/testing/asciinema/APKBUILD @@ -1,18 +1,18 @@ # Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=asciinema -pkgver=0.9.8 +pkgver=1.0.0 pkgrel=0 pkgdesc="A Command line recorder for asciinema.org service" -url="https://github.com/sickill/asciinema/" -arch="noarch" -license="MIT" -depends="python py-requests" +url="https://github.com/asciinema/asciinema/" +arch="all" +license="GPLv3" +depends="" depends_dev="" -makedepends="python-dev py-setuptools" -install="" -subpackages="" -source="http://pypi.python.org/packages/source/${pkgname:0:1}/$pkgname/$pkgname-$pkgver.tar.gz" +makedepends="go" +install="$pkgname.post-install" +subpackages="$pkgname-doc" +source="https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { @@ -27,14 +27,17 @@ prepare() { build() { cd "$_builddir" - python setup.py build || return 1 + export GOPATH="$_builddir" + mkdir -p src/github.com/asciinema + ln -s "$_builddir" src/github.com/asciinema/asciinema + make build || return 1 } package() { cd "$_builddir" - python setup.py install --prefix=/usr --root="$pkgdir" || return 1 + PREFIX="$pkgdir"/usr make install || return 1 } -md5sums="ae8662d033af0e973d5864a247117e7f asciinema-0.9.8.tar.gz" -sha256sums="f20bf96c5ec5f4faba7c4c91ce5b48696ce8160593a4897e8a87cc839214df1f asciinema-0.9.8.tar.gz" -sha512sums="2df8520dca6c3a61e0bb5987a723a9668423da088cbba91e79ed51f0000e242290477f7a23e409270e29d5792e8a88e38d3c33963b835ce8dd9fc0cd24e2b7b4 asciinema-0.9.8.tar.gz" +md5sums="82d08c97d8e15a9f7c9a114af8553356 v1.0.0.tar.gz" +sha256sums="5082606ba901e9912de91f94aabc968153fd0580209f295e00a852b8e6e456e8 v1.0.0.tar.gz" +sha512sums="83e46e90ff240a8a870f3854697b264e79c2079fae899790fa03724142680c27701abc4bfb7ec5c530776fa034846900c24d718100f1afba62cee6f334f1e479 v1.0.0.tar.gz" diff --git a/testing/asciinema/asciinema.post-install b/testing/asciinema/asciinema.post-install new file mode 100644 index 0000000..f933ba9 --- /dev/null +++ b/testing/asciinema/asciinema.post-install @@ -0,0 +1,15 @@ +#!/bin/sh + +NORMAL="\033[1;0m" +STRONG="\033[1;1m" +GREEN="\033[1;32m" + +print_start() { + local prompt="${STRONG}${GREEN}$1 ${NORMAL}${STRONG}$2 ${STRONG}${GREEN}$3 ${NORMAL}" + printf "${prompt} %s" +} + +print_start "\nAdd" "'export LANG="en_US.UTF-8"'" "to /etc/profile or ~/.profile for asciinema to work.\n\n" + +exit 0 + -- 2.3.5 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---