Merge pull request #16194 from miska/snort3-master
[feed/packages.git] / utils / spi-tools / Makefile
1 #
2 # Copyright (C) 2014-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=spi-tools
11 PKG_VERSION:=1.0.0
12 PKG_RELEASE:=$(AUTORELEASE)
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://codeload.github.com/cpb-/spi-tools/tar.gz/$(PKG_VERSION)?
16 PKG_HASH:=5eb24670461dcf2c58471114dc69b5204dab1c0cc5053878f6de79503bd8cc9f
17
18 PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
19 PKG_LICENSE:=GPL-2.0-only
20 PKG_LICENSE_FILES:=LICENSE
21
22 PKG_FIXUP:=autoreconf
23 PKG_INSTALL:=1
24 PKG_BUILD_PARALLEL:=1
25 PKG_ASLR_PIE:=0
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/spi-tools
30 SECTION:=utils
31 CATEGORY:=Utilities
32 TITLE:=Command line SPI tools
33 URL:=https://github.com/cpb-/spi-tools
34 endef
35
36 define Package/spi-tools/install
37 $(INSTALL_DIR) $(1)/usr/bin
38 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/spi-config $(1)/usr/bin
39 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/spi-pipe $(1)/usr/bin
40 endef
41
42 $(eval $(call BuildPackage,spi-tools))