From 2dad1d3e831d1e096a3801dec1ec26103c54281d Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Mon, 21 Jun 2010 23:39:07 +0800 Subject: [PATCH] [new package] gawk, o3read, surfraw by Jirka Signed-off-by: Xiangfu Liu --- gawk/Makefile | 50 ++++++++++++++++++++++++++++++++++++++++++++++++ o3read/Makefile | 44 ++++++++++++++++++++++++++++++++++++++++++ surfraw/Makefile | 48 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 142 insertions(+) create mode 100644 gawk/Makefile create mode 100644 o3read/Makefile create mode 100644 surfraw/Makefile diff --git a/gawk/Makefile b/gawk/Makefile new file mode 100644 index 0000000..01fb904 --- /dev/null +++ b/gawk/Makefile @@ -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)) diff --git a/o3read/Makefile b/o3read/Makefile new file mode 100644 index 0000000..5ab5d17 --- /dev/null +++ b/o3read/Makefile @@ -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)) diff --git a/surfraw/Makefile b/surfraw/Makefile new file mode 100644 index 0000000..82d27e9 --- /dev/null +++ b/surfraw/Makefile @@ -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))