summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--index.html4
-rw-r--r--src/coreutils.mk26
2 files changed, 30 insertions, 0 deletions
diff --git a/index.html b/index.html
index 4897ccd..18531b4 100644
--- a/index.html
+++ b/index.html
@@ -1237,6 +1237,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
<td class="website"><a href="http://devernay.free.fr/hacks/cminpack/cminpack.html">cminpack</a></td>
</tr>
<tr>
+ <td class="package">coreutils</td>
+ <td class="website"><a href="https://www.gnu.org/software/coreutils/">GNU Core Utilities</a></td>
+ </tr>
+ <tr>
<td class="package">cppunit</td>
<td class="website"><a href="http://www.freedesktop.org/wiki/Software/cppunit/">CppUnit</a></td>
</tr>
diff --git a/src/coreutils.mk b/src/coreutils.mk
new file mode 100644
index 0000000..9a05837
--- /dev/null
+++ b/src/coreutils.mk
@@ -0,0 +1,26 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := coreutils
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 8.22
+$(PKG)_CHECKSUM := cc7fe47b21eb49dd2ee4cdb707570f42fb2c8cc6
+$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
+$(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/$(PKG)/$($(PKG)_FILE)
+$(PKG)_DEPS := gettext gmp libiconv libtool
+
+define $(PKG)_UPDATE
+ $(WGET) -q -O- 'http://ftp.gnu.org/gnu/coreutils/?C=M;O=D' | \
+ $(SED) -n 's,.*<a href="coreutils-\([0-9][^"]*\)\.tar.*,\1,p' | \
+ $(SORT) -V | \
+ tail -1
+endef
+
+define $(PKG)_BUILD_$(BUILD)
+ mkdir '$(1).build'
+ cd '$(1).build' && '$(1)/configure' \
+ --prefix='$(PREFIX)/$(TARGET)'
+ $(MAKE) -C '$(1).build' -j '$(JOBS)' man1_MANS=
+ $(MAKE) -C '$(1).build' -j 1 install man1_MANS=
+endef