Package Details: micro-git nightly.r91.g00205aa6-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://github.com/zyedidia/micro
Keywords: micro text-editor
Licenses: MIT
Conflicts: micro, micro-bin, micro-nightly-bin
Provides: micro
Submitter: sukso96100
Maintainer: Jake (LevitatingRein)
Last Packager: Jake
Votes: 16
Popularity: 0.67
First Submitted: 2016-04-27 11:14
Last Updated: 2020-02-10 12:08

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

1 2 3 Next › Last »

kseistrup commented on 2020-02-10 16:04

Thanks!

Jake commented on 2020-02-10 12:18

@kseistrup: Yes, it picked up the short commit hash as version number. Should be fixed now, at least it works with yay.

kseistrup commented on 2020-02-10 10:54

The version thing is still wrong: current AUR repos is v2.0.0.rc3.63046ae9-1 and current git version tuirns out as v2.0.0.rc3.00205aa6-1, so any package manager will assume that the package needs an update no matter how many time you install it.

The pkgver function needs to make a monotonously increasing version string. At the moment it doesn't because the next to last component is a random hex string in the interval 00000000-ffffffff.

Mel commented on 2020-01-22 13:56

Same for aurutils:

==> Using [loonix] repository
  -> micro-git: v2.0.0.rc2.1dc1c655-1 -> v2.0.0.rc2.97ee3442-1
==> Retrieving package files
From https://aur.archlinux.org/micro-git
 = [up to date]      master     -> origin/master
==> WARNING: skipping built package (use -f to overwrite)
/var/cache/pacman/loonix/micro-git-v2.0.0.rc2.1dc1c655-1-x86_64.pkg.tar

kseistrup commented on 2020-01-22 10:59

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.

LevitatingRein commented on 2020-01-16 01:10

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

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

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

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

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?