summaryrefslogtreecommitdiff
path: root/shellrc/Makefile
blob: d13cd065fa08975c0573c2b686caee6ff71c920d (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
49
50
#
## Copyright (C) 2018-2019 Karel Kočí
#
## This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
# #
#
include $(TOPDIR)/rules.mk

PKG_NAME:=shellrc
PKG_RELEASE:=2
PKG_SOURCE_URL:=https://git.cynerd.cz/shellrc
PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>

include $(INCLUDE_DIR)/autopkg-tag.mk
include $(INCLUDE_DIR)/package.mk

define Package/$(PKG_NAME)
	TITLE:=Shell initialization files
endef

define Package/$(PKG_NAME)-bash
	TITLE:=Shell initialization files bash specific
	DEPENDS:=+$(PKG_NAME) +bash
endef

define Package/$(PKG_NAME)-zsh
	TITLE:=Shell initialization files zsh specific
	DEPENDS:=+$(PKG_NAME) +zsh
endef

Build/Compile:=:

define Package/$(PKG_NAME)/install
	$(PKG_BUILD_DIR)/install --prefix "$(1)"
	$(INSTALL_DIR) $(1)/etc/profile.d
	$(INSTALL_DATA) ./files/profile.prompt.sh $(1)/etc/profile.d/prompt.sh
endef

define Package/$(PKG_NAME)-bash/install
	$(PKG_BUILD_DIR)/install --prefix "$(1)" --bash --no-base
endef

define Package/$(PKG_NAME)-zsh/install
	$(PKG_BUILD_DIR)/install --prefix "$(1)" --zsh --no-base
endef

$(eval $(call BuildPackage,$(PKG_NAME)))
$(eval $(call BuildPackage,$(PKG_NAME)-bash))
$(eval $(call BuildPackage,$(PKG_NAME)-zsh))