aboutsummaryrefslogtreecommitdiff
path: root/utils/tinyionice/Makefile
blob: cb8282416a9ac20925fea03332d21324bd44ffc7 (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
#
# Copyright (C) 2022 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=tinyionice
PKG_VERSION:=1.0.1
PKG_RELEASE:=$(AUTORELEASE)

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/xyproto/tinyionice/tar.gz/v${PKG_VERSION}?
PKG_HASH:=2b5d61cd1a153060ed96bb5e6585c16d1f7a0828a13ee7a9049b49fc09885440

PKG_MAINTAINER:=Michal Vasilek <michal.vasilek@nic.cz>
PKG_LICENSE:=GPL-2.0-only
PKG_LICENSE_FILES:=COPYING

PKG_INSTALL:=1

include $(INCLUDE_DIR)/package.mk

define Package/tinyionice
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=Independent fork of ionice from util-linux
  URL:=https://github.com/xyproto/tinyionice
endef

define Package/tinyionice/Default/description
  Independent fork of ionice from util-linux
endef

define Package/tinyionice/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
endef

$(eval $(call BuildPackage,tinyionice))