Browse Source

asciinema: Update from 1.2 to 1.3

android-5
Fredrik Fornwall 8 years ago
parent
commit
fd8dee4f1b
  1. 14
      packages/asciinema/Makefile.patch
  2. 21
      packages/asciinema/build.sh
  3. 12
      packages/asciinema/commands-rec.go.patch
  4. 12
      packages/asciinema/util-cfg.go.patch
  5. 16
      packages/asciinema/ztypes_arm64.go.patch

14
packages/asciinema/Makefile.patch

@ -1,14 +0,0 @@
diff -u -r ../asciinema-1.2.0/Makefile ./Makefile
--- ../asciinema-1.2.0/Makefile 2016-02-22 06:00:31.000000000 -0500
+++ ./Makefile 2016-03-07 18:42:26.516807994 -0500
@@ -13,8 +13,8 @@
all: build
-build: test
- go build -o bin/asciinema
+build:
+ go build -o bin/asciinema -ldflags "-extldflags=-pie"
test:
go test ./...

21
packages/asciinema/build.sh

@ -1,23 +1,22 @@
TERMUX_PKG_HOMEPAGE=https://asciinema.org/ TERMUX_PKG_HOMEPAGE=https://asciinema.org/
TERMUX_PKG_DESCRIPTION="Record and share your terminal sessions, the right way" TERMUX_PKG_DESCRIPTION="Record and share your terminal sessions, the right way"
TERMUX_PKG_VERSION=1.2.0 TERMUX_PKG_VERSION=1.3.0
# ncurses-utils for tput which asciinema uses:
TERMUX_PKG_DEPENDS="python, ncurses-utils"
TERMUX_PKG_SRCURL=https://github.com/asciinema/asciinema/archive/v${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SRCURL=https://github.com/asciinema/asciinema/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_FOLDERNAME=asciinema-${TERMUX_PKG_VERSION} TERMUX_PKG_FOLDERNAME=asciinema-${TERMUX_PKG_VERSION}
TERMUX_PKG_BUILD_IN_SRC=yes TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_PLATFORM_INDEPENDENT=yes
termux_step_make () { termux_step_make () {
termux_setup_golang return
export GOPATH=$TERMUX_PKG_TMPDIR
cd $GOPATH
mkdir -p src/github.com/asciinema/asciinema/
cp -Rf $TERMUX_PKG_SRCDIR/* src/github.com/asciinema/asciinema/
} }
termux_step_make_install () { termux_step_make_install () {
cd $GOPATH/src/github.com/asciinema/asciinema export PYTHONPATH=$TERMUX_PREFIX/lib/python3.5/site-packages/
PREFIX=$TERMUX_PREFIX make build python3.5 setup.py install --prefix=$TERMUX_PREFIX --force
PREFIX=$TERMUX_PREFIX make install }
mkdir -p $TERMUX_PREFIX/share/man/man1/ termux_step_post_massage () {
cp $TERMUX_PKG_SRCDIR/man/asciinema.1 $TERMUX_PREFIX/share/man/man1/ find . -path '*/__pycache__*' -delete
} }

12
packages/asciinema/commands-rec.go.patch

@ -1,12 +0,0 @@
diff -u -r ../asciinema-1.1.1/commands/rec.go ./commands/rec.go
--- ../asciinema-1.1.1/commands/rec.go 2015-06-21 17:58:14.000000000 +0200
+++ ./commands/rec.go 2015-08-20 01:45:49.000000000 +0200
@@ -69,7 +69,7 @@
}
func tmpPath() (string, error) {
- file, err := ioutil.TempFile("", "asciicast-")
+ file, err := ioutil.TempFile("@TERMUX_PREFIX@/tmp", "asciicast-")
if err != nil {
return "", err
}

12
packages/asciinema/util-cfg.go.patch

@ -1,12 +0,0 @@
diff -u -r ../asciinema-1.1.1/util/cfg.go ./util/cfg.go
--- ../asciinema-1.1.1/util/cfg.go 2015-06-21 17:58:14.000000000 +0200
+++ ./util/cfg.go 2015-08-20 01:47:50.000000000 +0200
@@ -13,7 +13,7 @@
const (
DefaultAPIURL = "https://asciinema.org"
- DefaultCommand = "/bin/sh"
+ DefaultCommand = "@TERMUX_PREFIX@/bin/bash"
)
type ConfigAPI struct {

16
packages/asciinema/ztypes_arm64.go.patch

@ -1,16 +0,0 @@
diff -N -u -r ../asciinema-1.1.1/Godeps/_workspace/src/github.com/kr/pty/ztypes_arm64.go ./Godeps/_workspace/src/github.com/kr/pty/ztypes_arm64.go
--- ../asciinema-1.1.1/Godeps/_workspace/src/github.com/kr/pty/ztypes_arm64.go 1969-12-31 19:00:00.000000000 -0500
+++ ./Godeps/_workspace/src/github.com/kr/pty/ztypes_arm64.go 2015-12-20 17:45:50.332987015 -0500
@@ -0,0 +1,12 @@
+// From upstream pty package - https://github.com/kr/pty/blob/master/ztypes_arm64.go
+// Created by cgo -godefs - DO NOT EDIT
+// cgo -godefs types.go
+
+// +build arm64
+
+package pty
+
+type (
+ _C_int int32
+ _C_uint uint32
+)
Loading…
Cancel
Save