diff -Nru golang-github-atotto-clipboard-0.0~git20180322.5e2c7bd/clipboard_unix.go golang-github-atotto-clipboard-0.1.1/clipboard_unix.go --- golang-github-atotto-clipboard-0.0~git20180322.5e2c7bd/clipboard_unix.go 2018-06-14 21:18:23.000000000 +0000 +++ golang-github-atotto-clipboard-0.1.1/clipboard_unix.go 2018-10-14 12:31:23.000000000 +0000 @@ -12,8 +12,10 @@ ) const ( - xsel = "xsel" - xclip = "xclip" + xsel = "xsel" + xclip = "xclip" + termuxClipboardGet = "termux-clipboard-get" + termuxClipboardSet = "termux-clipboard-set" ) var ( @@ -28,7 +30,10 @@ xclipPasteArgs = []string{xclip, "-out", "-selection", "clipboard"} xclipCopyArgs = []string{xclip, "-in", "-selection", "clipboard"} - missingCommands = errors.New("No clipboard utilities available. Please install xsel or xclip.") + termuxPasteArgs = []string{termuxClipboardGet} + termuxCopyArgs = []string{termuxClipboardSet} + + missingCommands = errors.New("No clipboard utilities available. Please install xsel, xclip, or Termux:API add-on for termux-clipboard-get/set.") ) func init() { @@ -46,6 +51,15 @@ return } + pasteCmdArgs = termuxPasteArgs + copyCmdArgs = termuxCopyArgs + + if _, err := exec.LookPath(termuxClipboardSet); err == nil { + if _, err := exec.LookPath(termuxClipboardGet); err == nil { + return + } + } + Unsupported = true } diff -Nru golang-github-atotto-clipboard-0.0~git20180322.5e2c7bd/debian/changelog golang-github-atotto-clipboard-0.1.1/debian/changelog --- golang-github-atotto-clipboard-0.0~git20180322.5e2c7bd/debian/changelog 2018-06-15 02:21:31.000000000 +0000 +++ golang-github-atotto-clipboard-0.1.1/debian/changelog 2018-12-20 17:19:42.000000000 +0000 @@ -1,3 +1,12 @@ +golang-github-atotto-clipboard (0.1.1-1) unstable; urgency=medium + + * New upstream version 0.1.1 + * Update Maintainer address in debian/control + * Bump Standards-Version to 4.2.1 (no change) + * Install go.mod + + -- Anthony Fok Thu, 20 Dec 2018 10:19:42 -0700 + golang-github-atotto-clipboard (0.0~git20180322.5e2c7bd-1) unstable; urgency=medium * Initial release (Closes: #901573) diff -Nru golang-github-atotto-clipboard-0.0~git20180322.5e2c7bd/debian/control golang-github-atotto-clipboard-0.1.1/debian/control --- golang-github-atotto-clipboard-0.0~git20180322.5e2c7bd/debian/control 2018-06-15 01:32:46.000000000 +0000 +++ golang-github-atotto-clipboard-0.1.1/debian/control 2018-12-20 17:19:02.000000000 +0000 @@ -1,12 +1,12 @@ Source: golang-github-atotto-clipboard Section: devel Priority: optional -Maintainer: Debian Go Packaging Team +Maintainer: Debian Go Packaging Team Uploaders: Anthony Fok Build-Depends: debhelper (>= 11), dh-golang, golang-any -Standards-Version: 4.1.4 +Standards-Version: 4.2.1 Homepage: https://github.com/atotto/clipboard Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-atotto-clipboard Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-atotto-clipboard.git diff -Nru golang-github-atotto-clipboard-0.0~git20180322.5e2c7bd/debian/gitlab-ci.yml golang-github-atotto-clipboard-0.1.1/debian/gitlab-ci.yml --- golang-github-atotto-clipboard-0.0~git20180322.5e2c7bd/debian/gitlab-ci.yml 1970-01-01 00:00:00.000000000 +0000 +++ golang-github-atotto-clipboard-0.1.1/debian/gitlab-ci.yml 2018-12-20 17:14:14.000000000 +0000 @@ -0,0 +1,28 @@ + +# auto-generated, DO NOT MODIFY. +# The authoritative copy of this file lives at: +# https://salsa.debian.org/go-team/ci/blob/master/cmd/ci/gitlabciyml.go + +# TODO: publish under debian-go-team/ci +image: stapelberg/ci2 + +test_the_archive: + artifacts: + paths: + - before-applying-commit.json + - after-applying-commit.json + script: + # Create an overlay to discard writes to /srv/gopath/src after the build: + - "rm -rf /cache/overlay/{upper,work}" + - "mkdir -p /cache/overlay/{upper,work}" + - "mount -t overlay overlay -o lowerdir=/srv/gopath/src,upperdir=/cache/overlay/upper,workdir=/cache/overlay/work /srv/gopath/src" + - "export GOPATH=/srv/gopath" + - "export GOCACHE=/cache/go" + # Build the world as-is: + - "ci-build -exemptions=/var/lib/ci-build/exemptions.json > before-applying-commit.json" + # Copy this package into the overlay: + - "GBP_CONF_FILES=:debian/gbp.conf gbp buildpackage --git-no-pristine-tar --git-ignore-branch --git-ignore-new --git-export-dir=/tmp/export --git-no-overlay --git-tarball-dir=/nonexistant --git-cleaner=/bin/true --git-builder='dpkg-buildpackage -S -d --no-sign'" + - "pgt-gopath -dsc /tmp/export/*.dsc" + # Rebuild the world: + - "ci-build -exemptions=/var/lib/ci-build/exemptions.json > after-applying-commit.json" + - "ci-diff before-applying-commit.json after-applying-commit.json" diff -Nru golang-github-atotto-clipboard-0.0~git20180322.5e2c7bd/debian/rules golang-github-atotto-clipboard-0.1.1/debian/rules --- golang-github-atotto-clipboard-0.0~git20180322.5e2c7bd/debian/rules 2018-06-15 02:21:27.000000000 +0000 +++ golang-github-atotto-clipboard-0.1.1/debian/rules 2018-12-20 17:19:15.000000000 +0000 @@ -1,6 +1,7 @@ #!/usr/bin/make -f export DH_GOLANG_EXCLUDES := cmd/ +export DH_GOLANG_INSTALL_EXTRA := go.mod %: dh $@ --buildsystem=golang --with=golang diff -Nru golang-github-atotto-clipboard-0.0~git20180322.5e2c7bd/go.mod golang-github-atotto-clipboard-0.1.1/go.mod --- golang-github-atotto-clipboard-0.0~git20180322.5e2c7bd/go.mod 1970-01-01 00:00:00.000000000 +0000 +++ golang-github-atotto-clipboard-0.1.1/go.mod 2018-10-14 12:31:23.000000000 +0000 @@ -0,0 +1 @@ +module github.com/atotto/clipboard