makedeb


micro-git 2.0.9.r20.g84a490f1-1


A modern and intuitive terminal-based text editor

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for micro-git.

# Maintainer: PWall <34860495+PWall2222@users.noreply.github.com>

pkgname=micro-git
pkgver=2.0.9.r20.g84a490f1
pkgrel=1
pkgdesc="A modern and intuitive terminal-based text editor"
arch=('x86_64' 'i686' 'armv6h' 'armv7h' 'aarch64')
url="https://micro-editor.github.io/"
license=('MIT')
makedepends=('golang' 'git')
optdepends=('xclip: Required for copying/pasting text')
conflicts=('micro-bin' 'micro' 'micro-nightly-bin')
provides=('micro')
source=("${pkgname}"::"git+https://github.com/zyedidia/micro.git")
md5sums=('SKIP')

pkgver() {
	cd "${srcdir}/${pkgname}"
	git describe --long --tags | sed 's/v//' | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build(){
	 cd "${srcdir}/${pkgname}"
	 make
}

package(){
	 install -Dm755 $srcdir/$pkgname/micro "$pkgdir/usr/bin/micro"
	 install -Dm644 $srcdir/$pkgname/assets/packaging/micro.1 "$pkgdir/usr/share/man/man1/micro.1"
	 install -Dm644 $srcdir/$pkgname/LICENSE "$pkgdir/usr/share/licenses/micro/LICENSE"
}