From 9b0ba0171b6191d91fd13c2350bbbcb395e5ec93 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 25 Apr 2013 10:48:29 +0200 Subject: [PATCH] ed: cross build support. --- srcpkgs/ed/template | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/srcpkgs/ed/template b/srcpkgs/ed/template index 2755ed9af2f..9d240bc4004 100644 --- a/srcpkgs/ed/template +++ b/srcpkgs/ed/template @@ -2,7 +2,6 @@ pkgname=ed version=1.8 revision=1 -build_style=gnu-configure short_desc="GNU Line-oriented text editor" maintainer="Juan RP " license="GPL-3" @@ -16,6 +15,19 @@ long_desc=" and cannot execute shell commands. Ed is the standard text editor in the sense that it is the original editor for Unix, and thus widely available." +do_configure() { + ./configure --prefix=/usr \ + CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" +} + +do_build() { + make ${makejobs} +} + +do_install() { + make DESTDIR=${DESTDIR} install +} + ed_package() { pkg_install() { vmove usr