summaryrefslogtreecommitdiffstats
path: root/utils/micro/Makefile
blob: 3fbe2cfd8157aa22597bbe8d888ee270f467d824 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# SPDX-License-Identifier: GPL-2.0-only

include $(TOPDIR)/rules.mk

PKG_NAME:=micro
PKG_VERSION:=2.0.15
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/zyedidia/micro/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=612c775321c268c8f9e1767505ff378bca9b9ab66f5c41b69ecb2464ecf15084

PKG_MAINTAINER:=Gregory Gullin <garuwex@gmail.com>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE LICENSE-THIRD-PARTY

PKG_BUILD_DEPENDS:=golang/host
PKG_BUILD_PARALLEL:=1
PKG_BUILD_FLAGS:=no-mips16

GO_PKG:=github.com/zyedidia/micro/v2
GO_PKG_LDFLAGS_X:=$(GO_PKG)/internal/util.Version=$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk
include ../../lang/golang/golang-package.mk

define Package/micro
  SECTION:=utils
  CATEGORY:=Utilities
  SUBMENU:=Editors
  TITLE:=Modern and intuitive terminal-based text editor
  URL:=https://micro-editor.github.io/
  DEPENDS:=$(GO_ARCH_DEPENDS)
endef

define Package/micro/description
  micro is a terminal-based text editor that aims to be easy to use and intuitive,
  while also taking advantage of the capabilities of modern terminals.
  It comes as a single, batteries-included, static binary with no dependencies;
  you can download and use it right now!
endef

define Package/micro/conffiles
/root/.config/micro/
endef

$(eval $(call GoBinPackage,micro))
$(eval $(call BuildPackage,micro))