Package Details: micro-git 2.0.12.r8.g1231d242-1

Git Clone URL: https://aur.archlinux.org/micro-git.git (read-only, click to copy)
Package Base: micro-git
Description: A modern and intuitive terminal-based text editor
Upstream URL: https://micro-editor.github.io/
Keywords: micro text-editor
Licenses: MIT
Conflicts: micro, micro-bin, micro-nightly-bin
Provides: micro
Submitter: sukso96100
Maintainer: Levitating
Last Packager: Levitating
Votes: 17
Popularity: 0.000000
First Submitted: 2016-04-27 11:14 (UTC)
Last Updated: 2023-09-19 08:55 (UTC)

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

kseistrup commented on 2020-01-22 10:59 (UTC)

There is something wrong: No matter how many times I install this package, yay wants to build a new package because it thinks the installed packge is older:

1  aur/micro-git  v2.0.0.rc2.1dc1c655-1 -> v2.0.0.rc2.97ee3442-1

v2.0.0.rc2.1dc1c655-1 is what pkgver() produces.

Levitating commented on 2020-01-16 01:10 (UTC) (edited on 2020-01-16 01:10 (UTC) by Levitating)

conflicts=('micro-bin' 'micro' 'micro-nightly-bin') provides=('micro')

You should add these lines to reduce conflict with all the other micro packages.

tommyshem commented on 2020-01-06 03:18 (UTC) (edited on 2020-01-06 03:25 (UTC) by tommyshem)

Please try below - small chances removed symlinks and make install add tr from below comment from kseistrup changed path to suit

# Maintainer: Jake <aur@ja-ke.tech>
# Contributor: Youngbin Han <sukso96100@gmail.com>
# Contributor: Andrew Kluger <evilgnome@gmail.com>
pkgname=micro-git
pkgver=v2.0.0.rc2.f2a1e233
pkgrel=1
pkgdesc="A modern and intuitive terminal-based text editor"
arch=('x86_64' 'i686' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/zyedidia/micro"
license=('MIT')
makedepends=('go' 'git')
optdepends=('xclip: Required for copying/pasting text')
conflicts=("micro")
source=("${pkgname}"::"git+https://github.com/zyedidia/micro.git")
md5sums=(SKIP)

pkgver() {
    cd "${srcdir}/${pkgname}"
    echo "$(git tag | sort -V | tail -1).$(git rev-parse --short HEAD)" | tr '-' '.'
}

build(){
 cd "${srcdir}/${pkgname}"
 export GOBIN="$GOPATH/bin"
 make
}

package(){
 install -Dm755 $srcdir/$pkgname/micro "$pkgdir/usr/bin/micro"
 install -Dm644 $srcdir/$pkgname/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

kseistrup commented on 2019-12-27 08:33 (UTC)

The hyphen is not the only problem:

If I add a “tr '-' '.'” to the pkgver() function, then makepkg doesn't complain about the package version, but it will fail during build():

==> Starting pkgver()...
==> Updated version: micro-git v2.0.0.rc1.b1efabaa-1
==> Starting build()...
ln: failed to create symbolic link 'src/github.com/zyedidia/micro': No such file or directory
==> ERROR: A failure occurred in build().
    Aborting...

MarcusE1W commented on 2019-12-26 12:19 (UTC)

Currently the new 2.0 release candidate cannot be installed. I am not sure though if it is the naming convention of the release candidate with a '-'. Could get automatically resolved once the final 2.0 release gets published.

WAAAGH.313ph4n7 commented on 2019-03-15 18:50 (UTC) (edited on 2019-03-19 23:03 (UTC) by WAAAGH.313ph4n7)

Edit: Nevermind, I reinstalled the system for a completely different reason and now it works perfectly.

I am getting the following error on Raspberry Pi 3 (aarch64):

go build -ldflags "-s -w -X main.Version=1.4.2-61 -X main.CommitHash=2c219ba -X 'main.CompileDate=March 15, 2019' " ./cmd/micro

_/home/pi/.cache/yay/micro-git/src/micro-git/cmd/micro

<autogenerated>:1: illegal combination: 00560 (/home/pi/.cache/yay/micro-git/src/micro-git/cmd/micro/terminal.go:125) TSTW $1689262177517664, R3 make: *** [Makefile:15: build] Error 2

Any idea what that is about?

Jake commented on 2019-03-03 13:00 (UTC)

Thanks MarcusE1W and ReDemoNBR! I have added the ARM archs now.

MarcusE1W commented on 2019-02-20 15:30 (UTC)

Hi.

I have successfully build micro for the aarch64 (ARM) architecture on a Pinebook without any changes. So you probably could add aarch64 to the supported architectures.

Thanks for the package.

ReDemoNBR commented on 2017-12-15 00:47 (UTC)

I tested and it is correctly building and working for arch 'armv7h' and 'armv6h'. You can add them if you want to.

Jake commented on 2017-09-09 17:07 (UTC)

I have fixed the build errors with symlinks in these paths, hope this works for everyone.