Package Details: amp 0.6.2-1

Git Clone URL: (read-only, click to copy)
Package Base: amp
Description: A modal text editor for the terminal.
Upstream URL:
Keywords: editor text
Licenses: GPL3
Submitter: jmacdonald
Maintainer: jmacdonald
Last Packager: jmacdonald
Votes: 11
Popularity: 0.073919
First Submitted: 2018-01-02 05:40 (UTC)
Last Updated: 2020-02-05 04:31 (UTC)

Dependencies (6)

Required by (0)

Sources (1)

Latest Comments

murlakatamenka commented on 2024-05-02 18:54 (UTC)

PKGBUILD for 0.7.0:

# Maintainer: Jordan MacDonald <jordan(at)wastedintelligence(dot)com>
pkgdesc='A modal text editor for the terminal.'
makedepends=('rust' 'git' 'cmake' 'libxcb' 'python')

prepare() {
  cd "$pkgname-$pkgver"

  export RUSTUP_TOOLCHAIN=stable

  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"

build() {
  cd "$pkgname-$pkgver"

  export RUSTUP_TOOLCHAIN=stable
  export CARGO_TARGET_DIR=target

  cargo build --release --frozen

package() {
  cd "$pkgname-$pkgver"

  install -Dm755 "target/release/amp" "$pkgdir/usr/bin/amp"
  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"

thomaseizinger commented on 2021-08-02 03:56 (UTC)

The PKGBUILD assumes that the target directory is not overridden.

It is not compiling on my machine because I've got target-dir set to a global cache directory.

I suggest passing --target-dir to the build command.

jmacdonald commented on 2020-02-05 04:32 (UTC)

Done, thanks for the heads up matth!

matth commented on 2020-01-17 17:35 (UTC)

Look like python3 should be a make dependency.

error: failed to run custom build command for `xcb v0.8.2`

Caused by:
  process didn't exit successfully: `/build/amp/src/amp-0.6.1/target/release/build/xcb-20a75a21847d76cd/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Unable to find build dependency python3: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

armond commented on 2019-06-28 15:02 (UTC) (edited on 2019-07-02 18:14 (UTC) by armond)

Excellent editor. I noticed that 'yay -Syu' gives 'amp: local (0.5.2-2) is newer than AUR (0.5.2-1)'. Edit: fixed in 0.6.0. Thanks!

sylvite commented on 2018-11-23 06:14 (UTC) (edited on 2018-11-23 06:15 (UTC) by sylvite)

Yep, builds and installs fine now. I like the clever shim. Thanks.

jmacdonald commented on 2018-11-23 05:03 (UTC)

I've changed the package to use python2 as a build dependency, instead. I've also patched the build process to place a shim that'll explicitly point calls to python to the python2 executable instead, so having v3 installed doesn't break the build.

Let me know if that settles it on your end!

craftyguy commented on 2018-11-22 18:48 (UTC)

Seems like termbox uses an older version of waf, which does not support Python 3.7:

AndrewVos commented on 2018-11-22 12:09 (UTC) (edited on 2018-11-22 12:10 (UTC) by AndrewVos)

This isn't compiling for me:

error: failed to run custom build command for `termbox-sys v0.2.11`
process didn't exit successfully: `/home/andrewvos/code/amp/src/amp-0.5.2/target/release/build/termbox-sys-bcdd720db8177ea8/build-script-build` (exit code: 101)
--- stdout
running: "rm" "-rf" ".termbox"
running: "git" "clone" "" ".termbox"
waf configure: setting CFLAGS to: `-m64 -fPIC`
running: "./waf" "configure" "--prefix=/"
Traceback (most recent call last):
  File "/home/andrewvos/.cargo/registry/src/", line 285, in ant_iter
    raise StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/andrewvos/.cargo/registry/src/", line 98, in waf_entry_point
  File "/home/andrewvos/.cargo/registry/src/", line 155, in run_commands
  File "/home/andrewvos/.cargo/registry/src/", line 128, in parse_options
  File "/home/andrewvos/.cargo/registry/src/", line 138, in execute
  File "/home/andrewvos/.cargo/registry/src/", line 92, in execute
  File "/home/andrewvos/.cargo/registry/src/", line 133, in recurse
  File "/home/andrewvos/.cargo/registry/src/", line 11, in options
  File "/home/andrewvos/.cargo/registry/src/", line 89, in load
  File "/home/andrewvos/.cargo/registry/src/", line 36, in options
  File "/home/andrewvos/.cargo/registry/src/", line 296, in load_special_tools
  File "/home/andrewvos/.cargo/registry/src/", line 334, in ant_glob
    ret=[x for x in self.ant_iter(accept=accept,pats=[to_pat(incl),to_pat(excl)],maxdepth=kw.get('maxdepth',25),dir=dir,src=src,remove=kw.get('remove',True))]
  File "/home/andrewvos/.cargo/registry/src/", line 334, in <listcomp>
    ret=[x for x in self.ant_iter(accept=accept,pats=[to_pat(incl),to_pat(excl)],maxdepth=kw.get('maxdepth',25),dir=dir,src=src,remove=kw.get('remove',True))]
RuntimeError: generator raised StopIteration

--- stderr
Cloning into '.termbox'...
thread 'main' panicked at 'assertion failed: cmd.stdout(Stdio::inherit()).stderr(Stdio::inherit()).status().unwrap().success()', /home/andrewvos/.cargo/registry/src/
note: Run with `RUST_BACKTRACE=1` for a backtrace.

warning: build failed, waiting for other jobs to finish...
error: build failed
==> ERROR: A failure occurred in build().
warning: could not open directory 'pkg/': Permission denied