1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-22 07:19:21 +02:00

[new package] gawk, o3read, surfraw by Jirka

Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
This commit is contained in:
Xiangfu Liu 2010-06-21 23:39:07 +08:00
parent cb4bdc4b0c
commit 2dad1d3e83
3 changed files with 142 additions and 0 deletions

50
gawk/Makefile Normal file
View File

@ -0,0 +1,50 @@
# 2010-06-22 22:44 jirka $
include $(TOPDIR)/rules.mk
PKG_NAME:=gawk
PKG_VERSION:=3.1.8
PKG_RELEASE:=1
PKG_SOURCE:=gawk-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/gawk/
PKG_MD5SUM:=35937a0f83f0efe7a8c2dee635624784
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/gawk-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/gawk
SECTION:=utils
CATEGORY:=Utilities
TITLE:=GAWK
URL:=http://www.gnu.org/software/gawk/
endef
define Package/gawk/description
GNU version of AWK.
endef
define Build/Configure
$(call Build/Configure/Default, \
--prefix=/usr --with-linux-headers="$(LINUX_DIR)" \
)
endef
define Package/gawk/install
$(INSTALL_DIR) $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/gawk $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/gawk $(1)/usr/bin/gawk-3.1.8
$(INSTALL_BIN) $(PKG_BUILD_DIR)/awklib/igawk $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pgawk $(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/libexec/
$(INSTALL_DIR) $(1)/usr/libexec/awk/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/awklib/grcat $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/awklib/pwcat $(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/share/
$(INSTALL_DIR) $(1)/usr/share/awk/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/awklib/eg/lib/* $(1)/usr/share/awk
endef
$(eval $(call BuildPackage,gawk))

44
o3read/Makefile Normal file
View File

@ -0,0 +1,44 @@
# 2010-06-22 22:44 jirka $
include $(TOPDIR)/rules.mk
PKG_NAME:=o3read
PKG_VERSION:=0.0.4
PKG_RELEASE:=2
PKG_SOURCE:=o3read-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://siag.nu/pub/o3read/
PKG_MD5SUM:=583361b559ccf5a764edb586795d1b06
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/o3read-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/o3read
SECTION:=utils
CATEGORY:=Utilities
TITLE:=O3read
URL:=http://siag.nu/o3read/
endef
define Package/o3read/description
Converts OpenOffice.org Writer files to plain text.
endef
define Build/Configure
$(call Build/Configure/Default, \
--prefix=/usr --with-linux-headers="$(LINUX_DIR)" \
export READLINE=1 \
)
endef
define Package/o3read/install
$(INSTALL_DIR) $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/o3read $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/o3totxt $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/o3tohtml $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/utf8tolatin1 $(1)/usr/bin/
endef
$(eval $(call BuildPackage,o3read))

48
surfraw/Makefile Normal file
View File

@ -0,0 +1,48 @@
# $Id: Makefile 5624 2006-11-23 00:29:07Z nbd $
include $(TOPDIR)/rules.mk
PKG_NAME:=surfraw
PKG_VERSION:=2.2.7
PKG_RELEASE:=1
#http://surfraw.alioth.debian.org/dist/surfraw-2.2.7.tar.gz
PKG_SOURCE:=surfraw-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://surfraw.alioth.debian.org/dist
PKG_MD5SUM:=213010e9b7c8478827e8903530cf7787
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/surfraw-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/surfraw
SECTION:=internet
CATEGORY:=Network
TITLE:=command line interface to WWW search engines
DEPENDS:=+perl +libreadline
URL:=http://surfraw.alioth.debian.org/
endef
define Package/surfraw/description
Command line launcher for search engines and other Internet services.
endef
define Build/Configure
$(call Build/Configure/Default, \
--prefix=/usr --disable-opensearch --with-linux-headers="$(LINUX_DIR)" \
export READLINE=1 \
)
endef
define Package/surfraw/install
$(INSTALL_DIR) $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/surfraw $(1)/usr/bin/sr
$(INSTALL_BIN) $(PKG_BUILD_DIR)/surfraw $(1)/usr/bin/surfraw
$(INSTALL_DIR) $(1)/usr/lib/surfraw
$(INSTALL_BIN) $(PKG_BUILD_DIR)/elvi/* $(1)/usr/lib/surfraw/
$(INSTALL_DIR) $(1)/etc
$(INSTALL_BIN) $(PKG_BUILD_DIR)/surfraw.conf $(1)/etc
endef
$(eval $(call BuildPackage,surfraw))