Package Details: amp 0.6.2-1

Git Clone URL: https://aur.archlinux.org/amp.git (read-only, click to copy)
Package Base: amp
Description: A modal text editor for the terminal.
Upstream URL: https://github.com/jmacdonald/amp
Keywords: editor text
Licenses: GPL3
Submitter: jmacdonald
Maintainer: jmacdonald
Last Packager: jmacdonald
Votes: 11
Popularity: 0.008921
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>
pkgname=amp
pkgver=0.7.0
pkgrel=1
pkgdesc='A modal text editor for the terminal.'
arch=('x86_64')
url='https://github.com/jmacdonald/amp'
license=('GPL3')
depends=('libxcb')
makedepends=('rust' 'git' 'cmake' 'libxcb' 'python')
source=("https://github.com/jmacdonald/$pkgname/archive/$pkgver.tar.gz")
sha512sums=('de2eb6738090b228752c7f0e353bb9cdcf58ab1c1cb8d6d2734c1a2542c8edf5da4e71e91a4bb091d945f1fdd4b54a8c134045a3f03ed024a986a2d8d87f4e26')

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/result.rs:1165:5
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:

https://github.com/nsf/termbox/issues/117

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" "https://github.com/nsf/termbox" ".termbox"
waf configure: setting CFLAGS to: `-m64 -fPIC`
running: "./waf" "configure" "--prefix=/"
Traceback (most recent call last):
  File "/home/andrewvos/.cargo/registry/src/github.com-1ecc6299db9ec823/termbox-sys-0.2.11/.termbox/.waf3-1.8.0-5c05be2d0e42d5c2c81403948a2d295b/waflib/Node.py", line 285, in ant_iter
    raise StopIteration
StopIteration

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

Traceback (most recent call last):
  File "/home/andrewvos/.cargo/registry/src/github.com-1ecc6299db9ec823/termbox-sys-0.2.11/.termbox/.waf3-1.8.0-5c05be2d0e42d5c2c81403948a2d295b/waflib/Scripting.py", line 98, in waf_entry_point
    run_commands()
  File "/home/andrewvos/.cargo/registry/src/github.com-1ecc6299db9ec823/termbox-sys-0.2.11/.termbox/.waf3-1.8.0-5c05be2d0e42d5c2c81403948a2d295b/waflib/Scripting.py", line 155, in run_commands
    parse_options()
  File "/home/andrewvos/.cargo/registry/src/github.com-1ecc6299db9ec823/termbox-sys-0.2.11/.termbox/.waf3-1.8.0-5c05be2d0e42d5c2c81403948a2d295b/waflib/Scripting.py", line 128, in parse_options
    Context.create_context('options').execute()
  File "/home/andrewvos/.cargo/registry/src/github.com-1ecc6299db9ec823/termbox-sys-0.2.11/.termbox/.waf3-1.8.0-5c05be2d0e42d5c2c81403948a2d295b/waflib/Options.py", line 138, in execute
    super(OptionsContext,self).execute()
  File "/home/andrewvos/.cargo/registry/src/github.com-1ecc6299db9ec823/termbox-sys-0.2.11/.termbox/.waf3-1.8.0-5c05be2d0e42d5c2c81403948a2d295b/waflib/Context.py", line 92, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File "/home/andrewvos/.cargo/registry/src/github.com-1ecc6299db9ec823/termbox-sys-0.2.11/.termbox/.waf3-1.8.0-5c05be2d0e42d5c2c81403948a2d295b/waflib/Context.py", line 133, in recurse
    user_function(self)
  File "/home/andrewvos/.cargo/registry/src/github.com-1ecc6299db9ec823/termbox-sys-0.2.11/.termbox/wscript", line 11, in options
    opt.load('compiler_c')
  File "/home/andrewvos/.cargo/registry/src/github.com-1ecc6299db9ec823/termbox-sys-0.2.11/.termbox/.waf3-1.8.0-5c05be2d0e42d5c2c81403948a2d295b/waflib/Context.py", line 89, in load
    fun(self)
  File "/home/andrewvos/.cargo/registry/src/github.com-1ecc6299db9ec823/termbox-sys-0.2.11/.termbox/.waf3-1.8.0-5c05be2d0e42d5c2c81403948a2d295b/waflib/Tools/compiler_c.py", line 36, in options
    opt.load_special_tools('c_*.py',ban=['c_dumbpreproc.py'])
  File "/home/andrewvos/.cargo/registry/src/github.com-1ecc6299db9ec823/termbox-sys-0.2.11/.termbox/.waf3-1.8.0-5c05be2d0e42d5c2c81403948a2d295b/waflib/Context.py", line 296, in load_special_tools
    lst=self.root.find_node(waf_dir).find_node('waflib/extras').ant_glob(var)
  File "/home/andrewvos/.cargo/registry/src/github.com-1ecc6299db9ec823/termbox-sys-0.2.11/.termbox/.waf3-1.8.0-5c05be2d0e42d5c2c81403948a2d295b/waflib/Node.py", 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/github.com-1ecc6299db9ec823/termbox-sys-0.2.11/.termbox/.waf3-1.8.0-5c05be2d0e42d5c2c81403948a2d295b/waflib/Node.py", 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/github.com-1ecc6299db9ec823/termbox-sys-0.2.11/build.rs:88:5
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().
    Aborting...
warning: could not open directory 'pkg/': Permission denied